diff --git a/build/build.fsx b/build/build.fsx index 56f9074e217..364e5c2b669 100644 --- a/build/build.fsx +++ b/build/build.fsx @@ -69,7 +69,7 @@ let nugetPack = fun name -> CreateDir nugetOutDir let dir = sprintf "%s/%s/" buildDir name - let version = "1.0.0-beta9" + let version = "1.0.0-c2" NuGetPack (fun p -> {p with Version = version diff --git a/dep/Autofac.3.2.0/Autofac.3.2.0.nuspec b/dep/Autofac.3.2.0/Autofac.3.2.0.nuspec deleted file mode 100644 index cfd6341f879..00000000000 --- a/dep/Autofac.3.2.0/Autofac.3.2.0.nuspec +++ /dev/null @@ -1,17 +0,0 @@ - - - - Autofac - 3.2.0 - Autofac - Autofac Contributors - Autofac Contributors - http://www.opensource.org/licenses/mit-license.php - http://autofac.org/ - http://code.google.com/p/autofac/logo - false - Base assemblies for the Autofac Inversion of Control Container - Autofac is an IoC container for Microsoft .NET. It manages the dependencies between classes so that applications stay easy to change as they grow in size and complexity. - en-US - - \ No newline at end of file diff --git a/dep/Autofac.3.2.0/lib/net40/Autofac.dll b/dep/Autofac.3.2.0/lib/net40/Autofac.dll deleted file mode 100644 index a4cdaf101da..00000000000 Binary files a/dep/Autofac.3.2.0/lib/net40/Autofac.dll and /dev/null differ diff --git a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.dll b/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.dll deleted file mode 100644 index a4cdaf101da..00000000000 Binary files a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.dll and /dev/null differ diff --git a/dep/Autofac.3.3.1/lib/net40/Autofac.dll b/dep/Autofac.3.3.1/lib/net40/Autofac.dll new file mode 100644 index 00000000000..926f0b867f3 Binary files /dev/null and b/dep/Autofac.3.3.1/lib/net40/Autofac.dll differ diff --git a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.xml b/dep/Autofac.3.3.1/lib/net40/Autofac.xml similarity index 99% rename from dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.xml rename to dep/Autofac.3.3.1/lib/net40/Autofac.xml index 420b7aa6d18..6cefdea820b 100644 --- a/dep/Autofac.3.2.0/lib/portable-win+net40+sl50+wp8/Autofac.xml +++ b/dep/Autofac.3.3.1/lib/net40/Autofac.xml @@ -2621,6 +2621,11 @@ resource lookups using this strongly typed resource class. + + + Looks up a localized string similar to The type '{0}' does not implement the interface '{1}'.. + + Looks up a localized string similar to The implementation type '{0}' is not an open generic type definition.. @@ -4304,6 +4309,35 @@ + + + Registration source providing implicit collection/list/enumerable support. + + + + This registration source provides enumerable support to allow resolving + the set of all registered services of a given type. + + + What may not be immediately apparent is that it also means any time there + are no items of a particular type registered, it will always return an + empty set rather than or throwing an exception. + This is by design. + + + Consider the [possibly majority] use case where you're resolving a set + of message handlers or event handlers from the container. If there aren't + any handlers, you want an empty set - not or + an exception. It's valid to have no handlers registered. + + + This implicit support means other areas (like MVC support or manual + property injection) must take care to only request enumerable values they + expect to get something back for. In other words, "Don't ask the container + for something you don't expect to resolve." + + + Retrieve registrations for an unregistered service, to be used @@ -6830,6 +6864,11 @@ resource lookups using this strongly typed resource class. + + + Looks up a localized string similar to Unable to generate a function to return type '{0}' with input parameter types [{1}]. The input parameter type list has duplicate types. Try registering a custom delegate type instead of using a generic Func relationship.. + + Looks up a localized string similar to Delegate Support (Func<T>and Custom Delegates). diff --git a/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.dll b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.dll new file mode 100644 index 00000000000..926f0b867f3 Binary files /dev/null and b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.dll differ diff --git a/dep/Autofac.3.2.0/lib/net40/Autofac.xml b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.xml similarity index 99% rename from dep/Autofac.3.2.0/lib/net40/Autofac.xml rename to dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.xml index 420b7aa6d18..6cefdea820b 100644 --- a/dep/Autofac.3.2.0/lib/net40/Autofac.xml +++ b/dep/Autofac.3.3.1/lib/portable-win+net40+sl50+wp8/Autofac.xml @@ -2621,6 +2621,11 @@ resource lookups using this strongly typed resource class. + + + Looks up a localized string similar to The type '{0}' does not implement the interface '{1}'.. + + Looks up a localized string similar to The implementation type '{0}' is not an open generic type definition.. @@ -4304,6 +4309,35 @@ + + + Registration source providing implicit collection/list/enumerable support. + + + + This registration source provides enumerable support to allow resolving + the set of all registered services of a given type. + + + What may not be immediately apparent is that it also means any time there + are no items of a particular type registered, it will always return an + empty set rather than or throwing an exception. + This is by design. + + + Consider the [possibly majority] use case where you're resolving a set + of message handlers or event handlers from the container. If there aren't + any handlers, you want an empty set - not or + an exception. It's valid to have no handlers registered. + + + This implicit support means other areas (like MVC support or manual + property injection) must take care to only request enumerable values they + expect to get something back for. In other words, "Don't ask the container + for something you don't expect to resolve." + + + Retrieve registrations for an unregistered service, to be used @@ -6830,6 +6864,11 @@ resource lookups using this strongly typed resource class. + + + Looks up a localized string similar to Unable to generate a function to return type '{0}' with input parameter types [{1}]. The input parameter type list has duplicate types. Try registering a custom delegate type instead of using a generic Func relationship.. + + Looks up a localized string similar to Delegate Support (Func<T>and Custom Delegates). diff --git a/dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.dll b/dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.dll similarity index 92% rename from dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.dll rename to dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.dll index 1ee19ad5e41..6b9058ce029 100644 Binary files a/dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.dll and b/dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.dll differ diff --git a/dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.xml b/dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.xml similarity index 100% rename from dep/Autofac.Extras.FakeItEasy.3.0.1/lib/net40/Autofac.Extras.FakeItEasy.xml rename to dep/Autofac.Extras.FakeItEasy.3.0.2/lib/net40/Autofac.Extras.FakeItEasy.xml diff --git a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.dll b/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.dll deleted file mode 100644 index bf603e6aed9..00000000000 Binary files a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.dll and /dev/null differ diff --git a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.xml b/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.xml deleted file mode 100644 index 54ea9aca845..00000000000 --- a/dep/FakeItEasy.1.15.0/lib/net35/FakeItEasy.xml +++ /dev/null @@ -1,3540 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides extension methods for the common uses. - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Configuration for any call to a faked object. - - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - 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. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies output values for out and ref parameters. Specify the values in the order - the ref and out parameters has in the configured call, any non out and ref parameters are ignored. - - The values. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Provides configuration of faked objects. - - - - - Gets a configuration for the specified faked object. - - The type of the fake. - The faked object to configure. - A configuration object. - The specified object is not a faked object. - The fakedObject parameter was null. - - - - Access all types in all assemblies in the same directory as the FakeItEasy assembly. - - - - - Provides a set of types that are available. - - - - - Gets a collection of available types. - - The available types. - - - - Initializes a new instance of the class. - - - - - Gets a collection of available types. - - The available types. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Represents an event that happens when a call has been intercepted by a proxy. - - - - - Initializes a new instance of the class. - - The call. - - - - Gets the call that was intercepted. - - The call. - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Attaches a to the specified proxy, listening to - the event raiser. - - The type of the fake object proxy. - The proxy to attach to. - The event raiser to listen to. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Attaches a to the specified proxy, listening to - the event raiser. - - The type of the fake object proxy. - The proxy to attach to. - The event raiser to listen to. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Initializes a new instance of the class. - - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Provides instances from type catalogues. - - - - - Gets an instance per type in the catalogue that is a descendant - of the specified type. - - The type of instances to get. - A sequence of instances of the specified type. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - An object that raises an event every time a call to a proxy has been intercepted. - - - - - Raised when a call is intercepted. - - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - An event raiser that raises - events when calls are intercepted to the proxy. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the event raiser that raises events when calls to the proxy are - intercepted. - - - - - Gets the reason for failure when the generation was not successful. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Provides extension methods for fake objects. - - - - - Specifies NumberOfTimes(1) to the IRepeatConfiguration{TFake}. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the IRepeatConfiguration{TFake}. - - The configuration to set repeat 2 to. - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified has not happened. - - The configuration to assert on. - - - - Configures the call to return the next value from the specified sequence each time it's called. Null will - be returned when all the values in the sequence has been returned. - - - The type of return value. - - - The call configuration to extend. - - - The values to return in sequence. - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Writes the calls in the collection to the specified text writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Applies a predicate to constrain which calls will be considered for interception. - - - The return type of the where method. - - - The configuration object to extend. - - - A predicate for a fake object call. - - to the output. - - The configuration object. - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Gets the value produced by the specified expression when compiled and invoked. - - The expression to get the value from. - The value produced by the expression. - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Provides static methods for the IOutputWriter-interface. - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Gets a recorder that records to and loads calls from the specified file. - - The file to use for recording. - A recorder instance. - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - Initializes a new instance of the class. - - Name of the file. - The file system. - - - - Loads the recorded calls for the specified recording. - - - The recorded calls for the recording with the specified id. - - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - A factory responsible for creating instances of FileStorage. - - The file name of the storage. - A FileStorage instance. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - diff --git a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.dll b/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.dll deleted file mode 100644 index 4f27c109966..00000000000 Binary files a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.dll and /dev/null differ diff --git a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.xml b/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.xml deleted file mode 100644 index 08969ecf59e..00000000000 --- a/dep/FakeItEasy.1.15.0/lib/net40/FakeItEasy.xml +++ /dev/null @@ -1,3525 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - 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. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Access all types in all assemblies in the same directory as the FakeItEasy assembly. - - - - - Provides a set of types that are available. - - - - - Gets a collection of available types. - - The available types. - - - - Initializes a new instance of the class. - - - - - Gets a collection of available types. - - The available types. - - - - Configuration for any call to a faked object. - - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies output values for out and ref parameters. Specify the values in the order - the ref and out parameters has in the configured call, any non out and ref parameters are ignored. - - The values. - A configuration object. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Represents an event that happens when a call has been intercepted by a proxy. - - - - - Initializes a new instance of the class. - - The call. - - - - Gets the call that was intercepted. - - The call. - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Attaches a to the specified proxy, listening to - the event raiser. - - The type of the fake object proxy. - The proxy to attach to. - The event raiser to listen to. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Attaches a to the specified proxy, listening to - the event raiser. - - The type of the fake object proxy. - The proxy to attach to. - The event raiser to listen to. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Initializes a new instance of the class. - - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - An object that raises an event every time a call to a proxy has been intercepted. - - - - - Raised when a call is intercepted. - - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Provides instances from type catalogues. - - - - - Gets an instance per type in the catalogue that is a descendant - of the specified type. - - The type of instances to get. - A sequence of instances of the specified type. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - An event raiser that raises - events when calls are intercepted to the proxy. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the event raiser that raises events when calls to the proxy are - intercepted. - - - - - Gets the reason for failure when the generation was not successful. - - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides static methods for the IOutputWriter-interface. - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Gets a recorder that records to and loads calls from the specified file. - - The file to use for recording. - A recorder instance. - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - Gets the value produced by the specified expression when compiled and invoked. - - The expression to get the value from. - The value produced by the expression. - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - - Provides extension methods for fake objects. - - - - - Specifies NumberOfTimes(1) to the IRepeatConfiguration{TFake}. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the IRepeatConfiguration{TFake}. - - The configuration to set repeat 2 to. - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified has not happened. - - The configuration to assert on. - - - - Configures the call to return the next value from the specified sequence each time it's called. Null will - be returned when all the values in the sequence has been returned. - - - The type of return value. - - - The call configuration to extend. - - - The values to return in sequence. - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Writes the calls in the collection to the specified text writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Applies a predicate to constrain which calls will be considered for interception. - - - The return type of the where method. - - - The configuration object to extend. - - - A predicate for a fake object call. - - to the output. - - The configuration object. - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - Initializes a new instance of the class. - - Name of the file. - The file system. - - - - Loads the recorded calls for the specified recording. - - - The recorded calls for the recording with the specified id. - - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - A factory responsible for creating instances of FileStorage. - - The file name of the storage. - A FileStorage instance. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - 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). - - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - Provides extension methods for the common uses. - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - diff --git a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.dll b/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.dll deleted file mode 100644 index b8029c091e7..00000000000 Binary files a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.dll and /dev/null differ diff --git a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.xml b/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.xml deleted file mode 100644 index f865bf86973..00000000000 --- a/dep/FakeItEasy.1.15.0/lib/sl40/FakeItEasy.xml +++ /dev/null @@ -1,3424 +0,0 @@ - - - - FakeItEasy - - - - - Provides methods for generating fake objects. - - - - - Creates a fake object of the type T. - - The type of fake object to create. - A fake object. - - - - Creates a fake object of the type T. - - The type of fake object to create. - A lambda where options for the built fake object can be specified. - A fake object. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Gets a dummy object of the specified type. The value of a dummy object - should be irrelevant. Dummy objects should not be configured. - - The type of dummy to return. - A dummy object of the specified type. - Dummies of the specified type can not be created. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Configures a call to a faked object. - - An expression where the configured member is called. - A configuration object. - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - - The fake to configure. - - - A configuration object. - - - - - Configures a call to a faked object. - - The type of member on the faked object to configure. - An expression where the configured member is called. - A configuration object. - - - - Provides an API entry point for constraining arguments of fake object calls. - - The type of argument to validate. - - - - Gets an argument constraint object that will be used to constrain a method call argument. - - - - - Gets a constraint that considers any value of an argument as valid. - - This is a shortcut for the "Ignored"-property. - - - - Gets a constraint that considers any value of an argument as valid. - - - - - Provides configuration for any (not a specific) call on a faked object. - - - - - Gets a configuration object allowing for further configuration of - any call to the specified faked object. - - The faked object to configure. - A configuration object. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - A collection of method arguments. - - - - - The arguments this collection contains. - - - - - Initializes a new instance of the class. - - The arguments. - The argument names. - - - - Initializes a new instance of the class. - - The arguments. - The method. - - - - Returns an enumerator that iterates through the collection or arguments. - - - A that can be used to iterate through the collection. - - - - - Gets the argument at the specified index. - - The type of the argument to get. - The index of the argument. - The argument at the specified index. - - - - Gets the argument with the specified name. - - The type of the argument to get. - The name of the argument. - The argument with the specified name. - - - - Gets an empty ArgumentList. - - - - - Gets the number of arguments in the list. - - - - - Gets the names of the arguments in the list. - - - - - Gets the argument at the specified index. - - The index of the argument to get. - The argument at the specified index. - - - - Provides validation extensions for . - - - - - Constrains an argument so that it must be null (Nothing in VB). - - The type of the argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains the string argument to contain the specified text. - - The constraint manager to match the constraint. - The string the argument string should contain. - A dummy argument value. - - - - Constrains the sequence so that it must contain the specified value. - - The constraint manager to match the constraint. - The value the collection should contain. - The type of sequence. - A dummy argument value. - - - - Constrains the string so that it must start with the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - A dummy argument value. - - - - Constrains the string so that it must end with the specified value. - - The constraint manager to match the constraint. - The value the string should end with. - A dummy argument value. - - - - Constrains the string so that it must be null or empty. - - The constraint manager to match the constraint. - A dummy argument value. - - - - Constrains argument value so that it must be greater than the specified value. - - The constraint manager to match the constraint. - The value the string should start with. - The type of argument to constrain. - A dummy argument value. - - - - The tested argument collection should contain the same elements as the - as the specified collection. - - The constraint manager to match the constraint. - The sequence to test against. - The type of argument to constrain. - A dummy argument value. - - - - Tests that the IEnumerable contains no items. - - The type of argument. - The constraint manager to match the constraint. - A dummy argument value. - - - - Tests that the passed in argument is equal to the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The value to compare to. - A dummy argument value. - - - - Tests that the passed in argument is the same instance (reference) as the specified value. - - The type of the argument. - The constraint manager to match the constraint. - The reference to compare to. - A dummy argument value. - - - - Constrains the argument to be of the specified type. - - The type of argument in the method signature. - The constraint manager. - The type to constrain the argument with. - A dummy value. - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - A human readable description of the constraint format string. - - - Arguments for the format string. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument with a predicate. - - - The constraint manager. - - - The predicate that should constrain the argument. - - - The type of argument in the method signature. - - - A dummy argument value. - - - - - Constrains the argument to be not null (Nothing in VB) and to match - the specified predicate. - - The type of the argument to constrain. - The constraint manager. - The predicate that constrains non null values. - An action that writes a description of the constraint - to the output. - A dummy argument value. - - - - Provides string formatting for arguments of type T when written in call lists. - - The type of the arguments which will be formatted by this instance. - - - - Provides string formatting for arguments when written in - call lists. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets a string representing the specified argument value. - - The argument value to get as a string. - A string representation of the value. - - - - Gets the type of arguments this formatter works on. - - - - - Gets the priority of the formatter, when two formatters are - registered for the same type the one with the highest - priority is used. - - - - - Provides extension methods for the common uses. - - - - - Replaces the format item in a specified System.String with the text equivalent - of the value of a corresponding System.Object instance in a specified array using - invariant culture as . - - A composite format string. - An array containing zero or more objects to format. - The formatted string. - - - - Gets an enumerable of tuples where the first value of each tuple is a value - from the first collection and the second value of each tuple is the value at the same position - from the second collection. - - The type of values in the first collection. - The type of values in the second collection. - The first of the collections to combine. - The second of the collections to combine. - An enumerable of tuples. - - - - Joins the collection to a string. - - The type of items in the collection. - The items to join. - A function that converts from an item to a string value. - Separator to insert between each item. - A string representation of the collection. - - - - Gets a dictionary containing the first element from the sequence that has a key specified by the key selector. - - The type of items in the sequence. - The type of the key. - The sequence. - The key selector. - A dictionary. - - - - Provides the base for rules that can be built using the FakeConfiguration. - - - - - Represents a call rule that has a description of the calls the - rule is applicable to. - - - - - Allows for intercepting call to a fake object and - act upon them. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - Writes a description of calls the rule is applicable to. - - The writer. - - - - Gets if this rule is applicable to the specified call. - - The call to validate. - True if the rule applies to the call. - - - - Writes a description of calls the rule is applicable to. - - The writer to write the description to. - - - - Gets or sets an action that is called by the Apply method to apply this - rule to a fake object call. - - - - - Gets a collection of actions that should be invoked when the configured - call is made. - - - - - Gets or sets values to apply to output and reference variables. - - - - - Gets or sets a value indicating whether the base method of the fake object call should be - called when the fake object call is made. - - - - - Gets or sets the number of times the configured rule should be used. - - - - - Gets a description of calls the rule is applicable to. - - - - - - Configuration for any call to a faked object. - - - - - Provides a way to configure predicates for when a call should be applied. - - The type of fake object that is going to be configured.. - - - - Applies a predicate to constrain which calls will be considered for interception. - - A predicate for a fake object call. - An action that writes a description of the predicate - to the output. - The configuration object. - - - - Provides configuration methods for methods that does not have a return value and - allows the use to specify validations for arguments. - - - - - Provides configuration methods for methods that does not have a return value. - - - - - Configuration that lets the developer specify that an exception should be - thrown by a fake object call. - - - - - Hides standard Object members to make fluent interfaces - easier to read. Found in the source of Autofac: - Based on blog post here: - - - - - - Hides the ToString-method. - - A string representation of the implementing object. - - - - 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. - - - - - Returns a hash code for this instance. - - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - - - - Gets the type. - - The exact runtime type of the current instance. - - - - Throws the specified exception when the currently configured - call gets called. - - A function that creates the exception to throw. - Configuration object. - - - - Configuration for callbacks of fake object calls. - - The type of interface to return. - - - - Executes the specified action when a matching call is being made. - - The action to invoke. - A configuration object. - - - - Configuration that lets you specify that a fake object call should call it's base method. - - - - - When the configured method or methods are called the call - will be delegated to the base method of the faked method. - - A configuration object. - The fake object is of an abstract type or an interface - and no base method exists. - - - - Lets the developer configure output values of out and ref parameters. - - - - - Specifies output values for out and ref parameters. Specify the values in the order - the ref and out parameters has in the configured call, any non out and ref parameters are ignored. - - The values. - A configuration object. - - - - Allows the developer to assert on a call that's configured. - - - - - Asserts that the configured call has happened the number of times - constrained by the repeatConstraint parameter. - - A constraint for how many times the call - must have happened. - The call has not been called a number of times - that passes the repeat constraint. - - - - Configures the specified call to do nothing when called. - - A configuration object. - - - - Provides configurations to validate arguments of a fake object call. - - The type of interface to return. - - - - Configures the call to be accepted when the specified predicate returns true. - - The argument predicate. - A configuration object. - - - - Matches calls that has the return type specified in the generic type parameter. - - The return type of the members to configure. - A configuration object. - - - - Manages registration of a set of components in a DictionaryContainer. - - - - - Registers the components of this module. - - The container to register components in. - - - - A factory that creates instances of the RecordingCallRuleType. - - - - - Creates the specified fake object. - - The type of the fake. - The fake object the rule belongs to. - The rule that's being recorded. - A RecordingCallRule instance. - - - - A factory responsible for creating start configuration for fake objects. - - - - - Creates a start configuration for the specified fake object that fakes the - specified type. - - The type of the fake object. - The fake object to configure. - A configuration object. - - - - An exception that can be thrown when something goes wrong with the configuration - of a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Handles the configuration of fake object given an expression specifying - a call on a faked object. - - - - - Lets you set up expectations and configure repeat for the configured call. - - - - - Provides configuration for method calls that has a return value. - - - - - Specifies the number of times for the configured event. - - The number of times to repeat. - - - - A combination of the IAfterCallSpecifiedConfiguration and IOutAndRefParametersConfiguration - interfaces. - - - - - Aggregate of IReturnValueArgumentValidationConfiguration<T> and IWhereConfiguration<IAnyCallConfigurationWithReturnTypeSpecified<T>>. - - The type of fake object that is configured. - - - - Configures a call that returns a value and allows the use to - specify validations for arguments. - - The type of the member. - - - - Configures a call that returns a value. - - The type of the member. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - A function that produces the return value. - A configuration object. - - - - Configurations for when a configured call is recorded. - - - - - Provides configuration from VisualBasic. - - - - - Provides methods for configuring a fake object. - - The type of fake object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of the return value of the member. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - A configuration object. - - - - A call rule that has been recorded. - - - - - A call rule that "sits and waits" for the next call, when - that call occurs the recorded rule is added for that call. - - The type of the fake. - - - - Provides access to a set of calls and a call matcher for these calls. - - - - - Provides access to a call matcher. - - - - - Gets a call predicate that can be used to check if a fake object call matches - the specified constraint. - - - - - Gets the set of calls. - - - - - Represents a delegate that creates a configuration object from - a fake object and the rule to build. - - The rule that's being built. - The fake object the rule is for. - A configuration object. - - - - Represents a predicate that matches a fake object call. - - - - - Gets a value indicating whether the call matches the predicate. - - The call to match. - True if the call matches the predicate. - - - - Provides configuration of faked objects. - - - - - Gets a configuration for the specified faked object. - - The type of the fake. - The faked object to configure. - A configuration object. - The specified object is not a faked object. - The fakedObject parameter was null. - - - - Represents an argument and a dummy value to use for that argument. - - - - - Initializes a new instance of the class. - - A value indicating if the dummy value was successfully resolved. - The type of argument. - The resolved value. - - - - Gets a value indicating whether a dummy argument value was successfully - resolved. - - - - - Gets the type of the argument. - - - - - Gets the resolved value. - - - - - Holds a formatter as well as the distance between a type to be formatted - and the type for which the formatted is registered. - - - - - Represents an event that happens when a call has been intercepted by a proxy. - - - - - Initializes a new instance of the class. - - The call. - - - - Gets the call that was intercepted. - - The call. - - - - Keeps track of metadata for interceptions. - - - - - Gets whether the rule has been called the number of times specified or not. - - True if the rule has not been called the number of times specified. - - - - Gets or sets the number of times the rule has been used. - - - - - Gets or sets the rule this metadata object is tracking. - - - - - Manages attaching of argument constraints. - - The type of argument to constrain. - - - - Constrains the argument with a predicate. - - The predicate that should constrain the argument. - An action that will be write a description of the constraint. - A dummy argument value. - - - - Inverts the logic of the matches method. - - - - - Validates an argument, checks that it's valid in a specific fake call. - - - - - Writes a description of the argument constraint to the specified writer. - - - The writer. - - - - - Gets whether the argument is valid. - - The argument to validate. - True if the argument is valid. - - - - Default implementation of . - - - - - Attaches a fake manager to the proxy so that intercepted - calls can be configured. - - - - - Attaches a to the specified proxy, listening to - the event raiser. - - The type of the fake object proxy. - The proxy to attach to. - The event raiser to listen to. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Attaches a to the specified proxy, listening to - the event raiser. - - The type of the fake object proxy. - The proxy to attach to. - The event raiser to listen to. - - - - Gets the fake manager associated with the proxy. - - The proxy to get the manager from. - A fake manager. - - - - Represents an object that can be tagged with another object. When implemented - by a proxy returned from an FakeItEasy uses the tag - to store a reference to the that handles that proxy. - - - - - Gets or sets the tag. - - - - - The default implementation of the IFakeObjectCallFormatter interface. - - - - - Provides string formatting for fake object calls. - - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Gets a human readable description of the specified - fake object call. - - The call to get a description for. - A description of the call. - - - - Handles configuring of fake objects to delegate all their calls to a wrapped instance. - - - - - Manages configuration of fake objects to wrap instances. - - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - Configures the specified faked object to wrap the specified instance. - - The faked object to configure. - The instance to wrap. - The recorder to use, null if no recording should be made. - - - - A fake object container where delegates can be registered that are used to - resolve fake objects. - - - - - A container that can create fake objects. - - - - - Handles global configuration of fake object. - - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - Creates a dummy object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The dummy object that was created if the method returns true. - True if a dummy object can be created. - - - - Initializes a new instance of the class. - Creates a new instance of the DelegateFakeObjectContainer. - - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of dummy object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Configures the fake. - - The type of fake. - The fake object. - - - - Registers the specified fake delegate. - - The type of the return value of the method that encapsulates. - The fake delegate. - - - - A IFakeObjectContainer implementation that uses MEF to load IFakeDefinitions and - IFakeConfigurations. - - - - - Initializes a new instance of the class. - - The dummy definitions. - The fake configurators. - - - - Creates a fake object of the specified type using the specified arguments if it's - supported by the container, returns a value indicating if it's supported or not. - - The type of fake object to create. - The fake object that was created if the method returns true. - True if a fake object can be created. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - An exception that is thrown when there was an error creating a fake object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - Auto fake property rule. - - The central point in the API for proxied fake objects handles interception - of fake object calls by using a set of rules. User defined rules can be inserted - by using the AddRule-method. - - Event rule. - Object member rule. - Property behavior rule. - Property setter rule. - - - - Initializes a new instance of the class. - - - - - Adds a call rule to the fake object. - - The rule to add. - - - - Adds a call rule last in the list of user rules, meaning it has the lowest priority possible. - - The rule to add. - - - - Removes the specified rule for the fake object. - - The rule to remove. - - - - Adds an interception listener to the manager. - - The listener to add. - - - - Removes any specified user rules. - - - - - Gets the faked object. - - - - - Gets the faked type. - - - - - Gets the interceptions that are currently registered with the fake object. - - - - - Gets a collection of all the calls made to the fake object within the current scope. - - - - - A delegate responsible for creating FakeObject instances. - - An instance of . - - - - Represents a call to a fake object at interception time. - - - - - Represents a fake object call that can be edited. - - - - - Represents a call to a fake object. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - Sets the return value of the call. - - The return value to set. - - - - Calls the base method of the faked type. - - - - - Sets the value of the argument at the specified index in the parameters list. - - The index of the argument to set the value of. - The value to set to the argument. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Sets that the call should not be recorded by the fake manager. - - - - - Represents a scope for fake objects, calls configured within a scope - are only valid within that scope. Only calls made within a scope - are accessible from within a scope so for example asserts will only - assert on those calls done within the scope. - - - - - Provides access to all calls made to fake objects within a scope. - Scopes calls so that only calls made within the scope are visible. - - - - - Creates a new scope and sets it as the current scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope, using the specified - container as the container for the new scope. - - The container to use for the new scope. - The created scope. - - - - Closes the scope. - - - - - Adds an intercepted call to the current scope. - - The fake object. - The call that is intercepted. - - - - Adds a fake object call to the current scope. - - The fake object. - The rule to add. - - - - Represents a completed call to a fake object. - - - - - Gets the value set to be returned from the call. - - - - - Used by the event raising rule of fake objects to get the event arguments used in - a call to Raise.With. - - - - - Gets the sender of the event. - - - - - Gets the event arguments of the event. - - - - - Represents a listener for fake object calls, can be plugged into a - FakeManager instance to listen to all intercepted calls. - - The OnBeforeCallIntercepted method will be invoked before the OnBeforeCallIntercepted method of any - previously added listener. The OnAfterCallIntercepted method will be invoked after the OnAfterCallIntercepted - method of any previously added listener. - - - - Called when the interception begins but before any call rules - has been applied. - - The intercepted call. - - - - Called when the interception has been completed and rules has been - applied. - - The intercepted call. - The rule that was applied to the call. - - - - Handles comparisons of instances of . - - - - - Gets a value indicating whether the two instances of would invoke the same method - if invoked on an instance of the target type. - - The type of target for invocation. - The first . - The second . - True if the same method would be invoked. - - - - A null implementation for the IFakeObjectContainer interface. - - - - - Always returns false and sets the fakeObject to null. - - The type of dummy object to create. - Output variable for the fake object that will always be set to null. - Always return false. - - - - Applies base configuration to a fake object. - - The type the fake object represents. - The fake object to configure. - - - - A call rule that applies to any call and just delegates the - call to the wrapped object. - - - - - Initializes a new instance of the class. - Creates a new instance. - - - The object to wrap. - - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An interface to be implemented by classes that can generate proxies for FakeItEasy. - - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - The custom attribute builders. - A result containing the generated proxy. - - - - Generates a proxy of the specified type and returns a result object containing information - about the success of the generation and the proxy if it was generated. - - The type of proxy to generate. - Interfaces to be implemented by the proxy. - Arguments to pass to the constructor of the type in . - A result containing the generated proxy. - - - - Gets a value indicating whether the specified member can be intercepted by the proxy generator. - - The member to test. - The instance the method will be called on. - The reason the method can not be intercepted. - True if the member can be intercepted. - - - - An object that raises an event every time a call to a proxy has been intercepted. - - - - - Raised when a call is intercepted. - - - - - An adapter that adapts an to a . - - - - - Initializes a new instance of the class. - - The invocation. - - - - Freezes the call so that it can no longer be modified. - - A completed fake object call. - - - - Calls the base method, should not be used with interface types. - - - - - Sets the specified value to the argument at the specified index. - - The index of the argument to set the value to. - The value to set to the argument. - - - - Sets the return value of the call. - - The return value. - - - - Returns a description of the call. - - - A that represents this instance. - - - - - Gets a human readable description of the call. - - - - - - Gets the value set to be returned from the call. - - - - - Gets the method that's called. - - - - - Gets the arguments used in the call. - - - - - Gets the faked object the call is performed on. - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to No constructor matches the passed arguments for constructor.. - - - - - Looks up a localized string similar to Arguments for constructor specified for interface type.. - - - - - Looks up a localized string similar to The type of proxy "{0}" is sealed.. - - - - - Looks up a localized string similar to The type of proxy must be an interface or a class but it was {0}.. - - - - - Looks up a localized string similar to No usable default constructor was found on the type {0}.. - - - - - The default implementation of the IFakeAndDummyManager interface. - - - - - Handles the creation of fake and dummy objects. - - - - - Creates a dummy of the specified type. - - The type of dummy to create. - The created dummy. - The current IProxyGenerator is not able to generate a fake of the specified type and - the current IFakeObjectContainer does not contain the specified type. - - - - Creates a fake object of the specified type. - - The type of fake object to generate. - Options for building the fake object. - A fake object. - The current IProxyGenerator is not able to generate a fake of the specified type. - - - - Tries to create a dummy of the specified type. - - The type of dummy to create. - Outputs the result dummy when creation is successful. - A value indicating whether the creation was successful. - - - - Tries to create a fake object of the specified type. - - The type of fake to create. - Options for the creation of the fake. - The created fake object when creation is successful. - A value indicating whether the creation was successful. - - - - Default implementation of the IFakeCreator-interface. - - - - - A facade used by the public API for testability. - - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - A collection of fake objects of the specified type. - - - - Initializes a new instance of the class. - - The fake and dummy manager. - - - - Creates a fake object of the specified type. - - The type of fake to create. - Options for the created fake object. - The created fake object. - Was unable to generate the fake in the current configuration. - - - - Creates a collection of fakes of the specified type. - - The type of fakes to create. - The number of fakes in the collection. - - A collection of fake objects of the specified type. - - - - - Creates a dummy object, this can be a fake object or an object resolved - from the current IFakeObjectContainer. - - The type of dummy to create. - The created dummy. - Was unable to generate the fake in the current configuration and - no dummy was registered in the container for the specified type.. - - - - Provides options for fake wrappers. - - The type of the fake object generated. - - - - Provides options for generating fake object. - - The type of fake object generated. - - - - Specifies arguments for the constructor of the faked class. - - The arguments to pass to the constructor of the faked class. - Options object. - - - - Specifies arguments for the constructor of the faked class by giving an expression with the call to - the desired constructor using the arguments to be passed to the constructor. - - The constructor call to use when creating a class proxy. - Options object. - - - - Specifies that the fake should delegate calls to the specified instance. - - The object to delegate calls to. - Options object. - - - - Specifies that the fake should be created with these additional attributes. - - The attributes to build into the proxy. - Options object. - - - - Sets up the fake to implement the specified interface in addition to the - originally faked class. - - The type of interface to implement. - Options object. - The specified type is not an interface. - The specified type is null. - - - - Specifies an action that should be run over the fake object - once it's created. - - An action to perform. - Options object. - - - - Specifies a fake recorder to use. - - The recorder to use. - Options object. - - - - Initializes a new instance of the class. - - The container. - The fake object creator. - - - - Contains the result of a call to TryCreateProxy of IProxyGenerator. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt. - - - The reason the proxy generation failed. - - - - - Initializes a new instance of the class. - Creates a new instance representing a failed proxy - generation attempt due to an exception being caught. - - - The reason the proxy generation failed. - - - The exception thrown from the creation attempt. - - - - - Initializes a new instance of the class. - Creates a new instance representing a successful proxy - generation. - - - The proxy that was generated. - - - An event raiser that raises - events when calls are intercepted to the proxy. - - - - - Gets a value indicating whether the proxy was successfully created. - - - - - Gets the generated proxy when it was successfully created. - - - - - Gets the event raiser that raises events when calls to the proxy are - intercepted. - - - - - Gets the reason for failure when the generation was not successful. - - - - - Represents a text writer that writes to the output. - - - - - Writes the specified value to the output. - - The value to write. - The writer for method chaining. - - - - Formats the specified argument value as a string and writes - it to the output. - - The value to write. - The writer for method chaining. - - - - Indents the writer. - - A disposable that will unindent the writer when disposed. - - - - Represents a definition of how a fake object of the type T should - be created. - - The type of fake. - - - - Represents a definition of how dummies of the specified type should be created. - - - - - Creates the fake. - - The fake object. - - - - Gets the type of fake object the definition is for. - - - - - Creates the dummy. - - The dummy object. - - - - Creates the dummy. - - The dummy object. - - - - Gets the type the definition is for. - - For type. - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized string similar to The Apply method of the ExpressionInterceptor may no be called before the Applicator property has been set.. - - - - - Looks up a localized string similar to The specified argument name does not exist in the ArgumentList.. - - - - - Looks up a localized string similar to Arguments for constructor was specified when generating proxy of interface type.. - - - - - Looks up a localized string similar to An argument validation was not configured correctly.. - - - - - Looks up a localized string similar to The method '{0}' was called too few times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to The method '{0}' was called too many times, expected #{1} times but was called #{2} times.. - - - - - Looks up a localized string similar to Can not create fake of the type '{0}', it's not registered in the current container and the current IProxyGenerator can not generate the fake. - - The following constructors failed: - {1}. - - - - - Looks up a localized string similar to Error when accessing FakeObject, the specified argument is of the type '{0}' which is not faked.. - - - - - Looks up a localized string similar to An ExpressionCallMatcher can only be created for expressions that represents a method call or a property getter.. - - - - - Looks up a localized string similar to - - The current proxy generator failed to create a proxy with the specified arguments for the constructor: - - Reason for failure: - - {0} - - . - - - - - Looks up a localized string similar to FakeItEasy failed to create fake object of type "{0}". - - 1. The type is not registered in the current IFakeObjectContainer. - 2. The current IProxyGenerator failed to generate a proxy for the following reason: - - {1}. - - - - - Looks up a localized string similar to Unable to create fake object.. - - - - - Looks up a localized string similar to Only abstract classes can be faked using the A.Fake-method that takes an enumerable of objects as arguments for constructor, use the overload that takes an expression instead.. - - - - - Looks up a localized string similar to The member accessor expression must be a lambda expression with a MethodCallExpression or MemberAccessExpression as its body.. - - - - - Looks up a localized string similar to The specified method can not be configured since it can not be intercepted by the current IProxyGenerator.. - - - - - Looks up a localized string similar to The method of the call did not match the method of the recorded call, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to No constructor matching the specified arguments was found on the type {0}.. - - - - - Looks up a localized string similar to Can not generate fake object for the class since no usable default constructor was found, specify a constructor call.. - - - - - Looks up a localized string similar to All the recorded calls has been applied, the recorded sequence is no longer valid.. - - - - - Looks up a localized string similar to Only expression of the type ExpressionType.New (constructor calls) are accepted.. - - - - - Looks up a localized string similar to The Now-method on the event raise is not meant to be called directly, only use it to register to an event on a fake object that you want to be raised.. - - - - - Looks up a localized string similar to The number of values for out and ref parameters specified does not match the number of out and ref parameters in the call.. - - - - - Looks up a localized string similar to A scope for ordered assertions is already opened, close that scope before opening another one.. - - - - - Looks up a localized string similar to The specified call is not made on a fake object.. - - - - - Looks up a localized string similar to The current fake proxy generator can not create proxies of the type {0}.. - - - - - Looks up a localized string similar to FakeItEasy was unable to create dummy of type "{0}", register it in the current IFakeObjectContainer to enable this.. - - - - - Looks up a localized string similar to Expected to find call {0} the number of times specified by the predicate '{1}' but found it {2} times among the calls:. - - - - - Looks up a localized string similar to The number of argument names does not match the number of arguments.. - - - - - An exception thrown when an expectation is not met (when asserting on fake object calls). - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Represents a class that can parse a lambda expression - that represents a method or property call. - - - - - Parses the specified expression. - - The expression to parse. - The parsed expression. - - - - Handles the matching of fake object calls to expressions. - - - - - Initializes a new instance of the class. - - The call specification. - The constraint factory. - The method info manager to use. - A parser to use to parse call expressions. - - - - Matches the specified call against the expression. - - The call to match. - True if the call is matched by the expression. - - - - Gets a description of the call. - - Description of the call. - - - - Gets a human readable description of calls that will be matched by this - matcher. - - - - - An implementation of the interface that uses - expressions for evaluating if the rule is applicable to a specific call. - - - - - Initializes a new instance of the class. - - The expression matcher to use. - - - - Returns a that represents this instance. - - - A that represents this instance. - - - - - Handles the instantiation of ExpressionCallRule instance. - - An expression specifying the call. - A rule instance. - - - - Manages breaking call specification expression into their various parts. - - - - - Manages breaking call specification expression into their various parts. - - - - - Gets the fake object an expression is called on. - - The call expression. - The FakeManager instance that manages the faked object the call is made on. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Gets the fake object an expression is called on. - - The call expression. - A FakeObject. - The fakeObjectCall is null. - The specified expression is not an expression where a call is made to a faked object. - - - - Provides extension methods for configuring and asserting on faked objects - without going through the static methods of the Fake-class. - - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The type of fake object to configure. - The type of the return value of the member. - The faked object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call that matches the specified - call happens. - - The faked object to configure. - The type of fake object to configure. - An expression that specifies the calls to configure. - A configuration object. - - - - Configures the behavior of the fake object when a call is made to any method on the - object. - - The type of the fake. - The faked object. - A configuration object. - - - - Provides an extension method for configuring fake objects. - - - - - Gets an object that provides a fluent interface syntax for configuring - the fake object. - - The type of the fake object. - The fake object to configure. - A configuration object. - The fakedObject was null. - The object passed in is not a faked object. - - - - Provides static methods for accessing fake objects. - - - - - Gets the fake object that manages the faked object. - - The faked object to get the manager object for. - The fake object manager. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The created scope. - - - - Creates a new scope and sets it as the current scope. When inside a scope the - getting the calls made to a fake will return only the calls within that scope and when - asserting that calls were made, the calls must have been made within that scope. - - The container to use within the specified scope. - The created scope. - - - - Gets a value indicating whether the two objects are equal. - - The first object to compare. - The second object to compare. - True if the two objects are equal. - - - - Gets a value indicating whether the two objects are the same reference. - - The object A. - The object B. - True if the objects are the same reference. - - - - Gets all the calls made to the specified fake object. - - The faked object. - A collection containing the calls to the object. - The object passed in is not a faked object. - - - - Clears the configuration of the faked object. - - The faked object to clear the configuration of. - - - - Sets a new fake to each property or field that is tagged with the FakeAttribute in the specified - fixture. - - The object to initialize. - - - - Represents a fake object that provides an API for configuring a faked object, exposed by the - FakedObject-property. - - The type of the faked object. - - - - Initializes a new instance of the class. - Creates a new fake object. - - - - - Initializes a new instance of the class. - Creates a new fake object using the specified options. - - - Options used to create the fake object. - - - - - Configures calls to the specified member. - - An expression specifying the call to configure. - A configuration object. - - - - Configures calls to the specified member. - - The type of value the member returns. - An expression specifying the call to configure. - A configuration object. - - - - Configures any call to the fake object. - - A configuration object. - - - - Gets the faked object. - - - - - Gets all calls made to the faked object. - - - - - Used to tag fields and properties that will be initialized through the - Fake.Initialize-method. - - - - - Provides the base implementation for the IFakeConfigurator-interface. - - The type of fakes the configurator can configure. - - - - Provides configurations for fake objects of a specific type. - - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Gets the type the instance provides configuration for. - - - - - Configures the fake. - - The fake object. - - - - Applies the configuration for the specified fake object. - - The fake object to configure. - - - - Asserts the type of the that fake is of correct. - - The fake object. - - - - Gets the type the instance provides configuration for. - - - - - - Provides extension methods for fake objects. - - - - - Specifies NumberOfTimes(1) to the IRepeatConfiguration{TFake}. - - The configuration to set repeat 1 to. - - - - Specifies NumberOfTimes(2) to the IRepeatConfiguration{TFake}. - - The configuration to set repeat 2 to. - - - - Specifies that a call to the configured call should be applied no matter what arguments - are used in the call to the faked object. - - The type of the interface. - The configuration. - A configuration object. - - - - Filters to contain only the calls that matches the call specification. - - The type of fake the call is made on. - The calls to filter. - The call to match on. - A collection of the calls that matches the call specification. - - - - Asserts that the specified call must have happened once or more. - - The configuration to assert on. - - - - Asserts that the specified has not happened. - - The configuration to assert on. - - - - Configures the call to return the next value from the specified sequence each time it's called. Null will - be returned when all the values in the sequence has been returned. - - - The type of return value. - - - The call configuration to extend. - - - The values to return in sequence. - - - - - Specifies the value to return when the configured call is made. - - The type of the return value. - The configuration to extend. - The value to return. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - The configuration to extend. - A function that produces the return value. - A configuration object. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The type of the return value. - Type of the first argument of the faked method call. - The configuration to extend. - A function that produces the return value. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Specifies a function used to produce a return value when the configured call is made. - The function will be called each time this call is made and can return different values - each time. - - The configuration to extend. - A function that produces the return value. - The type of the return value. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - A configuration object. - The signatures of the faked method and the do not match. - - - - Writes the calls in the collection to the specified text writer. - - The type of the calls. - The calls to write. - The writer to write the calls to. - - - - Writes all calls in the collection to the console. - - The type of the calls. - The calls to write. - - - - Gets the argument at the specified index in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The index of the argument. - The value of the argument with the specified index. - - - - Gets the argument with the specified name in the arguments collection - for the call. - - The type of the argument to get. - The call to get the argument from. - The name of the argument. - The value of the argument with the specified name. - - - - Makes the fake strict, this means that any call to the fake - that has not been explicitly configured will throw an exception. - - The type of fake object. - The configuration. - A configuration object. - - - - Applies a predicate to constrain which calls will be considered for interception. - - - The return type of the where method. - - - The configuration object to extend. - - - A predicate for a fake object call. - - to the output. - - The configuration object. - - - - - Executes the specified action when a matching call is being made. This overload can also be used to fake calls with arguments when they don't need to be accessed. - - The type of fake object. - The configuration that is extended. - The to invoke. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Executes the specified action when a matching call is being made. - - The configuration that is extended. - The to invoke. - The type of fake object. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - The signatures of the faked method and the do not match. - The fake object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The exception to throw when a call that matches is invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Configuration object. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - A function that returns the exception to throw when invoked. - Type of the first argument of the faked method call. - Type of the second argument of the faked method call. - Type of the third argument of the faked method call. - Type of the fourth argument of the faked method call. - Configuration object. - The signatures of the faked method and the do not match. - - - - Throws the specified exception when the currently configured - call gets called. - - The configuration to use. - The type of exception to throw. - Configuration object. - - - - Provides methods for guarding method arguments. - - - - - Throws an exception if the specified argument is null. - - The argument. - Name of the argument. - The specified argument was null. - - - - When applied to a parameter, this attribute provides an indication to code analysis that the argument has been null checked. - - - - - Gets the value produced by the specified expression when compiled and invoked. - - The expression to get the value from. - The value produced by the expression. - - - - Provides access to the file system. - - - - - Opens the specified file in the specified mode. - - The full path and name of the file to open. - The mode to open the file in. - A stream for reading and writing the file. - - - - Gets a value indicating whether the specified file exists. - - The path and name of the file to check. - True if the file exists. - - - - Creates a file with the specified name. - - The name of the file to create. - - - - A simple implementation of an IoC container. - - - - - The dictionary that stores the registered services. - - - - - Initializes a new instance of the class. - - - - - Resolves an instance of the specified component type. - - Type of the component. - An instance of the component type. - - - - Registers the specified resolver. - - The type of component to register. - The resolver. - - - - Registers the specified resolver as a singleton. - - The type of component to register. - The resolver. - - - - Provides properties and methods to specify repeat. - - - - - Specifies the number of times as repeat. - - The number of times expected. - A Repeated instance. - - - - Specifies once as the repeat. - - - - - Specifies twice as the repeat. - - - - - Lets you specify options for the next call to a fake object. - - - - - Specifies options for the next call to the specified fake object. The next call will - be recorded as a call configuration. - - The type of the faked object. - The faked object to configure. - A call configuration object. - - - - Provides functionality for making ordered assertions on fakes. - - - - - Creates a scope that changes the behavior on asserts so that all asserts within - the scope must be to calls in the specified collection of calls. Calls must have happened - in the order that the asserts are specified or the asserts will fail. - - The calls to assert among. - A disposable used to close the scope. - - - - Provides static methods for the IOutputWriter-interface. - - - - - Writes a new line to the writer. - - The writer to write to. - The writer. - - - - Writes the format string to the writer. - - The writer to write to. - The format string to write. - Replacements for the format string. - The writer. - - - - Writes the specified object to the writer (using the ToString-method of the object). - - The writer to write to. - The value to write to the writer. - The writer. - - - - Allows the developer to raise an event on a faked object. - - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event args. - The sender of the event. - The instance containing the event data. - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - Raises an event on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - The type of the event arguments. - The instance containing the event data. - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - Raises an event with empty event arguments on a faked object by attaching the event handler produced by the method - to the event that is to be raised. - - - A Raise(TEventArgs)-object that exposes the event handler to attach. - - - - - A class exposing an event handler to attach to an event of a faked object - in order to raise that event. - - The type of the event args. - - - - Register this event handler to an event on a faked object in order to raise that event. - - The sender of the event. - Event args for the event. - - - - Gets a generic event handler to attach to the event to raise. - - - - - Provides methods for creating recorders for self initializing fakes. - - - - - Provides syntax for specifying the number of times a call must have been repeated when asserting on - fake object calls. - - A.CallTo(() => foo.Bar()).Assert(Happened.Once.Exactly); - - - - Specifies that a call must have been repeated a number of times - that is validated by the specified repeatValidation argument. - - A predicate that specifies the number of times - a call must have been made. - A Repeated-instance. - - - - When implemented gets a value indicating if the repeat is matched - by the Happened-instance. - - The repeat of a call. - True if the repeat is a match. - - - - Asserts that a call has not happened at all. - - - - - The call must have happened exactly the number of times that is specified in the next step. - - - - - The call must have happened any number of times greater than or equal to the number of times that is specified - in the next step. - - - - - The call must have happened any number of times less than or equal to the number of times that is specified - in the next step. - - - - - Handles the registration of root dependencies in an IoC-container. - - - - - Registers the dependencies. - - The container to register the dependencies in. - - - - DTO for recorded calls. - - - - - Initializes a new instance of the class. - - The method. - The output arguments. - The return value. - - - - Gets the method that was called. - - The method. - - - - Gets the output arguments of the call. - - The output arguments. - - - - Gets the return value of the call. - - The return value. - - - - Represents storage for recorded calls for self initializing - fakes. - - - - - Loads the recorded calls for the specified recording. - - The recorded calls for the recording with the specified id. - - - - Saves the specified calls as the recording with the specified id, - overwriting any previous recording. - - The calls to save. - - - - An interface for recorders that provides stored responses for self initializing fakes. - - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Gets a value indicating whether the recorder is currently recording. - - - - - An exception that can be thrown when recording for self initialized - fakes fails or when playback fails. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The message. - - - - Initializes a new instance of the class. - - The message. - The inner exception. - - - - Manages the applying of recorded calls and recording of new calls when - using self initialized fakes. - - - - - Initializes a new instance of the class. - - The storage. - - - - Applies the call if the call has been recorded. - - The call to apply to from recording. - - - - Records the specified call. - - The call to record. - - - - Saves all recorded calls to the storage. - - - - - Gets a value indicating whether the recorder is currently recording. - - - - - - Represents a factory responsible for creating recording manager - instances. - - The storage the manager should use. - A RecordingManager instance. - - - - A call rule use for self initializing fakes, delegates call to - be applied by the recorder. - - - - - Initializes a new instance of the class. - - The wrapped rule. - The recorder. - - - - Gets whether this interceptor is applicable to the specified - call, if true is returned the Apply-method of the interceptor will - be called. - - The call to check for applicability. - True if the interceptor is applicable. - - - - Applies an action to the call, might set a return value or throw - an exception. - - The call to apply the interceptor to. - - - - Gets the number of times this call rule is valid, if it's set - to null its infinitely valid. - - - - - - An attribute that can be applied to code that should be fixed because there's a - code smell. - - - - - Gets or sets the description of the smell. - - - - - Used to tag fields and properties that will be initialized as a SUT through the Fake.Initialize-method. - - - - - Fixes so that existing Serializable-attributes are omitted in the compilation - of the silverlight project. - - - - - Fixes so that existing NonSerialized-attributes are omitted in the compilation - of the silverlight project. - - - - diff --git a/dep/repositories.config b/dep/repositories.config index ee09227463b..bc0d4524401 100644 --- a/dep/repositories.config +++ b/dep/repositories.config @@ -9,7 +9,6 @@ - diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs index 83dc14c673a..ffd7f1d253d 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/ApiGenerator.cs @@ -133,11 +133,11 @@ public static void PatchMethod(CsharpMethod method) Regex.Replace(method.FullName, m, (a) => a.Index != method.FullName.IndexOf(m) ? "" : m); string manualOverride; - var key = method.QueryStringParamName.Replace("QueryString", ""); + var key = method.QueryStringParamName.Replace("RequestParameters", ""); if (MethodNameOverrides.TryGetValue(key, out manualOverride)) - method.QueryStringParamName = manualOverride + "QueryString"; + method.QueryStringParamName = manualOverride + "RequestParameters"; - method.DescriptorType = method.QueryStringParamName.Replace("QueryString","Descriptor"); + method.DescriptorType = method.QueryStringParamName.Replace("RequestParameters","Descriptor"); string generic; if (KnownDescriptors.TryGetValue(method.DescriptorType, out generic)) @@ -195,17 +195,17 @@ public static void GenerateDescriptors(RestApiSpec model) File.WriteAllText(targetFile, source); } - public static void GenerateQueryStringParameters(RestApiSpec model) + public static void GenerateRequestParameters(RestApiSpec model) { - var targetFile = _esNetFolder + @"Domain\QueryStringParameters.Generated.cs"; - var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"QueryStringParameters.Generated.cshtml"), model).ToString(); + var targetFile = _esNetFolder + @"Domain\RequestParameters.Generated.cs"; + var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"RequestParameters.Generated.cshtml"), model).ToString(); File.WriteAllText(targetFile, source); } - public static void GenerateQueryStringParametersExtensions(RestApiSpec model) + public static void GenerateRequestParametersExtensions(RestApiSpec model) { - var targetFile = _nestFolder + @"Domain\QueryStringParametersExtensions.Generated.cs"; - var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"QueryStringParametersExtensions.Generated.cshtml"), model).ToString(); + var targetFile = _nestFolder + @"Domain\RequestParametersExtensions.Generated.cs"; + var source = _razorMachine.Execute(File.ReadAllText(_viewFolder + @"RequestParametersExtensions.Generated.cshtml"), model).ToString(); File.WriteAllText(targetFile, source); } public static void GenerateEnums(RestApiSpec model) diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj b/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj index e1fe83df2bd..156731f93fe 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/CodeGeneration.LowLevelClient.csproj @@ -47,7 +47,8 @@ ..\..\..\dep\CsQuery.1.3.4\lib\net40\CsQuery.dll - + + False ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll @@ -87,12 +88,12 @@ - + - + diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs index 2972e339bc2..5de2a82bdf7 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/ApiEndpoint.cs @@ -13,7 +13,7 @@ public IEnumerable MethodArguments { var methodArgs = CsharpMethod.Parts .Select(p => (p.Name != "body") ? "pathInfo." + p.Name.ToPascalCase() : "body") - .Concat(new[] {"u => pathInfo.QueryString"}); + .Concat(new[] {"u => pathInfo.RequestParameters"}); return methodArgs; } } @@ -145,7 +145,7 @@ public IEnumerable CsharpMethods { this.Url.Params = new Dictionary(); } - queryStringParamName = this.CsharpMethodName + "QueryString"; + queryStringParamName = this.CsharpMethodName + "RequestParameters"; var paraIndent = "\r\n\t\t///"; var explanationOfT = paraIndent + " - If T is of type byte[] deserialization will be shortcircuited" @@ -156,6 +156,7 @@ public IEnumerable CsharpMethods QueryStringParamName = queryStringParamName, ReturnType = "ElasticsearchResponse", ReturnTypeGeneric = "", + CallTypeGeneric = "T", ReturnDescription = "ElasticsearchResponse<T> holding the reponse body deserialized as T." + explanationOfT, @@ -170,8 +171,7 @@ public IEnumerable CsharpMethods args = args.Concat(new[] { - "Func<"+apiMethod.QueryStringParamName+", " + apiMethod.QueryStringParamName + "> queryString = null", - "object deserializationState = null" + "Func<"+apiMethod.QueryStringParamName+", " + apiMethod.QueryStringParamName + "> requestParameters = null" }).ToList(); apiMethod.Arguments = string.Join(", ", args); yield return apiMethod; @@ -181,6 +181,7 @@ public IEnumerable CsharpMethods QueryStringParamName = queryStringParamName, ReturnType = "Task>", ReturnTypeGeneric = "", + CallTypeGeneric = "T", ReturnDescription = "A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T." + explanationOfT, @@ -196,7 +197,6 @@ public IEnumerable CsharpMethods yield return apiMethod; //No need for deserialization state when returning dynamicdictionary - args = args.Take(args.Count() - 1).ToList(); var explanationOfDynamic = paraIndent + @@ -206,11 +206,15 @@ public IEnumerable CsharpMethods + paraIndent + " - can be safely dispatched to a nullable type even if intermediate properties do not exist"; + var defaultBoundGeneric = Url.Path.Contains("_cat") ? "string" : "DynamicDictionary"; + apiMethod = new CsharpMethod { QueryStringParamName = queryStringParamName, - ReturnType = "ElasticsearchResponse", + ReturnType = string.Format("ElasticsearchResponse<{0}>", defaultBoundGeneric), ReturnTypeGeneric = null, + CallTypeGeneric = defaultBoundGeneric == "DynamicDictionary" + ? "Dictionary" : defaultBoundGeneric, ReturnDescription = "ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary" + explanationOfDynamic, @@ -228,8 +232,10 @@ public IEnumerable CsharpMethods apiMethod = new CsharpMethod { QueryStringParamName = queryStringParamName, - ReturnType = "Task>", + ReturnType = string.Format("Task>", defaultBoundGeneric), ReturnTypeGeneric = null, + CallTypeGeneric = defaultBoundGeneric == "DynamicDictionary" + ? "Dictionary" : defaultBoundGeneric, ReturnDescription = "Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary" + explanationOfDynamic, diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs index 6247eeebae1..36d3e225fb2 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Domain/CsharpMethod.cs @@ -6,6 +6,7 @@ public class CsharpMethod { public string ReturnType { get; set; } public string ReturnTypeGeneric { get; set; } + public string CallTypeGeneric { get; set; } public string ReturnDescription { get; set; } public string FullName { get; set; } public string QueryStringParamName { get; set; } diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs b/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs index fecd3e42799..c59e7a3d5d0 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Program.cs @@ -15,8 +15,8 @@ static void Main(string[] args) ApiGenerator.GenerateClientInterface(spec); - ApiGenerator.GenerateQueryStringParameters(spec); - ApiGenerator.GenerateQueryStringParametersExtensions(spec); + ApiGenerator.GenerateRequestParameters(spec); + ApiGenerator.GenerateRequestParametersExtensions(spec); ApiGenerator.GenerateDescriptors(spec); diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml index 5c3b17467a2..cb6dc364e80 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/ElasticsearchClient.Generated.cshtml @@ -42,11 +42,10 @@ namespace Elasticsearch.Net { @Raw("///")@part.Description@Raw("") } - @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(@"/// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + ///") @Raw("///"+method.ReturnDescription) ///@Raw("") public @Raw(method.ReturnType) @(method.FullName)@(Raw(method.ReturnTypeGeneric))(@Raw(method.Arguments)) @@ -63,23 +62,26 @@ namespace Elasticsearch.Net { var url = "@(url)"; } - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) + { + requestParams = requestParameters(new @(method.QueryStringParamName)()@(url.StartsWith("_cat") ? Raw(".RequestConfiguration(r=>r.ContentType(\"text/plain\"))") : null)); + ToNameValueCollection(requestParams); + } + @if (url.StartsWith("_cat")) { - var qs = queryString(new @(method.QueryStringParamName)()); - if (qs != null) nv = this.ToNameValueCollection(qs); + else requestParams = new @(method.QueryStringParamName)().RequestConfiguration(r=>r.ContentType("text/plain")); } + @{ bool isAsync = method.ReturnType.StartsWith("Task<"); string requestMethod = isAsync ? "DoRequestAsync" : "DoRequest"; - bool wrap = method.ReturnTypeGeneric == null; + bool wrap = method.CallTypeGeneric == "Dictionary"; } - 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 ? ")" : ""); + return @(wrap ? "ElasticsearchResponse.Wrap"+ (isAsync ? "Async" : "") +"(" : "")this.@(requestMethod)@(Raw("<" + method.CallTypeGeneric + ">"))( + "@method.HttpMethod", url@(method.Parts.Any(pp=>pp.Name == "body") ? ", body" : ", data: null"), + requestParameters: requestParams + )@(wrap ? ")" : ""); } } diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml index bca49c16fdb..e85343e14e9 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/IElasticsearchClient.Generated.cshtml @@ -39,11 +39,10 @@ namespace Elasticsearch.Net { @Raw("///")@part.Description@Raw("") } - @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(@"/// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + ///") @Raw("///"+method.ReturnDescription) ///@Raw("") diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml index 196d1c183ff..ccccda65839 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RawDispatch.Generated.cshtml @@ -36,7 +36,7 @@ namespace Nest foreach(var gen in generate) { - internal @Raw(gen.Returns) @(Raw(gen.Name))(ElasticsearchPathInfo<@peek.QueryStringParamName> pathInfo @if (endpoint.Body != null) {, object body}, object deserializationState = null) + internal @Raw(gen.Returns) @(Raw(gen.Name))(ElasticsearchPathInfo<@peek.QueryStringParamName> pathInfo @if (endpoint.Body != null) {, object body}) { switch(pathInfo.HttpMethod) { @@ -55,18 +55,18 @@ namespace Nest //@method.HttpMethod @method.Path if (i == 0 && !dispatch.IfChecks.Any()) { - return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState); + return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments))); } else { if (dispatch.IfChecks.Any()) { if (@Raw(string.Join(" && ", dispatch.IfChecks))) - return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState); + return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments))); } else { - return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments)), deserializationState); + return this.Raw.@(Raw(name))(@Raw(string.Join(",", dispatch.MethodArguments))); } } if (i == totalDispatches - 1 && allWithIfChecks) diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParameters.Generated.cshtml similarity index 94% rename from src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml rename to src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParameters.Generated.cshtml index 409d33b2f92..bcceb23e739 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParameters.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParameters.Generated.cshtml @@ -23,7 +23,7 @@ namespace Elasticsearch.Net ///@method.Documentation /// /// - public class @method.QueryStringParamName : FluentQueryString<@method.QueryStringParamName> + public class @method.QueryStringParamName : FluentRequestParameters<@method.QueryStringParamName> { @foreach (KeyValuePair kv in method.Url.Params) { diff --git a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml similarity index 93% rename from src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml rename to src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml index b1d98b78937..749b7665e4c 100644 --- a/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/QueryStringParametersExtensions.Generated.cshtml +++ b/src/CodeGeneration/CodeGeneration.LowLevelClient/Views/RequestParametersExtensions.Generated.cshtml @@ -12,13 +12,13 @@ using System.Linq.Expressions; using Elasticsearch.Net; using Nest.Resolvers; -///This file contains all the typed querystring parameters that are generated of the client spec. +///This file contains all the typed request parameters that are generated of the client spec. ///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec ///Generated of commit @Model.Commit namespace Nest { - public static class QueryStringPameterExtensions + public static class RequestPameterExtensions { @foreach (CsharpMethod method in Model.CsharpMethodsWithQueryStringInfo) { diff --git a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj index 8d7ca1eaf63..9c61d2b5620 100644 --- a/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj +++ b/src/CodeGeneration/CodeGeneration.YamlTestsRunner/CodeGeneration.YamlTestsRunner.csproj @@ -45,7 +45,8 @@ ..\..\..\dep\Moq.4.2.1312.1622\lib\net40\Moq.dll - + + False ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll diff --git a/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs b/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs index fe7fbb5bd7b..205e7e8af67 100644 --- a/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs +++ b/src/Connections/Elasticsearch.Net.Connection.HttpClient/ElasticsearchHttpClient.cs @@ -9,121 +9,110 @@ namespace Elasticsearch.Net.Connection.HttpClient { - public class ElasticsearchHttpClient : IConnection - { - private IConnectionConfigurationValues _settings; - - public ElasticsearchHttpClient(IConnectionConfigurationValues settings) - { - _settings = settings; - } - - public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = null) - { - var client = new System.Net.Http.HttpClient(); - HttpResponseMessage response = null; - HttpContent content = null; + public class ElasticsearchHttpClient : IConnection + { + private IConnectionConfigurationValues _settings; + + public ElasticsearchHttpClient(IConnectionConfigurationValues settings) + { + _settings = settings; + } + + public ElasticsearchResponse DoSyncRequest(string method, Uri uri, byte[] data = null) + { + var client = new System.Net.Http.HttpClient(); + HttpResponseMessage response = null; + HttpContent content = null; if (data != null) content = new ByteArrayContent(data); - switch (method.ToLower()) - { - case "head": - response = client.SendAsync(new HttpRequestMessage(HttpMethod.Head, uri) ).Result; - break; - case "delete": + switch (method.ToLower()) + { + case "head": + response = client.SendAsync(new HttpRequestMessage(HttpMethod.Head, uri)).Result; + break; + case "delete": response = client.SendAsync(new HttpRequestMessage(HttpMethod.Delete, uri) { Content = content }).Result; - break; - case "put": + break; + case "put": response = client.PutAsync(uri, content).Result; - break; - case "post": + break; + case "post": response = client.PostAsync(uri, content).Result; - break; - case "get": + break; + case "get": response = client.GetAsync(uri).Result; - break; - } + break; + } if (response == null) - return ElasticsearchResponse.CreateError(_settings, null, method, uri.ToString(), data); + 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, object deserializeState = null) - { - throw new NotImplementedException(); - } - - public ElasticsearchResponse GetSync(Uri uri, object deserializeState = null) - { - return this.DoSyncRequest("get", uri); - } - - public Task> Head(Uri uri, object deserializeState = null) - { - throw new NotImplementedException(); - } - - public ElasticsearchResponse HeadSync(Uri uri, object deserializeState = null) - { - return this.DoSyncRequest("head", uri); - throw new NotImplementedException(); - } - - public Task> Post(Uri uri, byte[] data, object deserializeState = null) - { - throw new NotImplementedException(); - } - - public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializeState = null) - { - return this.DoSyncRequest("post", uri, data); - throw new NotImplementedException(); - } - - public Task> Put(Uri uri, byte[] data, object deserializeState = null) - { - throw new NotImplementedException(); - } - - public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializeState = null) - { - return this.DoSyncRequest("put", uri, data); - throw new NotImplementedException(); - } - - public Task> Delete(Uri uri, object deserializeState = null) - { - throw new NotImplementedException(); - } - - public ElasticsearchResponse DeleteSync(Uri uri, object deserializeState = null) - { - return this.DoSyncRequest("delete", uri); - throw new NotImplementedException(); - } - - public Task> Delete(Uri uri, byte[] data, object deserializeState = null) - { - throw new NotImplementedException(); - } - - public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializeState = null) - { - return this.DoSyncRequest("delete", uri, data); - throw new NotImplementedException(); - } - - public bool Ping(Uri uri) - { - throw new NotImplementedException(); - } - - public IList Sniff(Uri uri) - { - throw new NotImplementedException(); - } - } + { + var cs = ElasticsearchResponse.Create(this._settings, (int)response.StatusCode, method, uri.ToString(), data, result); + return cs; + } + } + + + + public Task> Get(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public Task> Head(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public Task> Delete(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) + { + throw new NotImplementedException(); + } + + public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) + { + 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 2db5acb1acc..bedf35ad5d9 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 @@ -69,7 +69,8 @@ False ..\..\..\dep\NetReflector.1.1.2009\lib\net20\NetReflector.dll - + + False ..\..\..\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 6b1ea02dd8a..08fc96415b2 100644 --- a/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs +++ b/src/Connections/Elasticsearch.Net.Connection.Thrift/ThriftConnection.cs @@ -45,7 +45,7 @@ public ThriftConnection(IConnectionConfigurationValues connectionSettings) #region IConnection Members - public Task> Get(Uri uri, object deserializationState = null) + public Task> Get(Uri uri, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.GET; @@ -53,13 +53,13 @@ public Task> Get(Uri uri, object deserializationStat restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew>(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); }); } - public Task> Head(Uri uri, object deserializationState = null) + public Task> Head(Uri uri, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.HEAD; @@ -67,13 +67,13 @@ public Task> Head(Uri uri, object deserializationSta restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew>(()=> + return Task.Factory.StartNew>(()=> { - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); }); } - public ElasticsearchResponse GetSync(Uri uri, object deserializationState = null) + public ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.GET; @@ -81,10 +81,10 @@ public ElasticsearchResponse GetSync(Uri uri, object deserializationState restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); } - public ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null) + public ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.HEAD; @@ -92,10 +92,10 @@ public ElasticsearchResponse HeadSync(Uri uri, object deserializationState restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); } - public Task> Post(Uri uri, byte[] data, object deserializationState = null) + public Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.POST; @@ -104,12 +104,12 @@ public Task> Post(Uri uri, byte[] data, object deser 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, deserializationState); + return this.Execute(restRequest, deserializationState); }); } - public Task> Put(Uri uri, byte[] data, object deserializationState = null) + public Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.PUT; @@ -118,12 +118,12 @@ public Task> Put(Uri uri, byte[] data, object deseri 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, deserializationState); + return this.Execute(restRequest, deserializationState); }); } - public Task> Delete(Uri uri, byte[] data, object deserializationState = null) + public Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -132,13 +132,13 @@ public Task> Delete(Uri uri, byte[] data, object des 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, deserializationState); + return this.Execute(restRequest, deserializationState); }); } - public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null) + public ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.POST; @@ -147,9 +147,9 @@ public ElasticsearchResponse PostSync(Uri uri, byte[] data, object deseria restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); } - public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null) + public ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.PUT; @@ -158,9 +158,9 @@ public ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserial restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); } - public Task> Delete(Uri uri, object deserializationState = null) + public Task> Delete(Uri uri, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -168,13 +168,13 @@ public Task> Delete(Uri uri, object deserializationS restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return Task.Factory.StartNew>(() => + return Task.Factory.StartNew>(() => { - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); }); } - public ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null) + public ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -182,9 +182,9 @@ public ElasticsearchResponse DeleteSync(Uri uri, object deserializationSta restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); } - public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null) + public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration deserializationState = null) { var restRequest = new RestRequest(); restRequest.Method = Method.DELETE; @@ -193,35 +193,9 @@ public ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deser restRequest.Body = data; restRequest.Headers = new Dictionary(); restRequest.Headers.Add("Content-Type", "application/json"); - return this.Execute(restRequest, deserializationState); + return this.Execute(restRequest, deserializationState); } - public bool Ping(Uri uri) - { - var restRequest = new RestRequest(); - restRequest.Method = Method.HEAD; - restRequest.Uri = uri; - - restRequest.Headers = new Dictionary(); - restRequest.Headers.Add("Content-Type", "application/json"); - var r = this.Execute(restRequest, null); //TODO VoidResponse - return r.Success; - } - - public IList Sniff(Uri uri) - { - var restRequest = new RestRequest(); - restRequest.Method = Method.GET; - restRequest.Uri = new Uri(uri,"/_nodes/_all/clear?timeout=" + this._connectionSettings.PingTimeout.GetValueOrDefault(50)); - - restRequest.Headers = new Dictionary(); - restRequest.Headers.Add("Content-Type", "application/json"); - var r = this.Execute(restRequest, null); - using (var memoryStream = new MemoryStream(r.Response)) - { - return Sniffer.FromStream(r, memoryStream, this._connectionSettings.Serializer); - } - } #endregion @@ -270,7 +244,7 @@ protected virtual void Dispose(bool disposing) - private ElasticsearchResponse Execute(RestRequest restRequest, object deserializationState) + private ElasticsearchResponse Execute(RestRequest restRequest, object deserializationState) { //RestResponse result = GetClient().execute(restRequest); // @@ -280,7 +254,7 @@ private ElasticsearchResponse Execute(RestRequest restRequest, object dese 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 { @@ -288,7 +262,7 @@ private ElasticsearchResponse Execute(RestRequest restRequest, object dese 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 @@ -299,34 +273,17 @@ private ElasticsearchResponse Execute(RestRequest restRequest, object dese var result = client.execute(restRequest); if (result.Status == Status.OK || result.Status == Status.CREATED || result.Status == Status.ACCEPTED) { - 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; - }; + var response = ElasticsearchResponse.Create(this._connectionSettings, (int)result.Status, method, path, requestData); + response.Response = new MemoryStream(result.Body); + return response; } else { - var connectionException = new ConnectionException((int)result.Status); - return ElasticsearchResponse.CreateError(this._connectionSettings, connectionException, method, path, requestData); + var response = ElasticsearchResponse.Create(this._connectionSettings, (int)result.Status, method, path, requestData); + response.Response = new MemoryStream(result.Body); + return response; } } - catch - { - throw; - } finally { //make sure we make the client available again. @@ -336,7 +293,7 @@ private ElasticsearchResponse Execute(RestRequest restRequest, object dese } catch (Exception e) { - return ElasticsearchResponse.CreateError(this._connectionSettings, e, method, path, requestData); + return ElasticsearchResponse.CreateError(this._connectionSettings, e, method, path, requestData); } finally { @@ -344,16 +301,6 @@ private ElasticsearchResponse Execute(RestRequest restRequest, object dese } } - 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/Elasticsearch.Net/Connection/ConnectionError.cs b/src/Elasticsearch.Net/Connection/ConnectionError.cs index 8d7b689a82b..15ce9b9fe76 100644 --- a/src/Elasticsearch.Net/Connection/ConnectionError.cs +++ b/src/Elasticsearch.Net/Connection/ConnectionError.cs @@ -7,31 +7,17 @@ namespace Elasticsearch.Net.Connection { - public enum ConnectionErrorType - { - /// - /// The error was due to an uncaught exception in the client code - /// - Uncaught, - /// - /// The error was due to an error thrown by Elasticsearch - /// - Server, - } public class ConnectionError { - public ConnectionErrorType Type { get; set; } public HttpStatusCode? HttpStatusCode { get; set; } public string ExceptionMessage { get; set; } public Exception OriginalException { get; set; } - public byte[] ResponseReadFromWebException { get; set; } public ConnectionError(Exception e) { this.OriginalException = e; this.ExceptionMessage = e.Message; - this.Type = ConnectionErrorType.Uncaught; var webException = e as WebException; if (webException == null) { @@ -41,29 +27,13 @@ public ConnectionError(Exception e) this.HttpStatusCode = (HttpStatusCode)connectionException.HttpStatusCode; return; } - this.Type = ConnectionErrorType.Server; - var response = (HttpWebResponse)webException.Response; - this.SetWebResponseData(response); + //var response = (HttpWebResponse)webException.Response; + //this.SetWebResponseData(response); } private void SetWebResponseData(HttpWebResponse response) { - if (response == null) - return; - - this.HttpStatusCode = response.StatusCode; - try - { - using (var responseStream = response.GetResponseStream()) - using (var memoryStream = new MemoryStream()) - { - responseStream.CopyTo(memoryStream); - this.ResponseReadFromWebException = memoryStream.ToArray(); - } - } - finally - { - } + } } diff --git a/src/Elasticsearch.Net/Connection/HttpConnection.cs b/src/Elasticsearch.Net/Connection/HttpConnection.cs index 879232e7d1b..aee60b9d389 100644 --- a/src/Elasticsearch.Net/Connection/HttpConnection.cs +++ b/src/Elasticsearch.Net/Connection/HttpConnection.cs @@ -42,91 +42,76 @@ public HttpConnection(IConnectionConfigurationValues settings) this._enableTrace = settings.TraceEnabled; } - public virtual ElasticsearchResponse GetSync(Uri uri, object deserializationState = null) + public virtual ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.HeaderOnlyRequest(uri, "GET", deserializationState); + return this.HeaderOnlyRequest(uri, "GET", requestSpecificConfig); } - public virtual ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null) + public virtual ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.HeaderOnlyRequest(uri, "HEAD", deserializationState); + return this.HeaderOnlyRequest(uri, "HEAD", requestSpecificConfig); } - public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null) + public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.BodyRequest(uri, data, "POST", deserializationState); + return this.BodyRequest(uri, data, "POST", requestSpecificConfig); } - public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null) + public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.BodyRequest(uri, data, "PUT", deserializationState); + return this.BodyRequest(uri, data, "PUT", requestSpecificConfig); } - public virtual ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null) + public virtual ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.HeaderOnlyRequest(uri, "DELETE", deserializationState); + return this.HeaderOnlyRequest(uri, "DELETE", requestSpecificConfig); } - public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null) + public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.BodyRequest(uri, data, "DELETE", deserializationState); + return this.BodyRequest(uri, data, "DELETE", requestSpecificConfig); } - - public virtual bool Ping(Uri uri) + + private ElasticsearchResponse HeaderOnlyRequest(Uri uri, string method, IRequestConnectionConfiguration requestSpecificConfig) { - var request = this.CreateHttpWebRequest(uri, "HEAD"); - request.Timeout = this._ConnectionSettings.PingTimeout.GetValueOrDefault(50); - request.ReadWriteTimeout = this._ConnectionSettings.PingTimeout.GetValueOrDefault(50); - using (var response = (HttpWebResponse)request.GetResponse()) - { - return response.StatusCode == HttpStatusCode.OK; - } + var r = this.CreateHttpWebRequest(uri, method, requestSpecificConfig); + return this.DoSynchronousRequest(r, requestSpecificConfig: requestSpecificConfig); } - public virtual IList Sniff(Uri uri) + private ElasticsearchResponse BodyRequest(Uri uri, byte[] data, string method, IRequestConnectionConfiguration requestSpecificConfig) { - uri = new Uri(uri, "_nodes/_all/clear?timeout=" + this._ConnectionSettings.PingTimeout.GetValueOrDefault(50)); - var request = this.CreateHttpWebRequest(uri, "GET"); - request.Timeout = this._ConnectionSettings.Timeout; - request.ReadWriteTimeout = this._ConnectionSettings.Timeout; - using (var response = (HttpWebResponse)request.GetResponse()) - using (var responseStream = response.GetResponseStream()) - { - if (response.StatusCode != HttpStatusCode.OK) - return new List(); - var cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int)response.StatusCode, "GET", uri.AbsolutePath, null); - return Sniffer.FromStream(cs, responseStream, this._ConnectionSettings.Serializer); - } + var r = this.CreateHttpWebRequest(uri, method, requestSpecificConfig); + return this.DoSynchronousRequest(r, data, requestSpecificConfig); } - public virtual Task> Get(Uri uri, object deserializationState = null) + public virtual Task> Get(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - var r = this.CreateHttpWebRequest(uri, "GET"); - return this.DoAsyncRequest(r, deserializationState: deserializationState); + var r = this.CreateHttpWebRequest(uri, "GET", requestSpecificConfig); + return this.DoAsyncRequest(r, requestSpecificConfig: requestSpecificConfig); } - public virtual Task> Head(Uri uri, object deserializationState = null) + public virtual Task> Head(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - var r = this.CreateHttpWebRequest(uri, "HEAD"); - return this.DoAsyncRequest(r, deserializationState: deserializationState); + var r = this.CreateHttpWebRequest(uri, "HEAD", requestSpecificConfig); + return this.DoAsyncRequest(r, requestSpecificConfig: requestSpecificConfig); } - public virtual Task> Post(Uri uri, byte[] data, object deserializationState = null) + public virtual Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { - var r = this.CreateHttpWebRequest(uri, "POST"); - return this.DoAsyncRequest(r, data, deserializationState: deserializationState); + var r = this.CreateHttpWebRequest(uri, "POST", requestSpecificConfig); + return this.DoAsyncRequest(r, data, requestSpecificConfig: requestSpecificConfig); } - public virtual Task> Put(Uri uri, byte[] data, object deserializationState = null) + public virtual Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { - var r = this.CreateHttpWebRequest(uri, "PUT"); - return this.DoAsyncRequest(r, data, deserializationState: deserializationState); + var r = this.CreateHttpWebRequest(uri, "PUT", requestSpecificConfig); + return this.DoAsyncRequest(r, data, requestSpecificConfig: requestSpecificConfig); } - public virtual Task> Delete(Uri uri, byte[] data, object deserializationState = null) + public virtual Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { - var r = this.CreateHttpWebRequest(uri, "DELETE"); - return this.DoAsyncRequest(r, data, deserializationState: deserializationState); + var r = this.CreateHttpWebRequest(uri, "DELETE", requestSpecificConfig); + return this.DoAsyncRequest(r, data, requestSpecificConfig: requestSpecificConfig); } - public virtual Task> Delete(Uri uri, object deserializationState = null) + public virtual Task> Delete(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - var r = this.CreateHttpWebRequest(uri, "DELETE"); - return this.DoAsyncRequest(r, deserializationState: deserializationState); + var r = this.CreateHttpWebRequest(uri, "DELETE", requestSpecificConfig); + return this.DoAsyncRequest(r, requestSpecificConfig: requestSpecificConfig); } private static void ThreadTimeoutCallback(object state, bool timedOut) @@ -141,21 +126,10 @@ private static void ThreadTimeoutCallback(object state, bool timedOut) } } - private ElasticsearchResponse HeaderOnlyRequest(Uri uri, string method, object deserializationState) - { - var r = this.CreateHttpWebRequest(uri, method); - return this.DoSynchronousRequest(r, deserializationState: deserializationState); - } - - private ElasticsearchResponse BodyRequest(Uri uri, byte[] data, string method, object deserializationState) - { - var r = this.CreateHttpWebRequest(uri, method); - return this.DoSynchronousRequest(r, data, deserializationState); - } - protected virtual HttpWebRequest CreateHttpWebRequest(Uri uri, string method) + protected virtual HttpWebRequest CreateHttpWebRequest(Uri uri, string method, IRequestConnectionConfiguration requestSpecificConfig) { - var myReq = this.CreateWebRequest(uri, method); + var myReq = this.CreateWebRequest(uri, method, requestSpecificConfig); this.SetBasicAuthorizationIfNeeded(myReq); this.SetProxyIfNeeded(myReq); return myReq; @@ -181,22 +155,24 @@ private void SetBasicAuthorizationIfNeeded(HttpWebRequest myReq) //if (this._ConnectionSettings.UriSpecifiedBasicAuth) //{ - myReq.Headers["Authorization"] = - "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(myReq.RequestUri.UserInfo)); + myReq.Headers["Authorization"] = + "Basic " + Convert.ToBase64String(Encoding.UTF8.GetBytes(myReq.RequestUri.UserInfo)); //} } - protected virtual HttpWebRequest CreateWebRequest(Uri uri, string method) + protected virtual HttpWebRequest CreateWebRequest(Uri uri, string method, IRequestConnectionConfiguration requestSpecificConfig) { //TODO append global querystring //var url = this._CreateUriString(path); var myReq = (HttpWebRequest)WebRequest.Create(uri); - //TODO move this to transport - if (!uri.AbsolutePath.StartsWith("_cat")) + + myReq.Accept = "application/json"; + myReq.ContentType = "application/json"; + if (requestSpecificConfig != null && !string.IsNullOrWhiteSpace(requestSpecificConfig.AcceptsContentType)) { - myReq.Accept = "application/json"; - myReq.ContentType = "application/json"; + myReq.Accept = requestSpecificConfig.AcceptsContentType; + myReq.ContentType = requestSpecificConfig.AcceptsContentType; } var timeout = this._ConnectionSettings.Timeout; myReq.Timeout = timeout; // 1 minute timeout. @@ -205,111 +181,75 @@ protected virtual HttpWebRequest CreateWebRequest(Uri uri, string method) return myReq; } - protected virtual ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) + protected virtual ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null, IRequestConnectionConfiguration requestSpecificConfig = null) { var path = request.RequestUri.ToString(); var method = request.Method; - using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) + + if (data != null) { - ElasticsearchResponse cs = null; - if (data != null) - { - using (var r = request.GetRequestStream()) - { - r.Write(data, 0, data.Length); - } - } - try - { - using (var response = (HttpWebResponse)request.GetResponse()) - using (var responseStream = response.GetResponseStream()) - return WebToElasticsearchResponse(data, deserializationState, responseStream, response, method, path, tracer); - } - catch (WebException webException) + using (var r = request.GetRequestStream()) { - 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; + r.Write(data, 0, data.Length); } } - + try + { + //http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.getresponsestream.aspx + //Either the stream or the response object needs to be closed but not both although it won't + //throw any errors if both are closed atleast one of them has to be Closed. + //Since we expose the stream we let closing the stream determining when to close the connection + var response = (HttpWebResponse)request.GetResponse(); + var responseStream = response.GetResponseStream(); + return WebToElasticsearchResponse(data, responseStream, response, method, path); + } + catch (WebException webException) + { + return HandleWebException(data, webException, method, path); + } } - private ElasticsearchResponse WebToElasticsearchResponse(byte[] data, object deserializationState, - Stream responseStream, HttpWebResponse response, string method, string path, ElasticsearchResponseTracer tracer) + private ElasticsearchResponse HandleWebException(byte[] data, WebException webException, string method, string path) { - ElasticsearchResponse cs = - ElasticsearchResponse.Create(this._ConnectionSettings, (int) response.StatusCode, method, path, data); - if (typeof(T) == typeof(VoidResponse)) - return cs; - using (var memoryStream = new MemoryStream()) + ElasticsearchResponse cs = null; + var httpEx = webException.Response as HttpWebResponse; + if (httpEx != null) { - 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); + cs = WebToElasticsearchResponse(data, httpEx.GetResponseStream(), httpEx, method, path); return cs; } + cs = ElasticsearchResponse.CreateError(this._ConnectionSettings, webException, method, path, data); + return cs; } - protected virtual Task> DoAsyncRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) + private ElasticsearchResponse WebToElasticsearchResponse(byte[] data, Stream responseStream, HttpWebResponse response, string method, string path) { - var tcs = new TaskCompletionSource>(); + ElasticsearchResponse cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int)response.StatusCode, method, path, data); + cs.Response = responseStream; + return cs; + } + + protected virtual Task> DoAsyncRequest(HttpWebRequest request, byte[] data = null, IRequestConnectionConfiguration requestSpecificConfig = null) + { + var tcs = new TaskCompletionSource>(); if (this._ConnectionSettings.MaximumAsyncConnections <= 0 || this._ResourceLock == null) - return this.CreateIterateTask(request, data, deserializationState, tcs); + return this.CreateIterateTask(request, data, requestSpecificConfig, 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)) - { - 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); - tcs.SetResult(cs); - tracer.SetResult(cs); - _ConnectionSettings.ConnectionStatusHandler(cs); - return tcs.Task; - } + 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); + tcs.SetResult(cs); + return tcs.Task; } try { - return this.CreateIterateTask(request, data, deserializationState, tcs); + return this.CreateIterateTask(request, data, requestSpecificConfig, tcs); } finally { @@ -317,113 +257,54 @@ protected virtual Task> DoAsyncRequest(HttpWebReques } } - private Task> CreateIterateTask(HttpWebRequest request, byte[] data, object deserializationState, TaskCompletionSource> tcs) + private Task> CreateIterateTask(HttpWebRequest request, byte[] data, object requestSpecificConfig, TaskCompletionSource> tcs) { - this.Iterate(request, data, this._AsyncSteps(request, tcs, data, deserializationState), tcs); + this.Iterate(request, data, this._AsyncSteps(request, tcs, data, requestSpecificConfig), tcs); return tcs.Task; } - private IEnumerable _AsyncSteps(HttpWebRequest request, TaskCompletionSource> tcs, byte[] data, object deserializationState) + private IEnumerable _AsyncSteps(HttpWebRequest request, TaskCompletionSource> tcs, byte[] data, object requestSpecificConfig) { - using (var tracer = new ElasticsearchResponseTracer(this._ConnectionSettings.TraceEnabled)) - { - var timeout = this._ConnectionSettings.Timeout; + var timeout = this._ConnectionSettings.Timeout; - var state = new ConnectionState { Connection = request }; + var state = new ConnectionState { Connection = request }; - if (data != null) - { - var getRequestStream = Task.Factory.FromAsync(request.BeginGetRequestStream, request.EndGetRequestStream, null); - //ThreadPool.RegisterWaitForSingleObject((getRequestStream as IAsyncResult).AsyncWaitHandle, ThreadTimeoutCallback, request, timeout, true); - yield return getRequestStream; + if (data != null) + { + var getRequestStream = Task.Factory.FromAsync(request.BeginGetRequestStream, request.EndGetRequestStream, null); + //ThreadPool.RegisterWaitForSingleObject((getRequestStream as IAsyncResult).AsyncWaitHandle, ThreadTimeoutCallback, request, timeout, true); + yield return getRequestStream; - var requestStream = getRequestStream.Result; - try - { - var writeToRequestStream = Task.Factory.FromAsync(requestStream.BeginWrite, requestStream.EndWrite, data, 0, data.Length, state); - yield return writeToRequestStream; - } - finally - { - requestStream.Close(); - } + var requestStream = getRequestStream.Result; + try + { + var writeToRequestStream = Task.Factory.FromAsync(requestStream.BeginWrite, requestStream.EndWrite, data, 0, data.Length, state); + yield return writeToRequestStream; } - - // Get the response - var getResponse = Task.Factory.FromAsync(request.BeginGetResponse, request.EndGetResponse, null); - //ThreadPool.RegisterWaitForSingleObject((getResponse as IAsyncResult).AsyncWaitHandle, ThreadTimeoutCallback, request, timeout, true); - yield return getResponse; - - var path = request.RequestUri.ToString(); - var method = request.Method; - - // Get the response stream - using (var response = (HttpWebResponse)getResponse.Result) - using (var responseStream = response.GetResponseStream()) - using (var memoryStream = new MemoryStream()) + finally { - Stream s = responseStream; - var cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int) response.StatusCode, method, path, data); - if (typeof(T) == typeof(VoidResponse)) - { - SetReturnOnAsycActors(tcs, cs, tracer); - yield break; - } - 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); + requestStream.Close(); } } - } - private void SetReturnOnAsycActors(TaskCompletionSource> tcs, ElasticsearchResponse cs, - ElasticsearchResponseTracer tracer) - { - tcs.TrySetResult(cs); - tracer.SetResult(cs); - _ConnectionSettings.ConnectionStatusHandler(cs); - } + // Get the response + var getResponse = Task.Factory.FromAsync(request.BeginGetResponse, request.EndGetResponse, null); + //ThreadPool.RegisterWaitForSingleObject((getResponse as IAsyncResult).AsyncWaitHandle, ThreadTimeoutCallback, request, timeout, true); + yield return getResponse; - public void SetStringResult(ElasticsearchResponse response, byte[] rawResponse) - { - response.Response = rawResponse.Utf8String(); - } - - public void SetByteResult(ElasticsearchResponse response, byte[] rawResponse) - { - response.Response = rawResponse; - } + var path = request.RequestUri.ToString(); + var method = request.Method; + //http://msdn.microsoft.com/en-us/library/system.net.httpwebresponse.getresponsestream.aspx + //Either the stream or the response object needs to be closed but not both (although it won't) + //throw any errors if both are closed atleast one of them has to be Closed. + //Since we expose the stream we let closing the stream determining when to close the connection + var response = (HttpWebResponse)getResponse.Result; + var responseStream = response.GetResponseStream(); + var cs = ElasticsearchResponse.Create(this._ConnectionSettings, (int)response.StatusCode, method, path, data); + cs.Response = responseStream; + tcs.TrySetResult(cs); + } public void Iterate(HttpWebRequest request, byte[] data, IEnumerable asyncIterator, TaskCompletionSource> tcs) { @@ -442,6 +323,7 @@ public void Iterate(HttpWebRequest request, byte[] data, IEnumerable as { var path = request.RequestUri.ToString(); var method = request.Method; + var response = ElasticsearchResponse.CreateError(this._ConnectionSettings, exception, method, path, data); tcs.SetResult(response); } @@ -458,7 +340,7 @@ public void Iterate(HttpWebRequest request, byte[] data, IEnumerable as recursiveBody(null); } - + } } diff --git a/src/Elasticsearch.Net/Connection/IConnection.cs b/src/Elasticsearch.Net/Connection/IConnection.cs index ecf99a51e2d..7c0380aa155 100644 --- a/src/Elasticsearch.Net/Connection/IConnection.cs +++ b/src/Elasticsearch.Net/Connection/IConnection.cs @@ -1,6 +1,7 @@ using System; using System.Collections; using System.Collections.Generic; +using System.IO; using System.Security.Cryptography.X509Certificates; using System.Threading.Tasks; @@ -9,26 +10,23 @@ namespace Elasticsearch.Net.Connection public interface IConnection { - Task> Get(Uri uri, object deserializationState = null); - ElasticsearchResponse GetSync(Uri uri, object deserializationState = null); + Task> Get(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null); + ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null); - Task> Head(Uri uri, object deserializationState = null); - ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null); + Task> Head(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null); + ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null); - Task> Post(Uri uri, byte[] data, object deserializationState = null); - ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null); + Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null); + ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null); - Task> Put(Uri uri, byte[] data, object deserializationState = null); - ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null); + Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null); + ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null); - Task> Delete(Uri uri, object deserializationState = null); - ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null); + Task> Delete(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null); + ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = 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); + Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null); + ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null); } } diff --git a/src/Elasticsearch.Net/Connection/IRequestConfiguration.cs b/src/Elasticsearch.Net/Connection/IRequestConfiguration.cs new file mode 100644 index 00000000000..e348349d303 --- /dev/null +++ b/src/Elasticsearch.Net/Connection/IRequestConfiguration.cs @@ -0,0 +1,90 @@ +using System; +using System.ComponentModel; + +namespace Elasticsearch.Net.Connection +{ + public interface IRequestConfiguration : IRequestConnectionConfiguration + { + /// + /// This will override whatever is set on the connection configuration or whatever default the connectionpool has. + /// + int? MaxRetries { get; } + + /// + /// This will force the operation on the specified node, this will bypass any configured connection pool and will no retry. + /// + Uri ForcedNode { get; } + + /// + /// Forces no sniffing to occur on the request no matter what configuration is in place + /// globally + /// + bool? SniffingDisabled { get; } + + bool? PingDisabled { get; } + + + } + + public class RequestConfiguration : RequestConfiguration, IRequestConfiguration + { + + } + + [Browsable(false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public class RequestConfiguration : RequestConnectionConfiguration, IRequestConfiguration + where T : RequestConfiguration, IRequestConfiguration + { + private int? _maxRetries; + private Uri _forceNode; + private bool? _sniffingDisabled; + private bool? _pingDisabled; + + int? IRequestConfiguration.MaxRetries + { + get { return _maxRetries; } + } + + Uri IRequestConfiguration.ForcedNode + { + get { return _forceNode; } + } + + bool? IRequestConfiguration.SniffingDisabled + { + get { return _sniffingDisabled; } + } + + public bool? PingDisabled + { + get { return _pingDisabled; } + } + + + public T DisableSniffing(bool? disable = true) + { + this._sniffingDisabled = disable; + return (T)this; + } + + public T DisablePing(bool? disable = true) + { + this._pingDisabled = disable; + return (T)this; + } + + public T ForceNode(Uri uri) + { + this._forceNode = uri; + return (T)this; + } + public T Retry(int retry) + { + this._maxRetries = retry; + return (T)this; + } + + + } +} \ No newline at end of file diff --git a/src/Elasticsearch.Net/Connection/IRequestConnectionConfiguration.cs b/src/Elasticsearch.Net/Connection/IRequestConnectionConfiguration.cs new file mode 100644 index 00000000000..f084d2501b9 --- /dev/null +++ b/src/Elasticsearch.Net/Connection/IRequestConnectionConfiguration.cs @@ -0,0 +1,58 @@ +using System.ComponentModel; + +namespace Elasticsearch.Net.Connection +{ + public interface IRequestConnectionConfiguration + { + int? TimeoutRequest { get; } + int? TimeoutConnect { get; } + string AcceptsContentType { get; } + } + + + public class RequestConnectionConfiguration : RequestConnectionConfiguration, IRequestConnectionConfiguration + { + + } + + [Browsable(false)] + [EditorBrowsable(EditorBrowsableState.Never)] + public class RequestConnectionConfiguration : IRequestConnectionConfiguration + where T : RequestConnectionConfiguration, IRequestConnectionConfiguration + { + private int? _timeoutRequest; + int? IRequestConnectionConfiguration.TimeoutRequest + { + get { return _timeoutRequest; } + } + + private int? _timeoutConnection; + int? IRequestConnectionConfiguration.TimeoutConnect + { + get { return _timeoutConnection; } + } + private string _acceptsContentType; + public string AcceptsContentType + { + get { return _acceptsContentType; } + } + + public T RequestTimeout(int request) + { + this._timeoutRequest = request; + return (T)this; + } + + public T ConnectTimeout(int request) + { + this._timeoutConnection = request; + return (T)this; + } + + public T ContentType(string accepts) + { + this._acceptsContentType = accepts; + return (T)this; + } + } +} \ No newline at end of file diff --git a/src/Elasticsearch.Net/Connection/ITransport.cs b/src/Elasticsearch.Net/Connection/ITransport.cs index 073b4175c8a..79930922a22 100644 --- a/src/Elasticsearch.Net/Connection/ITransport.cs +++ b/src/Elasticsearch.Net/Connection/ITransport.cs @@ -1,3 +1,6 @@ +using System; +using System.Collections; +using System.Collections.Generic; using System.Collections.Specialized; using System.Threading.Tasks; using Elasticsearch.Net.Serialization; @@ -13,21 +16,18 @@ 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); + IRequestParameters requestParameters = null); + + IList Sniff(); + void SniffClusterState(); + bool Ping(Uri baseUri); + Task PingAsync(Uri baseUri); Task> DoRequestAsync( string method, string path, object data = null, - NameValueCollection queryString = null, - object serializationState = null, - int retried = 0, - int? seed = null); + IRequestParameters requestParameters = null); } public interface ITransportValues diff --git a/src/Elasticsearch.Net/Connection/InMemoryConnection.cs b/src/Elasticsearch.Net/Connection/InMemoryConnection.cs index c9403f4de5e..e734d021eab 100644 --- a/src/Elasticsearch.Net/Connection/InMemoryConnection.cs +++ b/src/Elasticsearch.Net/Connection/InMemoryConnection.cs @@ -18,34 +18,31 @@ public InMemoryConnection(IConnectionConfigurationValues settings) } public InMemoryConnection(IConnectionConfigurationValues settings, string fixedResult) - : this (settings) + : this(settings) { _fixedResultBytes = Encoding.UTF8.GetBytes(fixedResult); } - protected override ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) + protected override ElasticsearchResponse DoSynchronousRequest(HttpWebRequest request, byte[] data = null, IRequestConnectionConfiguration requestSpecificConfig = null) { - return this.ReturnConnectionStatus(request, data, deserializationState); + return this.ReturnConnectionStatus(request, data, requestSpecificConfig); } - private ElasticsearchResponse ReturnConnectionStatus(HttpWebRequest request, byte[] data, object deserializationState = null) + private ElasticsearchResponse ReturnConnectionStatus(HttpWebRequest request, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { var method = request.Method; var path = request.RequestUri.ToString(); - using (var ms = new MemoryStream(_fixedResultBytes)) - { - var cs = ElasticsearchResponse.Create(this._ConnectionSettings, 200, method, path, data, ms, deserializationState); - _ConnectionSettings.ConnectionStatusHandler(cs); - return cs; - } + var cs = ElasticsearchResponse.Create(this._ConnectionSettings, 200, method, path, data); + cs.Response = new MemoryStream(_fixedResultBytes); + return cs; } - protected override Task> DoAsyncRequest(HttpWebRequest request, byte[] data = null, object deserializationState = null) + protected override Task> DoAsyncRequest(HttpWebRequest request, byte[] data = null, IRequestConnectionConfiguration requestSpecificConfig = null) { - return Task.Factory.StartNew>(() => + return Task.Factory.StartNew(() => { - var cs = this.ReturnConnectionStatus(request, data, deserializationState); + var cs = this.ReturnConnectionStatus(request, data, requestSpecificConfig); return cs; }); } diff --git a/src/Elasticsearch.Net/Connection/Transport.cs b/src/Elasticsearch.Net/Connection/Transport.cs index 13ee89a676b..d5df1726a9b 100644 --- a/src/Elasticsearch.Net/Connection/Transport.cs +++ b/src/Elasticsearch.Net/Connection/Transport.cs @@ -1,7 +1,12 @@ using System; using System.Collections.Generic; using System.Collections.Specialized; +using System.IO; using System.Linq; +using System.Net; +using System.Security.Cryptography; +using System.Security.Cryptography.X509Certificates; +using System.Threading; using System.Threading.Tasks; using Elasticsearch.Net.ConnectionPool; using Elasticsearch.Net.Exceptions; @@ -13,39 +18,107 @@ namespace Elasticsearch.Net.Connection { public class Transport : ITransport { + protected static readonly string MaxRetryExceptionMessage = "Unable to perform request: '{0} {1}' on any of the nodes after retrying {2} times."; protected internal readonly IConnectionConfigurationValues _configurationValues; protected internal readonly IConnection _connection; protected internal readonly IElasticsearchSerializer _serializer; private readonly IConnectionPool _connectionPool; - private IDateTimeProvider _dateTimeProvider; - private DateTime? _lastSniff = null; + private readonly IDateTimeProvider _dateTimeProvider; + private DateTime? _lastSniff; public IConnectionConfigurationValues Settings { get { return _configurationValues; } } public IElasticsearchSerializer Serializer { get { return _serializer; } } public Transport( IConnectionConfigurationValues configurationValues, - IConnection connection, + IConnection connection, IElasticsearchSerializer serializer, IDateTimeProvider dateTimeProvider = null ) { this._configurationValues = configurationValues; - this._connection = connection?? new HttpConnection(configurationValues); + this._connection = connection ?? new HttpConnection(configurationValues); this._serializer = serializer ?? new ElasticsearchDefaultSerializer(); this._connectionPool = this._configurationValues.ConnectionPool; - //TODO: take the datetimeprovider from the connection pool? this._dateTimeProvider = dateTimeProvider ?? new DateTimeProvider(); - this._lastSniff = this._dateTimeProvider.Now(); + this._lastSniff = this._dateTimeProvider.Now(); + + this.Settings.Serializer = this._serializer; + if (this._connectionPool.AcceptsUpdates && this.Settings.SniffsOnStartup) + this.Sniff(); } - public void Sniff(bool fromStartup = false) + + public virtual bool Ping(Uri baseUri) + { + var pingTimeout = this.Settings.PingTimeout.GetValueOrDefault(50); + var requestOverrides = new RequestConnectionConfiguration() + .ConnectTimeout(pingTimeout) + .RequestTimeout(pingTimeout); + var response = this._connection.HeadSync(CreateUriToPath(baseUri, ""), requestOverrides); + if (response.Response == null) return false; + using(response.Response) + return response.Success; + } + + public virtual Task PingAsync(Uri baseUri) + { + var pingTimeout = this.Settings.PingTimeout.GetValueOrDefault(50); + var requestOverrides = new RequestConnectionConfiguration() + .ConnectTimeout(pingTimeout) + .RequestTimeout(pingTimeout); + + return this._connection.Head(CreateUriToPath(baseUri, ""), requestOverrides) + .ContinueWith(t=> + { + var response = t.Result; + if (response.Response == null) return false; + + using(response.Response) + return response.Success; + }); + } + + public IList Sniff() + { + var pingTimeout = this.Settings.PingTimeout.GetValueOrDefault(50); + var requestOverrides = new RequestConfiguration() + .ConnectTimeout(pingTimeout) + .RequestTimeout(pingTimeout) + .DisableSniffing(); + var requestParameters = new FluentRequestParameters() + .RequestConfiguration(r => requestOverrides); + + var path = "_nodes/_all/clear?timeout=" + pingTimeout; + + using (var tracer = new ElasticsearchResponseTracer(this.Settings.TraceEnabled)) + { + var requestState = new TransportRequestState(tracer, "GET", path, requestParameters: requestParameters); + var response = this.DoRequest(requestState); + if (response.Response == null) return null; + + using (response.Response) + { + return Sniffer.FromStream(response, response.Response, this.Serializer); + } + } + } + + public virtual void SniffClusterState() { - this._connectionPool.Sniff(this._connection, fromStartup); + if (!this._connectionPool.AcceptsUpdates) + return; + + var newClusterState = this.Sniff(); + if (!newClusterState.HasAny()) + return; + + this._connectionPool.UpdateNodeList(newClusterState); this._lastSniff = this._dateTimeProvider.Now(); + } private void SniffIfInformationIsTooOld(int retried) @@ -53,56 +126,85 @@ private void SniffIfInformationIsTooOld(int retried) var sniffLifeSpan = this._configurationValues.SniffInformationLifeSpan; var now = this._dateTimeProvider.Now(); if (retried == 0 && this._lastSniff.HasValue && - sniffLifeSpan.HasValue && sniffLifeSpan.Value < (now - this._lastSniff.Value)) - this.Sniff(); + sniffLifeSpan.HasValue && sniffLifeSpan.Value < (now - this._lastSniff.Value)) + this.SniffClusterState(); } /// /// Returns either the fixed maximum set on the connection configuration settings or the number of nodes /// - private int GetMaximumRetries() + /// + private int GetMaximumRetries(IRequestConfiguration requestConfiguration) { + //if we have a request specific max retry setting use that + if (requestConfiguration != null && requestConfiguration.MaxRetries.HasValue) + return requestConfiguration.MaxRetries.Value; + return this._configurationValues.MaxRetries.GetValueOrDefault(this._connectionPool.MaxRetries); } + private bool SniffingDisabled(IRequestConfiguration requestConfiguration) + { + if (!this._connectionPool.AcceptsUpdates) + return true; + if (requestConfiguration == null) + return false; + return requestConfiguration.SniffingDisabled.GetValueOrDefault(false); + } - public ElasticsearchResponse DoRequest( - string method, - string path, - object data = null, - NameValueCollection queryString = null, - object deserializationState= null, - int retried = 0, - int? seed = null) + /* SYNC *** */ + public ElasticsearchResponse DoRequest(string method, string path, object data = null, IRequestParameters requestParameters = null) { - SniffIfInformationIsTooOld(retried); + using (var tracer = new ElasticsearchResponseTracer(this.Settings.TraceEnabled)) + { + var postData = PostData(data); + var requestState = new TransportRequestState(tracer, method, path, postData, requestParameters); - if (queryString != null) path += queryString.ToQueryString(); + var result = this.DoRequest(requestState); + tracer.SetResult(result); + return result; + } + } - var postData = PostData(data); - ElasticsearchResponse response = null; + private ElasticsearchResponse DoRequest(TransportRequestState requestState, int retried = 0) + { + if (!SniffingDisabled(requestState.RequestConfiguration)) + SniffIfInformationIsTooOld(retried); + + IElasticsearchResponse response = null; int initialSeed; bool shouldPingHint; - var baseUri = this._connectionPool.GetNext(seed, out initialSeed, out shouldPingHint); - bool seenError = false; + var baseUri = GetNextBaseUri(requestState, out initialSeed, out shouldPingHint); + requestState.Seed = initialSeed; + var uri = CreateUriToPath(baseUri, requestState.Path); + bool seenError = false; + try { - if (shouldPingHint && !this._configurationValues.DisablePings) - this._connection.Ping(CreateUriToPath(baseUri, "")); + if (shouldPingHint + && !this._configurationValues.DisablePings + && (requestState.RequestConfiguration == null + || !requestState.RequestConfiguration.PingDisabled.GetValueOrDefault(false)) + ) + this.Ping(baseUri); - var uri = CreateUriToPath(baseUri, path); - response = _doRequest(method, uri, postData, deserializationState); - if (response != null && response.SuccessOrKnownError) - return response; + var streamResponse = _doRequest(requestState.Method, uri, requestState.PostData, requestState.RequestConfiguration); + if (streamResponse != null && streamResponse.SuccessOrKnownError) + { + var typedResponse = this.StreamToTypedResponse(streamResponse, requestState.DeserializationState); + typedResponse.NumberOfRetries = retried; + response = typedResponse; + return typedResponse; + } } catch (Exception e) { - var maxRetries = this.GetMaximumRetries(); + var maxRetries = this.GetMaximumRetries(requestState.RequestConfiguration); if (maxRetries == 0 && retried == 0) throw; seenError = true; - return RetryRequest(method, path, data, deserializationState, retried, baseUri, initialSeed, e); + return RetryRequest(requestState, uri, retried, e); } finally { @@ -110,123 +212,154 @@ public ElasticsearchResponse DoRequest( if (!seenError && response != null && response.SuccessOrKnownError) this._connectionPool.MarkAlive(baseUri); } - return RetryRequest(method, path, data, deserializationState, retried, baseUri, initialSeed, null); + return RetryRequest(requestState, uri, retried); } - private ElasticsearchResponse RetryRequest( - string method, string path, object data, object deserializationState, int retried, Uri baseUri, - int initialSeed, Exception e) + private Uri GetNextBaseUri(TransportRequestState requestState, out int initialSeed, out bool shouldPingHint) { - var maxRetries = this.GetMaximumRetries(); - var exceptionMessage = "Unable to perform request: '{0} {1}' on any of the nodes after retrying {2} times." - .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) + if (requestState.RequestConfiguration != null && requestState.RequestConfiguration.ForcedNode != null) { - return this.DoRequest(method, path, data, null, deserializationState, ++retried, initialSeed); + initialSeed = 0; + shouldPingHint = false; + return requestState.RequestConfiguration.ForcedNode; } - throw new MaxRetryException(exceptionMessage, e); + var baseUri = this._connectionPool.GetNext(requestState.Seed, out initialSeed, out shouldPingHint); + return baseUri; } - private ElasticsearchResponse _doRequest(string method, Uri uri, byte[] postData, object deserializationState) + private ElasticsearchResponse RetryRequest(TransportRequestState requestState, Uri baseUri, int retried, Exception e = null) + { + var maxRetries = this.GetMaximumRetries(requestState.RequestConfiguration); + var exceptionMessage = MaxRetryExceptionMessage.F(requestState.Method, requestState.Path.IsNullOrEmpty() ? "/" : "", retried); + + this._connectionPool.MarkDead(baseUri, this._configurationValues.DeadTimeout, this._configurationValues.MaxDeadTimeout); + if (!SniffingDisabled(requestState.RequestConfiguration) + && this._configurationValues.SniffsOnConnectionFault + && retried == 0) + this.SniffClusterState(); + + if (retried >= maxRetries) throw new MaxRetryException(exceptionMessage, e); + + return this.DoRequest(requestState, ++retried); + } + + private ElasticsearchResponse _doRequest(string method, Uri uri, byte[] postData, IRequestConfiguration requestSpecificConfig) { switch (method.ToLowerInvariant()) { - case "post": - return this._connection.PostSync(uri, postData, deserializationState); - case "put": - return this._connection.PutSync(uri, postData, deserializationState); + case "post": return this._connection.PostSync(uri, postData, requestSpecificConfig); + case "put": return this._connection.PutSync(uri, postData, requestSpecificConfig); + case "head": return this._connection.HeadSync(uri, requestSpecificConfig); + case "get": return this._connection.GetSync(uri, requestSpecificConfig); case "delete": return postData == null || postData.Length == 0 - ? this._connection.DeleteSync(uri, deserializationState) - : this._connection.DeleteSync(uri, postData, deserializationState); - case "head": - return this._connection.HeadSync(uri, deserializationState); - case "get": - return this._connection.GetSync(uri, deserializationState); + ? this._connection.DeleteSync(uri, requestSpecificConfig) + : this._connection.DeleteSync(uri, postData, requestSpecificConfig); } throw new Exception("Unknown HTTP method " + method); } - public Task> DoRequestAsync( - string method, - string path, - object data = null, - NameValueCollection queryString = null, - object deserializationState = null, - int retried = 0, - int? seed = null) + /* ASYNC *** */ + public Task> DoRequestAsync(string method, string path, object data = null, IRequestParameters requestParameters = null) { - SniffIfInformationIsTooOld(retried); - - if (queryString != null) path += queryString.ToQueryString(); + using (var tracer = new ElasticsearchResponseTracer(this.Settings.TraceEnabled)) + { + var postData = PostData(data); + var requestState = new TransportRequestState(tracer, method, path, postData, requestParameters); + + return this.DoRequestAsync(requestState) + .ContinueWith(t => + { + var tcs = new TaskCompletionSource>(); + if (t.Exception != null) + tcs.SetException(t.Exception.Flatten()); + else + tcs.SetResult(t.Result); - var postData = PostData(data); + requestState.Tracer.SetResult(t.Result); + return tcs.Task; + }).Unwrap(); + } + } + + private Task> DoRequestAsync(TransportRequestState requestState, int retried = 0) + { + SniffIfInformationIsTooOld(retried); + int initialSeed; bool shouldPingHint; - var baseUri = this._connectionPool.GetNext(seed, out initialSeed, out shouldPingHint); + var baseUri = this.GetNextBaseUri(requestState, out initialSeed, out shouldPingHint); + requestState.Seed = initialSeed; + + var uri = CreateUriToPath(baseUri, requestState.Path); + if (shouldPingHint && !this._configurationValues.DisablePings) { - try - { - this._connection.Ping(CreateUriToPath(baseUri, "")); - } - catch (Exception e) - { - return this.RetryRequestAsync(method, path, data, deserializationState, retried, baseUri, initialSeed, e); - } + return this.PingAsync(baseUri) + .ContinueWith(t => + { + if (t.IsCompleted) + return this._doRequestAsyncOrRetry(requestState, retried, uri, baseUri); + + return this.RetryRequestAsync(requestState, baseUri, retried, t.Exception); + }).Unwrap(); } - var uri = CreateUriToPath(baseUri, path); - return _doRequestAsync(method, uri, postData, deserializationState).ContinueWith(t=> - { - if (t.IsCanceled) - return null; - if (t.IsFaulted) - return this.RetryRequestAsync(method, path, data, deserializationState, retried, baseUri, initialSeed, t.Exception); - if (t.Result.SuccessOrKnownError) - return t; - return this.RetryRequestAsync(method, path, data, deserializationState, retried, baseUri, initialSeed, null); - - }).Unwrap>(); + + return _doRequestAsyncOrRetry(requestState, retried, uri, baseUri); } - private Task> RetryRequestAsync( - string method, string path, object data, object deserializationState, int retried, Uri baseUri, - int initialSeed, Exception e) + + private Task> _doRequestAsyncOrRetry( + TransportRequestState requestState, int retried, Uri uri, Uri baseUri) + { + return + _doRequestAsync(requestState.Method, uri, requestState.PostData, requestState.RequestConfiguration).ContinueWith(t => + { + if (t.IsCanceled) + return null; + if (t.IsFaulted) + return this.RetryRequestAsync(requestState, baseUri, retried, t.Exception); + if (t.Result.SuccessOrKnownError) + return this.StreamToTypedResponseAsync(t.Result, requestState.DeserializationState) + .ContinueWith(tt => + { + tt.Result.NumberOfRetries = retried; + return tt; + }).Unwrap(); + return this.RetryRequestAsync(requestState, baseUri, retried); + }).Unwrap(); + } + + private Task> RetryRequestAsync(TransportRequestState requestState, Uri baseUri, int retried, Exception e = null) { - 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); + var maxRetries = this.GetMaximumRetries(requestState.RequestConfiguration); + var exceptionMessage = MaxRetryExceptionMessage.F(requestState.Method, requestState.Path, retried); + this._connectionPool.MarkDead(baseUri, this._configurationValues.DeadTimeout, this._configurationValues.MaxDeadTimeout); + if (this._configurationValues.SniffsOnConnectionFault && retried == 0) - this.Sniff(); + this.SniffClusterState(); + if (retried < maxRetries) - { - return this.DoRequestAsync(method, path, data, null, deserializationState, ++retried, initialSeed); - } + return this.DoRequestAsync(requestState, ++retried); + throw new MaxRetryException(exceptionMessage, e); } - private Task> _doRequestAsync(string method, Uri uri, byte[] postData, object deserializationState) + + private Task> _doRequestAsync(string method, Uri uri, byte[] postData, IRequestConfiguration requestSpecificConfig) { switch (method.ToLowerInvariant()) { - case "post": - return this._connection.Post(uri, postData, deserializationState); - case "put": - return this._connection.Put(uri, postData, deserializationState); + case "head": return this._connection.Head(uri, requestSpecificConfig); + case "get": return this._connection.Get(uri, requestSpecificConfig); + case "post": return this._connection.Post(uri, postData, requestSpecificConfig); + case "put": return this._connection.Put(uri, postData, requestSpecificConfig); case "delete": return postData == null || postData.Length == 0 - ? this._connection.Delete(uri, deserializationState) - : this._connection.Delete(uri, postData, deserializationState); - case "head": - return this._connection.Head(uri, deserializationState); - case "get": - return this._connection.Get(uri, deserializationState); + ? this._connection.Delete(uri, requestSpecificConfig) + : this._connection.Delete(uri, postData, requestSpecificConfig); } throw new Exception("Unknown HTTP method " + method); } - + private Uri CreateUriToPath(Uri baseUri, string path) { var s = this.Settings; @@ -239,7 +372,7 @@ private Uri CreateUriToPath(Uri baseUri, string path) var uri = path.IsNullOrEmpty() ? baseUri : new Uri(baseUri, path); return uri.Purify(); } - + private byte[] PostData(object data) { var bytes = data as byte[]; @@ -253,7 +386,7 @@ private byte[] PostData(object data) var ss = data as IEnumerable; if (ss != null) return (string.Join("\n", ss) + "\n").Utf8Bytes(); - + var so = data as IEnumerable; if (so == null) return this._serializer.Serialize(data); @@ -261,5 +394,205 @@ private byte[] PostData(object data) .Select(soo => this._serializer.Serialize(soo, SerializationFormatting.None).Utf8String())) + "\n"; return joined.Utf8Bytes(); } + + private void SetStringResult(ElasticsearchResponse response, byte[] rawResponse) + { + response.Response = rawResponse.Utf8String(); + } + + private void SetByteResult(ElasticsearchResponse response, byte[] rawResponse) + { + response.Response = rawResponse; + } + + private ElasticsearchResponse StreamToTypedResponse(ElasticsearchResponse streamResponse, object deserializationState) + { + //if the user explicitly wants a stream returned the undisposed stream + if (typeof(Stream).IsAssignableFrom(typeof(T))) + return streamResponse as ElasticsearchResponse; + + ElasticsearchResponse cs = ElasticsearchResponse.CloneFrom(streamResponse, default(T)); + using (streamResponse.Response) + using (var memoryStream = new MemoryStream()) + { + if (typeof(T) == typeof(VoidResponse)) + return cs; + + var type = typeof(T); + if (!(this.Settings.KeepRawResponse || type == typeof(string) || type == typeof(byte[]))) + return this._deserializeToResponse(streamResponse.Response, deserializationState, cs); + + if (streamResponse.Response != null) + streamResponse.Response.CopyTo(memoryStream); + memoryStream.Position = 0; + var bytes = memoryStream.ToArray(); + cs.ResponseRaw = this.Settings.KeepRawResponse ? bytes : null; + if (type == typeof(string)) + { + this.SetStringResult(cs as ElasticsearchResponse, bytes); + return cs; + } + if (type == typeof(byte[])) + { + this.SetByteResult(cs as ElasticsearchResponse, bytes); + return cs; + } + return this._deserializeToResponse(memoryStream, deserializationState, cs); + } + } + + private Task> StreamToTypedResponseAsync(ElasticsearchResponse streamResponse, object deserializationState) + { + var tcs = new TaskCompletionSource>(); + + //if the user explicitly wants a stream return the undisposed stream + if (typeof(Stream).IsAssignableFrom(typeof(T))) + { + tcs.SetResult(streamResponse as ElasticsearchResponse); + return tcs.Task; + } + + var cs = ElasticsearchResponse.CloneFrom(streamResponse, default(T)); + + var memoryStream = new MemoryStream(); + if (typeof(T) == typeof(VoidResponse)) + { + tcs.SetResult(cs); + if (streamResponse.Response != null) + streamResponse.Response.Dispose(); + return tcs.Task; + } + + var type = typeof(T); + if (!(this.Settings.KeepRawResponse || type == typeof(string) || type == typeof(byte[]))) + return _deserializeAsyncToResponse(streamResponse.Response, deserializationState, cs); + + return this.Iterate(this.ReadStreamAsync(streamResponse.Response, memoryStream), memoryStream) + .ContinueWith(t => + { + var readStream = t.Result; + readStream.Position = 0; + var bytes = readStream.ToArray(); + cs.ResponseRaw = this.Settings.KeepRawResponse ? bytes : null; + if (type == typeof(string)) + { + this.SetStringResult(cs as ElasticsearchResponse, bytes); + tcs.SetResult(cs); + return tcs.Task; + } + if (type == typeof(byte[])) + { + this.SetByteResult(cs as ElasticsearchResponse, bytes); + tcs.SetResult(cs); + return tcs.Task; + } + + return _deserializeAsyncToResponse(readStream, deserializationState, cs); + }) + .Unwrap(); + + } + + private ElasticsearchResponse _deserializeToResponse(Stream response, object deserializationState, ElasticsearchResponse cs) + { + if (response == null + || (!cs.HttpStatusCode.HasValue) + || ((cs.HttpStatusCode.Value < 200 || cs.HttpStatusCode >= 300) && cs.HttpStatusCode != 404) + ) + return cs; + + var customConverter = deserializationState as Func; + if (customConverter != null) + { + using (response) + { + var t = customConverter(cs, response); + cs.Response = t; + return cs; + } + } + var deserialized = this.Serializer.Deserialize(cs, response, deserializationState); + cs.Response = deserialized; + return cs; + } + + private Task> _deserializeAsyncToResponse(Stream response, object deserializationState, ElasticsearchResponse cs) + { + var tcs = new TaskCompletionSource>(); + if (response == null + || (!cs.HttpStatusCode.HasValue) + || ((cs.HttpStatusCode.Value < 200 || cs.HttpStatusCode >= 300) && cs.HttpStatusCode != 404) + ) + { + tcs.SetResult(cs); + return tcs.Task; + } + var customConverter = deserializationState as Func; + if (customConverter != null) + { + using (response) + { + var t = customConverter(cs, response); + cs.Response = t; + tcs.SetResult(cs); + return tcs.Task; + } + } + return this.Serializer.DeserializeAsync(cs, response, deserializationState) + .ContinueWith(t => + { + cs.Response = t.Result; + return cs; + }); + } + + const int BUFFER_SIZE = 4096; + private IEnumerable> ReadStreamAsync(Stream responseStream, MemoryStream memoryStream) + { + var buffer = new byte[BUFFER_SIZE]; + try + { + while (responseStream != null) + { + var read = Task.Factory.FromAsync(responseStream.BeginRead, responseStream.EndRead, buffer, 0, BUFFER_SIZE, null); + yield return read.ContinueWith(t => memoryStream); + if (read.Result == 0) break; + memoryStream.Write(buffer, 0, read.Result); + } + } + finally + { + if (responseStream != null) + responseStream.Dispose(); + } + } + + private Task Iterate(IEnumerable asyncIterator, MemoryStream memoryStream) + { + var tcs = new TaskCompletionSource(); + var enumerator = asyncIterator.GetEnumerator(); + Action recursiveBody = null; + recursiveBody = completedTask => + { + if (completedTask != null && completedTask.IsFaulted) + { + var exception = completedTask.Exception.InnerException; + tcs.TrySetException(exception); + enumerator.Dispose(); + } + else if (enumerator.MoveNext()) + { + enumerator.Current.ContinueWith(recursiveBody); + } + else + { + tcs.SetResult(memoryStream); + enumerator.Dispose(); + } + }; + recursiveBody(null); + return tcs.Task; + } + } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Connection/TransportRequestState.cs b/src/Elasticsearch.Net/Connection/TransportRequestState.cs new file mode 100644 index 00000000000..db0df90d44d --- /dev/null +++ b/src/Elasticsearch.Net/Connection/TransportRequestState.cs @@ -0,0 +1,30 @@ +namespace Elasticsearch.Net.Connection +{ + class TransportRequestState + { + public string Method { get; private set; } + public string Path { get; private set; } + public byte[] PostData { get; private set; } + public ElasticsearchResponseTracer Tracer { get; private set; } + + public int? Seed { get; set; } + + public IRequestConfiguration RequestConfiguration { get; set; } + public object DeserializationState { get; private set; } + + public TransportRequestState(ElasticsearchResponseTracer tracer, string method, string path, byte[] postData = null, IRequestParameters requestParameters = null) + { + this.Method = method; + this.Path = path; + this.PostData = postData; + if (requestParameters != null) + { + if (requestParameters.QueryString != null) this.Path += requestParameters.QueryString.ToQueryString(); + this.DeserializationState = requestParameters.DeserializationState; + this.RequestConfiguration = requestParameters.RequestConfiguration; + } + this.Tracer = tracer; + } + + } +} \ No newline at end of file diff --git a/src/Elasticsearch.Net/ConnectionPool/IConnectionPool.cs b/src/Elasticsearch.Net/ConnectionPool/IConnectionPool.cs index e65fb06eda1..0ec0547edd5 100644 --- a/src/Elasticsearch.Net/ConnectionPool/IConnectionPool.cs +++ b/src/Elasticsearch.Net/ConnectionPool/IConnectionPool.cs @@ -1,4 +1,6 @@ using System; +using System.Collections; +using System.Collections.Generic; using Elasticsearch.Net.Connection; namespace Elasticsearch.Net.ConnectionPool @@ -11,11 +13,22 @@ public interface IConnectionPool /// in the connection settings /// int MaxRetries { get; } + + /// + /// Signals that this implemenation can accept new nodes + /// + bool AcceptsUpdates { get; } + + /// + /// Signals to the ITransport that this instance has already seen a startup + /// + bool HasSeenStartup { get; } /// /// Gets the next live Uri to perform the request on /// - /// pass the original seed when retrying, this guarantees that the nodes are walked in a predictable manner when multithreading + /// pass the original seed when retrying, this guarantees that the nodes are walked in a + /// predictable manner even when called in a multithreaded context /// The seed this call started on /// Uri GetNext(int? initialSeed, out int seed, out bool shouldPingHint); @@ -30,15 +43,12 @@ public interface IConnectionPool /// /// void MarkAlive(Uri uri); - + /// - /// Instruct the connectionpool to sniff for more nodes + /// Update the node list manually, usually done by ITransport when sniffing was needed. /// - /// a connection that can be used to call elasticsearch - /// hints wheter the sniff was requested from on startup - /// connection pools should be registered as singletons in the application. The hint prevents new'ing of clients - /// cause excessive startup sniffs - /// - void Sniff(IConnection connection, bool fromStartUpHint = false); + /// + /// hint that this update came from start up + void UpdateNodeList(IList newClusterState, bool fromStartupHint = true); } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/ConnectionPool/SingleNodeConnectionPool.cs b/src/Elasticsearch.Net/ConnectionPool/SingleNodeConnectionPool.cs index 11933f8e6f5..9559cccfca7 100644 --- a/src/Elasticsearch.Net/ConnectionPool/SingleNodeConnectionPool.cs +++ b/src/Elasticsearch.Net/ConnectionPool/SingleNodeConnectionPool.cs @@ -1,4 +1,5 @@ using System; +using System.Collections.Generic; using Elasticsearch.Net.Connection; namespace Elasticsearch.Net.ConnectionPool @@ -6,9 +7,16 @@ namespace Elasticsearch.Net.ConnectionPool public class SingleNodeConnectionPool : IConnectionPool { private readonly Uri _uri; - + private bool _hasSeenStartup; public int MaxRetries { get { return 0; } } + public bool AcceptsUpdates { get { return false; } } + + public bool HasSeenStartup + { + get { return _hasSeenStartup; } + } + public SingleNodeConnectionPool(Uri uri) { //this makes sure that paths stay relative i.e if the root uri is: @@ -35,9 +43,9 @@ public void MarkAlive(Uri uri) } - public void Sniff(IConnection connection, bool fromStartupHint = false) + public void UpdateNodeList(IList newClusterState, bool fromStartupHint = false) { - } + } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/ConnectionPool/SniffingConnectionPool.cs b/src/Elasticsearch.Net/ConnectionPool/SniffingConnectionPool.cs index 080ffad2ef1..6c1bfe3f7c7 100644 --- a/src/Elasticsearch.Net/ConnectionPool/SniffingConnectionPool.cs +++ b/src/Elasticsearch.Net/ConnectionPool/SniffingConnectionPool.cs @@ -12,6 +12,9 @@ public class SniffingConnectionPool : StaticConnectionPool private readonly ReaderWriterLockSlim _readerWriter = new ReaderWriterLockSlim(); private bool _seenStartup = false; + private bool _canUpdateNodeList; + + public override bool AcceptsUpdates { get { return true; } } public SniffingConnectionPool( IEnumerable uris, @@ -21,26 +24,16 @@ public SniffingConnectionPool( { } - public override void Sniff(IConnection connection, bool fromStartupHint = false) + public override void UpdateNodeList(IList newClusterState, bool fromStartupHint = false) { - if (fromStartupHint && _seenStartup) - return; + if (fromStartupHint) + this._seenStartup = true; try { - int seed; bool shouldPingHint; - var uri = this.GetNext(null, out seed, out shouldPingHint); - this._readerWriter.EnterWriteLock(); - var nodes = connection.Sniff(uri); - if (!nodes.HasAny()) - return; - - this._nodeUris = nodes; - this._uriLookup = nodes.ToDictionary(k => k, v => new EndpointState()); - if (fromStartupHint) - this._seenStartup = true; - + this._nodeUris = newClusterState; + this._uriLookup = newClusterState.ToDictionary(k => k, v => new EndpointState()); } finally { diff --git a/src/Elasticsearch.Net/ConnectionPool/StaticConnectionPool.cs b/src/Elasticsearch.Net/ConnectionPool/StaticConnectionPool.cs index 580ecf0824d..4b9873810bb 100644 --- a/src/Elasticsearch.Net/ConnectionPool/StaticConnectionPool.cs +++ b/src/Elasticsearch.Net/ConnectionPool/StaticConnectionPool.cs @@ -9,13 +9,22 @@ namespace Elasticsearch.Net.ConnectionPool { public class StaticConnectionPool : IConnectionPool { + private readonly IDateTimeProvider _dateTimeProvider; + protected IDictionary _uriLookup; protected IList _nodeUris; + protected int _current = -1; + protected bool _hasSeenStartup; + private bool _canUpdateNodeList; public int MaxRetries { get { return _nodeUris.Count - 1; } } - - protected int _current = -1; - private readonly IDateTimeProvider _dateTimeProvider; + + public virtual bool AcceptsUpdates { get { return false; } } + + public bool HasSeenStartup + { + get { return _hasSeenStartup; } + } public StaticConnectionPool( IEnumerable uris, @@ -95,9 +104,9 @@ public virtual void MarkAlive(Uri uri) } } - public virtual void Sniff(IConnection connection, bool fromStartupHint = false) + public virtual void UpdateNodeList(IList newClusterState, bool fromStartupHint = false) { - //NOOP on static connection class } + } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Domain/BaseRequestParameters.cs b/src/Elasticsearch.Net/Domain/BaseRequestParameters.cs new file mode 100644 index 00000000000..44ba709d6f6 --- /dev/null +++ b/src/Elasticsearch.Net/Domain/BaseRequestParameters.cs @@ -0,0 +1,28 @@ +using System.Collections.Generic; +using System.Collections.Specialized; +using Elasticsearch.Net.Connection; + +namespace Elasticsearch.Net +{ + public abstract class BaseRequestParameters : IRequestParameters + { + internal readonly IDictionary _QueryStringDictionary = new Dictionary(); + + internal object _DeserializationState = null; + + internal RequestConfiguration _RequestConfiguration = null; + internal NameValueCollection _queryString; + + NameValueCollection IRequestParameters.QueryString { get { return _queryString;} } + + object IRequestParameters.DeserializationState + { + get { return _DeserializationState; } + } + + IRequestConfiguration IRequestParameters.RequestConfiguration + { + get { return _RequestConfiguration; } + } + } +} \ No newline at end of file diff --git a/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs b/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs index b3a75539fa8..d5c0bd9e883 100644 --- a/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs +++ b/src/Elasticsearch.Net/Domain/ElasticsearchDynamicValue.cs @@ -239,7 +239,10 @@ public override bool Equals(object compareValue) return false; } - if (ReferenceEquals(this, compareValue)) + if (ReferenceEquals(this, compareValue) + || ReferenceEquals(this.value, compareValue) + || Equals(this.value, compareValue) + ) { return true; } diff --git a/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs b/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs index b195a61469d..54ae30d9aac 100644 --- a/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs +++ b/src/Elasticsearch.Net/Domain/ElasticsearchResponse.cs @@ -18,21 +18,25 @@ namespace Elasticsearch.Net { + //TODO document and possibly rename some of the properties + public interface IElasticsearchResponse { bool Success { get; } + bool SuccessOrKnownError { get; } IConnectionConfigurationValues Settings { get; } - ConnectionError Error { get; } + Exception OriginalException { get; } string RequestMethod { get; } string RequestUrl { get; } - [DebuggerDisplay("{Request != null ? System.Text.Encoding.UTF8.GetString(Request) : null,nq}")] + [DebuggerDisplay("{Request != null ? System.Text.Encoding.UTF8.GetString(Request) : null,nq}")] byte[] Request { get; } int? HttpStatusCode { get; } - + int NumberOfRetries { get; } + /// /// The raw byte response, only set when IncludeRawResponse() is set on Connection configuration /// - [DebuggerDisplay("{ResponseRaw != null ? System.Text.Encoding.UTF8.GetString(ResponseRaw) : null,nq}")] + [DebuggerDisplay("{ResponseRaw != null ? System.Text.Encoding.UTF8.GetString(ResponseRaw) : null,nq}")] byte[] ResponseRaw { get; } } @@ -42,7 +46,13 @@ internal static class ElasticsearchResponse public static Task> WrapAsync(Task>> responseTask) { return responseTask - .ContinueWith(t=>ToDynamicResponse(t.Result)); + .ContinueWith(t => + { + if (t.IsFaulted) + throw t.Exception.Flatten().InnerException; + + return ToDynamicResponse(t.Result); + }); } public static ElasticsearchResponse Wrap(ElasticsearchResponse> response) @@ -50,22 +60,28 @@ public static ElasticsearchResponse Wrap(ElasticsearchRespons return ToDynamicResponse(response); } - private static ElasticsearchResponse ToDynamicResponse(ElasticsearchResponse> response) + public static ElasticsearchResponse CloneFrom(IElasticsearchResponse from, TTo to) { - return new ElasticsearchResponse(response.Settings) + return new ElasticsearchResponse(from.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 + OriginalException = from.OriginalException, + HttpStatusCode = from.HttpStatusCode, + Request = from.Request, + RequestMethod = from.RequestMethod, + RequestUrl = from.RequestUrl, + Response = to, + ResponseRaw = from.ResponseRaw, + Serializer = from.Settings.Serializer, + Settings = from.Settings, + Success = from.Success + }; } + + private static ElasticsearchResponse ToDynamicResponse(ElasticsearchResponse> response) + { + return CloneFrom(response, response.Response != null ? DynamicDictionary.Create(response.Response) : null); + } } @@ -73,18 +89,23 @@ 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 Exception OriginalException { 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; } public T Response { get; protected internal set; } - + public byte[] Request { get; protected internal set; } - + + public int NumberOfRetries { get; protected internal set; } + /// /// The raw byte response, only set when IncludeRawResponse() is set on Connection configuration /// @@ -98,41 +119,38 @@ public class ElasticsearchResponse : IElasticsearchResponse /// If the response is succesful or has a known error (400-500 range) /// The client should not retry this call /// - internal bool SuccessOrKnownError + public bool SuccessOrKnownError { get { return this.Success || - (this.HttpStatusCode.HasValue - && this.HttpStatusCode.Value != 503 + (this.HttpStatusCode.HasValue + && this.HttpStatusCode.Value != 503 //service unavailable needs to be retried + && this.HttpStatusCode.Value != 502 //bad gateway needs to be retried && ((this.HttpStatusCode.Value >= 400 && this.HttpStatusCode.Value < 599))); } } - protected internal ElasticsearchResponse(IConnectionConfigurationValues settings) { this.Settings = settings; - this.Serializer = settings.Serializer; + this.Serializer = settings.Serializer; } - private ElasticsearchResponse(IConnectionConfigurationValues settings, Exception e) : this(settings) + + private ElasticsearchResponse(IConnectionConfigurationValues settings, Exception e) + : this(settings) { this.Success = false; - this.Error = new ConnectionError(e); - if (this.Error.HttpStatusCode != null) - this.HttpStatusCode = (int) this.Error.HttpStatusCode; - this.ResponseRaw = this.Error.ResponseReadFromWebException; + this.OriginalException = e; } - private ElasticsearchResponse(IConnectionConfigurationValues settings, int statusCode) : this(settings) + + 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); @@ -141,6 +159,7 @@ public static ElasticsearchResponse CreateError(IConnectionConfigurationValue cs.RequestMethod = method; return cs; } + public static ElasticsearchResponse Create(IConnectionConfigurationValues settings, int statusCode, string method, string path, byte[] request) { var cs = new ElasticsearchResponse(settings, statusCode); @@ -150,33 +169,14 @@ public static ElasticsearchResponse Create(IConnectionConfigurationValues set return cs; } - public static ElasticsearchResponse Create( - IConnectionConfigurationValues settings, int statusCode, string method, string path, byte[] request, Stream stream, object deserializeState = null) + public static ElasticsearchResponse Create(IConnectionConfigurationValues settings, int statusCode, string method, string path, byte[] request, T response) { var cs = new ElasticsearchResponse(settings, statusCode); cs.Request = request; cs.RequestUrl = path; cs.RequestMethod = method; - var s = stream; - using (var ms = new MemoryStream()) - { - 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; - } + cs.Response = response; + return cs; } static ElasticsearchResponse() @@ -188,7 +188,7 @@ static ElasticsearchResponse() public override string ToString() { var r = this; - var e = r.Error; + var e = r.OriginalException; string response = ""; if (typeof(T) == typeof(string)) response = this.Response as string; @@ -205,9 +205,9 @@ public override string ToString() r.Request, response ); - if (!this.Success) + if (!this.Success && e != null) { - print += _errorFormat.F(Environment.NewLine, e.ExceptionMessage, e.OriginalException.StackTrace); + print += _errorFormat.F(Environment.NewLine, e.Message, e.StackTrace); } return print; } diff --git a/src/Elasticsearch.Net/Domain/FluentQueryString.cs b/src/Elasticsearch.Net/Domain/FluentQueryString.cs deleted file mode 100644 index da12cfc8de7..00000000000 --- a/src/Elasticsearch.Net/Domain/FluentQueryString.cs +++ /dev/null @@ -1,35 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Collections.Specialized; -using System.Linq; -using System.Text; - -namespace Elasticsearch.Net -{ - /// - /// Used by the raw client to compose querystring parameters in a matter that still exposes some xmldocs - /// You can always pass a simple NameValueCollection if you want. - /// - /// - public abstract class FluentQueryString where T : FluentQueryString - { - internal readonly IDictionary _QueryStringDictionary = new Dictionary(); - - public T Add(string name, object value) - { - _QueryStringDictionary[name] = value; - return (T)this; - } - - public bool ContainsKey(string name) - { - return this._QueryStringDictionary != null && this._QueryStringDictionary.ContainsKey(name); - } - - } - - public class FluentQueryString : FluentQueryString - { - - } -} diff --git a/src/Elasticsearch.Net/Domain/FluentRequestParameters.cs b/src/Elasticsearch.Net/Domain/FluentRequestParameters.cs new file mode 100644 index 00000000000..0d78161c98f --- /dev/null +++ b/src/Elasticsearch.Net/Domain/FluentRequestParameters.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Elasticsearch.Net.Connection; + +namespace Elasticsearch.Net +{ + /// + /// Used by the raw client to compose querystring parameters in a matter that still exposes some xmldocs + /// You can always pass a simple NameValueCollection if you want. + /// + /// + public abstract class FluentRequestParameters : BaseRequestParameters + where T : FluentRequestParameters + { + + public T Add(string name, object value) + { + this._QueryStringDictionary[name] = value; + return (T)this; + } + + public T RequestConfiguration(Func selector) + { + selector.ThrowIfNull("selector"); + this._RequestConfiguration = selector(this._RequestConfiguration ?? new RequestConfiguration()); + return (T)this; + } + + public T DeserializationState(object deserializationState) + { + _DeserializationState = deserializationState; + return (T)this; + } + + public bool ContainsKey(string name) + { + return this._QueryStringDictionary != null && this._QueryStringDictionary.ContainsKey(name); + } + + } + + public class FluentRequestParameters : FluentRequestParameters + { + + } +} diff --git a/src/Elasticsearch.Net/Domain/IRequestParameters.cs b/src/Elasticsearch.Net/Domain/IRequestParameters.cs new file mode 100644 index 00000000000..a1dd5446f07 --- /dev/null +++ b/src/Elasticsearch.Net/Domain/IRequestParameters.cs @@ -0,0 +1,13 @@ +using System.Collections.Specialized; +using Elasticsearch.Net.Connection; + +namespace Elasticsearch.Net +{ + public interface IRequestParameters + { + NameValueCollection QueryString { get; } + object DeserializationState { get; } + IRequestConfiguration RequestConfiguration { get; } + + } +} \ No newline at end of file diff --git a/src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs b/src/Elasticsearch.Net/Domain/RequestParameters.Generated.cs similarity index 76% rename from src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs rename to src/Elasticsearch.Net/Domain/RequestParameters.Generated.cs index d3a60e1f5b0..02f565db6a3 100644 --- a/src/Elasticsearch.Net/Domain/QueryStringParameters.Generated.cs +++ b/src/Elasticsearch.Net/Domain/RequestParameters.Generated.cs @@ -18,12 +18,12 @@ namespace Elasticsearch.Net ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-bulk.html /// /// - public class BulkQueryString : FluentQueryString + public class BulkRequestParameters : FluentRequestParameters { internal ConsistencyOptions _consistency { get; set; } ///Explicit write consistency setting for the operation - public BulkQueryString Consistency(ConsistencyOptions consistency) + public BulkRequestParameters Consistency(ConsistencyOptions consistency) { this._consistency = consistency; this.Add("consistency", this._consistency); @@ -33,7 +33,7 @@ public BulkQueryString Consistency(ConsistencyOptions consistency) internal bool _refresh { get; set; } ///Refresh the index after performing the operation - public BulkQueryString Refresh(bool refresh) + public BulkRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -43,7 +43,7 @@ public BulkQueryString Refresh(bool refresh) internal ReplicationOptions _replication { get; set; } ///Explicitely set the replication type - public BulkQueryString Replication(ReplicationOptions replication) + public BulkRequestParameters Replication(ReplicationOptions replication) { this._replication = replication; this.Add("replication", this._replication); @@ -53,7 +53,7 @@ public BulkQueryString Replication(ReplicationOptions replication) internal string _routing { get; set; } ///Specific routing value - public BulkQueryString Routing(string routing) + public BulkRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -63,7 +63,7 @@ public BulkQueryString Routing(string routing) internal string _timeout { get; set; } ///Explicit operation timeout - public BulkQueryString Timeout(string timeout) + public BulkRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -73,7 +73,7 @@ public BulkQueryString Timeout(string timeout) internal string _type { get; set; } ///Default document type for items which don't provide one - public BulkQueryString Type(string type) + public BulkRequestParameters Type(string type) { this._type = type; this.Add("type", this._type); @@ -88,12 +88,12 @@ public BulkQueryString Type(string type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-aliases.html /// /// - public class CatAliasesQueryString : FluentQueryString + public class CatAliasesRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatAliasesQueryString Local(bool local) + public CatAliasesRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -103,7 +103,7 @@ public CatAliasesQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatAliasesQueryString MasterTimeout(string master_timeout) + public CatAliasesRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -113,7 +113,7 @@ public CatAliasesQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatAliasesQueryString H(params string[] h) + public CatAliasesRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -123,7 +123,7 @@ public CatAliasesQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatAliasesQueryString Help(bool help) + public CatAliasesRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -133,7 +133,7 @@ public CatAliasesQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatAliasesQueryString V(bool v) + public CatAliasesRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -148,12 +148,12 @@ public CatAliasesQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-allocation.html /// /// - public class CatAllocationQueryString : FluentQueryString + public class CatAllocationRequestParameters : FluentRequestParameters { internal BytesOptions _bytes { get; set; } ///The unit in which to display byte values - public CatAllocationQueryString Bytes(BytesOptions bytes) + public CatAllocationRequestParameters Bytes(BytesOptions bytes) { this._bytes = bytes; this.Add("bytes", this._bytes); @@ -163,7 +163,7 @@ public CatAllocationQueryString Bytes(BytesOptions bytes) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatAllocationQueryString Local(bool local) + public CatAllocationRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -173,7 +173,7 @@ public CatAllocationQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatAllocationQueryString MasterTimeout(string master_timeout) + public CatAllocationRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -183,7 +183,7 @@ public CatAllocationQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatAllocationQueryString H(params string[] h) + public CatAllocationRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -193,7 +193,7 @@ public CatAllocationQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatAllocationQueryString Help(bool help) + public CatAllocationRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -203,7 +203,7 @@ public CatAllocationQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatAllocationQueryString V(bool v) + public CatAllocationRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -218,12 +218,12 @@ public CatAllocationQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-count.html /// /// - public class CatCountQueryString : FluentQueryString + public class CatCountRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatCountQueryString Local(bool local) + public CatCountRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -233,7 +233,7 @@ public CatCountQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatCountQueryString MasterTimeout(string master_timeout) + public CatCountRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -243,7 +243,7 @@ public CatCountQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatCountQueryString H(params string[] h) + public CatCountRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -253,7 +253,7 @@ public CatCountQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatCountQueryString Help(bool help) + public CatCountRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -263,7 +263,7 @@ public CatCountQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatCountQueryString V(bool v) + public CatCountRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -278,12 +278,12 @@ public CatCountQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-health.html /// /// - public class CatHealthQueryString : FluentQueryString + public class CatHealthRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatHealthQueryString Local(bool local) + public CatHealthRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -293,7 +293,7 @@ public CatHealthQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatHealthQueryString MasterTimeout(string master_timeout) + public CatHealthRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -303,7 +303,7 @@ public CatHealthQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatHealthQueryString H(params string[] h) + public CatHealthRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -313,7 +313,7 @@ public CatHealthQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatHealthQueryString Help(bool help) + public CatHealthRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -323,7 +323,7 @@ public CatHealthQueryString Help(bool help) internal bool _ts { get; set; } ///Set to false to disable timestamping - public CatHealthQueryString Ts(bool ts) + public CatHealthRequestParameters Ts(bool ts) { this._ts = ts; this.Add("ts", this._ts); @@ -333,7 +333,7 @@ public CatHealthQueryString Ts(bool ts) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatHealthQueryString V(bool v) + public CatHealthRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -348,12 +348,12 @@ public CatHealthQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat.html /// /// - public class CatHelpQueryString : FluentQueryString + public class CatHelpRequestParameters : FluentRequestParameters { internal bool _help { get; set; } ///Return help information - public CatHelpQueryString Help(bool help) + public CatHelpRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -368,12 +368,12 @@ public CatHelpQueryString Help(bool help) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-indices.html /// /// - public class CatIndicesQueryString : FluentQueryString + public class CatIndicesRequestParameters : FluentRequestParameters { internal BytesOptions _bytes { get; set; } ///The unit in which to display byte values - public CatIndicesQueryString Bytes(BytesOptions bytes) + public CatIndicesRequestParameters Bytes(BytesOptions bytes) { this._bytes = bytes; this.Add("bytes", this._bytes); @@ -383,7 +383,7 @@ public CatIndicesQueryString Bytes(BytesOptions bytes) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatIndicesQueryString Local(bool local) + public CatIndicesRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -393,7 +393,7 @@ public CatIndicesQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatIndicesQueryString MasterTimeout(string master_timeout) + public CatIndicesRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -403,7 +403,7 @@ public CatIndicesQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatIndicesQueryString H(params string[] h) + public CatIndicesRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -413,7 +413,7 @@ public CatIndicesQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatIndicesQueryString Help(bool help) + public CatIndicesRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -423,7 +423,7 @@ public CatIndicesQueryString Help(bool help) internal bool _pri { get; set; } ///Set to true to return stats only for primary shards - public CatIndicesQueryString Pri(bool pri) + public CatIndicesRequestParameters Pri(bool pri) { this._pri = pri; this.Add("pri", this._pri); @@ -433,7 +433,7 @@ public CatIndicesQueryString Pri(bool pri) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatIndicesQueryString V(bool v) + public CatIndicesRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -448,12 +448,12 @@ public CatIndicesQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-master.html /// /// - public class CatMasterQueryString : FluentQueryString + public class CatMasterRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatMasterQueryString Local(bool local) + public CatMasterRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -463,7 +463,7 @@ public CatMasterQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatMasterQueryString MasterTimeout(string master_timeout) + public CatMasterRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -473,7 +473,7 @@ public CatMasterQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatMasterQueryString H(params string[] h) + public CatMasterRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -483,7 +483,7 @@ public CatMasterQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatMasterQueryString Help(bool help) + public CatMasterRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -493,7 +493,7 @@ public CatMasterQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatMasterQueryString V(bool v) + public CatMasterRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -508,12 +508,12 @@ public CatMasterQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-nodes.html /// /// - public class CatNodesQueryString : FluentQueryString + public class CatNodesRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatNodesQueryString Local(bool local) + public CatNodesRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -523,7 +523,7 @@ public CatNodesQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatNodesQueryString MasterTimeout(string master_timeout) + public CatNodesRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -533,7 +533,7 @@ public CatNodesQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatNodesQueryString H(params string[] h) + public CatNodesRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -543,7 +543,7 @@ public CatNodesQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatNodesQueryString Help(bool help) + public CatNodesRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -553,7 +553,7 @@ public CatNodesQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatNodesQueryString V(bool v) + public CatNodesRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -568,12 +568,12 @@ public CatNodesQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-pending-tasks.html /// /// - public class CatPendingTasksQueryString : FluentQueryString + public class CatPendingTasksRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatPendingTasksQueryString Local(bool local) + public CatPendingTasksRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -583,7 +583,7 @@ public CatPendingTasksQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatPendingTasksQueryString MasterTimeout(string master_timeout) + public CatPendingTasksRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -593,7 +593,7 @@ public CatPendingTasksQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatPendingTasksQueryString H(params string[] h) + public CatPendingTasksRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -603,7 +603,7 @@ public CatPendingTasksQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatPendingTasksQueryString Help(bool help) + public CatPendingTasksRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -613,7 +613,7 @@ public CatPendingTasksQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatPendingTasksQueryString V(bool v) + public CatPendingTasksRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -628,12 +628,12 @@ public CatPendingTasksQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-recovery.html /// /// - public class CatRecoveryQueryString : FluentQueryString + public class CatRecoveryRequestParameters : FluentRequestParameters { internal BytesOptions _bytes { get; set; } ///The unit in which to display byte values - public CatRecoveryQueryString Bytes(BytesOptions bytes) + public CatRecoveryRequestParameters Bytes(BytesOptions bytes) { this._bytes = bytes; this.Add("bytes", this._bytes); @@ -643,7 +643,7 @@ public CatRecoveryQueryString Bytes(BytesOptions bytes) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatRecoveryQueryString Local(bool local) + public CatRecoveryRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -653,7 +653,7 @@ public CatRecoveryQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatRecoveryQueryString MasterTimeout(string master_timeout) + public CatRecoveryRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -663,7 +663,7 @@ public CatRecoveryQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatRecoveryQueryString H(params string[] h) + public CatRecoveryRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -673,7 +673,7 @@ public CatRecoveryQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatRecoveryQueryString Help(bool help) + public CatRecoveryRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -683,7 +683,7 @@ public CatRecoveryQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatRecoveryQueryString V(bool v) + public CatRecoveryRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -698,12 +698,12 @@ public CatRecoveryQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cat-shards.html /// /// - public class CatShardsQueryString : FluentQueryString + public class CatShardsRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatShardsQueryString Local(bool local) + public CatShardsRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -713,7 +713,7 @@ public CatShardsQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatShardsQueryString MasterTimeout(string master_timeout) + public CatShardsRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -723,7 +723,7 @@ public CatShardsQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatShardsQueryString H(params string[] h) + public CatShardsRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -733,7 +733,7 @@ public CatShardsQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatShardsQueryString Help(bool help) + public CatShardsRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -743,7 +743,7 @@ public CatShardsQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatShardsQueryString V(bool v) + public CatShardsRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -758,12 +758,12 @@ public CatShardsQueryString V(bool v) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/master/cat-thread-pool.html /// /// - public class CatThreadPoolQueryString : FluentQueryString + public class CatThreadPoolRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public CatThreadPoolQueryString Local(bool local) + public CatThreadPoolRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -773,7 +773,7 @@ public CatThreadPoolQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public CatThreadPoolQueryString MasterTimeout(string master_timeout) + public CatThreadPoolRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -783,7 +783,7 @@ public CatThreadPoolQueryString MasterTimeout(string master_timeout) internal string[] _h { get; set; } ///Comma-separated list of column names to display - public CatThreadPoolQueryString H(params string[] h) + public CatThreadPoolRequestParameters H(params string[] h) { this._h = h; this.Add("h", this._h); @@ -793,7 +793,7 @@ public CatThreadPoolQueryString H(params string[] h) internal bool _help { get; set; } ///Return help information - public CatThreadPoolQueryString Help(bool help) + public CatThreadPoolRequestParameters Help(bool help) { this._help = help; this.Add("help", this._help); @@ -803,7 +803,7 @@ public CatThreadPoolQueryString Help(bool help) internal bool _v { get; set; } ///Verbose mode. Display column headers - public CatThreadPoolQueryString V(bool v) + public CatThreadPoolRequestParameters V(bool v) { this._v = v; this.Add("v", this._v); @@ -813,7 +813,7 @@ public CatThreadPoolQueryString V(bool v) internal bool _full_id { get; set; } ///Enables displaying the complete node ids - public CatThreadPoolQueryString FullId(bool full_id) + public CatThreadPoolRequestParameters FullId(bool full_id) { this._full_id = full_id; this.Add("full_id", this._full_id); @@ -828,7 +828,7 @@ public CatThreadPoolQueryString FullId(bool full_id) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// /// - public class ClearScrollQueryString : FluentQueryString + public class ClearScrollRequestParameters : FluentRequestParameters { } @@ -838,12 +838,12 @@ public class ClearScrollQueryString : FluentQueryString ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// /// - public class ClusterGetSettingsQueryString : FluentQueryString + public class ClusterGetSettingsRequestParameters : FluentRequestParameters { internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public ClusterGetSettingsQueryString FlatSettings(bool flat_settings) + public ClusterGetSettingsRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -853,7 +853,7 @@ public ClusterGetSettingsQueryString FlatSettings(bool flat_settings) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public ClusterGetSettingsQueryString MasterTimeout(string master_timeout) + public ClusterGetSettingsRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -863,7 +863,7 @@ public ClusterGetSettingsQueryString MasterTimeout(string master_timeout) internal string _timeout { get; set; } ///Explicit operation timeout - public ClusterGetSettingsQueryString Timeout(string timeout) + public ClusterGetSettingsRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -878,12 +878,12 @@ public ClusterGetSettingsQueryString Timeout(string timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// /// - public class ClusterHealthQueryString : FluentQueryString + public class ClusterHealthRequestParameters : FluentRequestParameters { internal LevelOptions _level { get; set; } ///Specify the level of detail for returned information - public ClusterHealthQueryString Level(LevelOptions level) + public ClusterHealthRequestParameters Level(LevelOptions level) { this._level = level; this.Add("level", this._level); @@ -893,7 +893,7 @@ public ClusterHealthQueryString Level(LevelOptions level) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public ClusterHealthQueryString Local(bool local) + public ClusterHealthRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -903,7 +903,7 @@ public ClusterHealthQueryString Local(bool local) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public ClusterHealthQueryString MasterTimeout(string master_timeout) + public ClusterHealthRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -913,7 +913,7 @@ public ClusterHealthQueryString MasterTimeout(string master_timeout) internal string _timeout { get; set; } ///Explicit operation timeout - public ClusterHealthQueryString Timeout(string timeout) + public ClusterHealthRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -923,7 +923,7 @@ public ClusterHealthQueryString Timeout(string timeout) internal int _wait_for_active_shards { get; set; } ///Wait until the specified number of shards is active - public ClusterHealthQueryString WaitForActiveShards(int wait_for_active_shards) + public ClusterHealthRequestParameters WaitForActiveShards(int wait_for_active_shards) { this._wait_for_active_shards = wait_for_active_shards; this.Add("wait_for_active_shards", this._wait_for_active_shards); @@ -933,7 +933,7 @@ public ClusterHealthQueryString WaitForActiveShards(int wait_for_active_shards) internal string _wait_for_nodes { get; set; } ///Wait until the specified number of nodes is available - public ClusterHealthQueryString WaitForNodes(string wait_for_nodes) + public ClusterHealthRequestParameters WaitForNodes(string wait_for_nodes) { this._wait_for_nodes = wait_for_nodes; this.Add("wait_for_nodes", this._wait_for_nodes); @@ -943,7 +943,7 @@ public ClusterHealthQueryString WaitForNodes(string wait_for_nodes) internal int _wait_for_relocating_shards { get; set; } ///Wait until the specified number of relocating shards is finished - public ClusterHealthQueryString WaitForRelocatingShards(int wait_for_relocating_shards) + public ClusterHealthRequestParameters WaitForRelocatingShards(int wait_for_relocating_shards) { this._wait_for_relocating_shards = wait_for_relocating_shards; this.Add("wait_for_relocating_shards", this._wait_for_relocating_shards); @@ -953,7 +953,7 @@ public ClusterHealthQueryString WaitForRelocatingShards(int wait_for_relocating_ internal WaitForStatusOptions _wait_for_status { get; set; } ///Wait until cluster is in a specific state - public ClusterHealthQueryString WaitForStatus(WaitForStatusOptions wait_for_status) + public ClusterHealthRequestParameters WaitForStatus(WaitForStatusOptions wait_for_status) { this._wait_for_status = wait_for_status; this.Add("wait_for_status", this._wait_for_status); @@ -968,12 +968,12 @@ public ClusterHealthQueryString WaitForStatus(WaitForStatusOptions wait_for_stat ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-pending.html /// /// - public class ClusterPendingTasksQueryString : FluentQueryString + public class ClusterPendingTasksRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public ClusterPendingTasksQueryString Local(bool local) + public ClusterPendingTasksRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -983,7 +983,7 @@ public ClusterPendingTasksQueryString Local(bool local) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public ClusterPendingTasksQueryString MasterTimeout(string master_timeout) + public ClusterPendingTasksRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -998,12 +998,12 @@ public ClusterPendingTasksQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-update-settings.html /// /// - public class ClusterPutSettingsQueryString : FluentQueryString + public class ClusterPutSettingsRequestParameters : FluentRequestParameters { internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public ClusterPutSettingsQueryString FlatSettings(bool flat_settings) + public ClusterPutSettingsRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -1018,12 +1018,12 @@ public ClusterPutSettingsQueryString FlatSettings(bool flat_settings) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-reroute.html /// /// - public class ClusterRerouteQueryString : FluentQueryString + public class ClusterRerouteRequestParameters : FluentRequestParameters { internal bool _dry_run { get; set; } ///Simulate the operation only and return the resulting state - public ClusterRerouteQueryString DryRun(bool dry_run) + public ClusterRerouteRequestParameters DryRun(bool dry_run) { this._dry_run = dry_run; this.Add("dry_run", this._dry_run); @@ -1033,7 +1033,7 @@ public ClusterRerouteQueryString DryRun(bool dry_run) internal bool _filter_metadata { get; set; } ///Don't return cluster state metadata (default: false) - public ClusterRerouteQueryString FilterMetadata(bool filter_metadata) + public ClusterRerouteRequestParameters FilterMetadata(bool filter_metadata) { this._filter_metadata = filter_metadata; this.Add("filter_metadata", this._filter_metadata); @@ -1043,7 +1043,7 @@ public ClusterRerouteQueryString FilterMetadata(bool filter_metadata) internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public ClusterRerouteQueryString MasterTimeout(string master_timeout) + public ClusterRerouteRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -1053,7 +1053,7 @@ public ClusterRerouteQueryString MasterTimeout(string master_timeout) internal string _timeout { get; set; } ///Explicit operation timeout - public ClusterRerouteQueryString Timeout(string timeout) + public ClusterRerouteRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -1068,12 +1068,12 @@ public ClusterRerouteQueryString Timeout(string timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-state.html /// /// - public class ClusterStateQueryString : FluentQueryString + public class ClusterStateRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public ClusterStateQueryString Local(bool local) + public ClusterStateRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -1083,7 +1083,7 @@ public ClusterStateQueryString Local(bool local) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public ClusterStateQueryString MasterTimeout(string master_timeout) + public ClusterStateRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -1093,7 +1093,7 @@ public ClusterStateQueryString MasterTimeout(string master_timeout) internal string[] _index_templates { get; set; } ///A comma separated list to return specific index templates when returning metadata - public ClusterStateQueryString IndexTemplates(params string[] index_templates) + public ClusterStateRequestParameters IndexTemplates(params string[] index_templates) { this._index_templates = index_templates; this.Add("index_templates", this._index_templates); @@ -1103,7 +1103,7 @@ public ClusterStateQueryString IndexTemplates(params string[] index_templates) internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public ClusterStateQueryString FlatSettings(bool flat_settings) + public ClusterStateRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -1118,12 +1118,12 @@ public ClusterStateQueryString FlatSettings(bool flat_settings) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-stats.html /// /// - public class ClusterStatsQueryString : FluentQueryString + public class ClusterStatsRequestParameters : FluentRequestParameters { internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public ClusterStatsQueryString FlatSettings(bool flat_settings) + public ClusterStatsRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -1133,7 +1133,7 @@ public ClusterStatsQueryString FlatSettings(bool flat_settings) internal bool _human { get; set; } ///Whether to return time and byte values in human-readable format. - public ClusterStatsQueryString Human(bool human) + public ClusterStatsRequestParameters Human(bool human) { this._human = human; this.Add("human", this._human); @@ -1148,12 +1148,12 @@ public ClusterStatsQueryString Human(bool human) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-count.html /// /// - public class CountQueryString : FluentQueryString + public class CountRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public CountQueryString IgnoreUnavailable(bool ignore_unavailable) + public CountRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -1163,7 +1163,7 @@ public CountQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public CountQueryString AllowNoIndices(bool allow_no_indices) + public CountRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -1173,7 +1173,7 @@ public CountQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public CountQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public CountRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -1183,7 +1183,7 @@ public CountQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) internal int _min_score { get; set; } ///Include only documents with a specific `_score` value in the result - public CountQueryString MinScore(int min_score) + public CountRequestParameters MinScore(int min_score) { this._min_score = min_score; this.Add("min_score", this._min_score); @@ -1193,7 +1193,7 @@ public CountQueryString MinScore(int min_score) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public CountQueryString Preference(string preference) + public CountRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1203,7 +1203,7 @@ public CountQueryString Preference(string preference) internal string _routing { get; set; } ///Specific routing value - public CountQueryString Routing(string routing) + public CountRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1213,7 +1213,7 @@ public CountQueryString Routing(string routing) internal string _source { get; set; } ///The URL-encoded query definition (instead of using the request body) - public CountQueryString Source(string source) + public CountRequestParameters Source(string source) { this._source = source; this.Add("source", this._source); @@ -1228,12 +1228,12 @@ public CountQueryString Source(string source) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// /// - public class CountPercolateQueryString : FluentQueryString + public class CountPercolateRequestParameters : FluentRequestParameters { internal string[] _routing { get; set; } ///A comma-separated list of specific routing values - public CountPercolateQueryString Routing(params string[] routing) + public CountPercolateRequestParameters Routing(params string[] routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1243,7 +1243,7 @@ public CountPercolateQueryString Routing(params string[] routing) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public CountPercolateQueryString Preference(string preference) + public CountPercolateRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1253,7 +1253,7 @@ public CountPercolateQueryString Preference(string preference) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public CountPercolateQueryString IgnoreUnavailable(bool ignore_unavailable) + public CountPercolateRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -1263,7 +1263,7 @@ public CountPercolateQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public CountPercolateQueryString AllowNoIndices(bool allow_no_indices) + public CountPercolateRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -1273,7 +1273,7 @@ public CountPercolateQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public CountPercolateQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public CountPercolateRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -1283,7 +1283,7 @@ public CountPercolateQueryString ExpandWildcards(ExpandWildcardsOptions expand_w internal string _percolate_index { get; set; } ///The index to count percolate the document into. Defaults to index. - public CountPercolateQueryString PercolateIndex(string percolate_index) + public CountPercolateRequestParameters PercolateIndex(string percolate_index) { this._percolate_index = percolate_index; this.Add("percolate_index", this._percolate_index); @@ -1293,7 +1293,7 @@ public CountPercolateQueryString PercolateIndex(string percolate_index) internal string _percolate_type { get; set; } ///The type to count percolate document into. Defaults to type. - public CountPercolateQueryString PercolateType(string percolate_type) + public CountPercolateRequestParameters PercolateType(string percolate_type) { this._percolate_type = percolate_type; this.Add("percolate_type", this._percolate_type); @@ -1303,7 +1303,7 @@ public CountPercolateQueryString PercolateType(string percolate_type) internal int _version { get; set; } ///Explicit version number for concurrency control - public CountPercolateQueryString Version(int version) + public CountPercolateRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -1313,7 +1313,7 @@ public CountPercolateQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public CountPercolateQueryString VersionType(VersionTypeOptions version_type) + public CountPercolateRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -1328,12 +1328,12 @@ public CountPercolateQueryString VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete.html /// /// - public class DeleteQueryString : FluentQueryString + public class DeleteRequestParameters : FluentRequestParameters { internal ConsistencyOptions _consistency { get; set; } ///Specific write consistency setting for the operation - public DeleteQueryString Consistency(ConsistencyOptions consistency) + public DeleteRequestParameters Consistency(ConsistencyOptions consistency) { this._consistency = consistency; this.Add("consistency", this._consistency); @@ -1343,7 +1343,7 @@ public DeleteQueryString Consistency(ConsistencyOptions consistency) internal string _parent { get; set; } ///ID of parent document - public DeleteQueryString Parent(string parent) + public DeleteRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -1353,7 +1353,7 @@ public DeleteQueryString Parent(string parent) internal bool _refresh { get; set; } ///Refresh the index after performing the operation - public DeleteQueryString Refresh(bool refresh) + public DeleteRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -1363,7 +1363,7 @@ public DeleteQueryString Refresh(bool refresh) internal ReplicationOptions _replication { get; set; } ///Specific replication type - public DeleteQueryString Replication(ReplicationOptions replication) + public DeleteRequestParameters Replication(ReplicationOptions replication) { this._replication = replication; this.Add("replication", this._replication); @@ -1373,7 +1373,7 @@ public DeleteQueryString Replication(ReplicationOptions replication) internal string _routing { get; set; } ///Specific routing value - public DeleteQueryString Routing(string routing) + public DeleteRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1383,7 +1383,7 @@ public DeleteQueryString Routing(string routing) internal string _timeout { get; set; } ///Explicit operation timeout - public DeleteQueryString Timeout(string timeout) + public DeleteRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -1393,7 +1393,7 @@ public DeleteQueryString Timeout(string timeout) internal int _version { get; set; } ///Explicit version number for concurrency control - public DeleteQueryString Version(int version) + public DeleteRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -1403,7 +1403,7 @@ public DeleteQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public DeleteQueryString VersionType(VersionTypeOptions version_type) + public DeleteRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -1418,12 +1418,12 @@ public DeleteQueryString VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-delete-by-query.html /// /// - public class DeleteByQueryQueryString : FluentQueryString + public class DeleteByQueryRequestParameters : FluentRequestParameters { internal string _analyzer { get; set; } ///The analyzer to use for the query string - public DeleteByQueryQueryString Analyzer(string analyzer) + public DeleteByQueryRequestParameters Analyzer(string analyzer) { this._analyzer = analyzer; this.Add("analyzer", this._analyzer); @@ -1433,7 +1433,7 @@ public DeleteByQueryQueryString Analyzer(string analyzer) internal ConsistencyOptions _consistency { get; set; } ///Specific write consistency setting for the operation - public DeleteByQueryQueryString Consistency(ConsistencyOptions consistency) + public DeleteByQueryRequestParameters Consistency(ConsistencyOptions consistency) { this._consistency = consistency; this.Add("consistency", this._consistency); @@ -1443,7 +1443,7 @@ public DeleteByQueryQueryString Consistency(ConsistencyOptions consistency) internal DefaultOperatorOptions _default_operator { get; set; } ///The default operator for query string query (AND or OR) - public DeleteByQueryQueryString DefaultOperator(DefaultOperatorOptions default_operator) + public DeleteByQueryRequestParameters DefaultOperator(DefaultOperatorOptions default_operator) { this._default_operator = default_operator; this.Add("default_operator", this._default_operator); @@ -1453,7 +1453,7 @@ public DeleteByQueryQueryString DefaultOperator(DefaultOperatorOptions default_o internal string _df { get; set; } ///The field to use as default where no field prefix is given in the query string - public DeleteByQueryQueryString Df(string df) + public DeleteByQueryRequestParameters Df(string df) { this._df = df; this.Add("df", this._df); @@ -1463,7 +1463,7 @@ public DeleteByQueryQueryString Df(string df) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public DeleteByQueryQueryString IgnoreUnavailable(bool ignore_unavailable) + public DeleteByQueryRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -1473,7 +1473,7 @@ public DeleteByQueryQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public DeleteByQueryQueryString AllowNoIndices(bool allow_no_indices) + public DeleteByQueryRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -1483,7 +1483,7 @@ public DeleteByQueryQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public DeleteByQueryQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public DeleteByQueryRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -1493,7 +1493,7 @@ public DeleteByQueryQueryString ExpandWildcards(ExpandWildcardsOptions expand_wi internal ReplicationOptions _replication { get; set; } ///Specific replication type - public DeleteByQueryQueryString Replication(ReplicationOptions replication) + public DeleteByQueryRequestParameters Replication(ReplicationOptions replication) { this._replication = replication; this.Add("replication", this._replication); @@ -1503,7 +1503,7 @@ public DeleteByQueryQueryString Replication(ReplicationOptions replication) internal string _q { get; set; } ///Query in the Lucene query string syntax - public DeleteByQueryQueryString Q(string q) + public DeleteByQueryRequestParameters Q(string q) { this._q = q; this.Add("q", this._q); @@ -1513,7 +1513,7 @@ public DeleteByQueryQueryString Q(string q) internal string _routing { get; set; } ///Specific routing value - public DeleteByQueryQueryString Routing(string routing) + public DeleteByQueryRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1523,7 +1523,7 @@ public DeleteByQueryQueryString Routing(string routing) internal string _source { get; set; } ///The URL-encoded query definition (instead of using the request body) - public DeleteByQueryQueryString Source(string source) + public DeleteByQueryRequestParameters Source(string source) { this._source = source; this.Add("source", this._source); @@ -1533,7 +1533,7 @@ public DeleteByQueryQueryString Source(string source) internal string _timeout { get; set; } ///Explicit operation timeout - public DeleteByQueryQueryString Timeout(string timeout) + public DeleteByQueryRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -1548,12 +1548,12 @@ public DeleteByQueryQueryString Timeout(string timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// /// - public class ExistsQueryString : FluentQueryString + public class ExistsRequestParameters : FluentRequestParameters { internal string _parent { get; set; } ///The ID of the parent document - public ExistsQueryString Parent(string parent) + public ExistsRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -1563,7 +1563,7 @@ public ExistsQueryString Parent(string parent) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public ExistsQueryString Preference(string preference) + public ExistsRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1573,7 +1573,7 @@ public ExistsQueryString Preference(string preference) internal bool _realtime { get; set; } ///Specify whether to perform the operation in realtime or search mode - public ExistsQueryString Realtime(bool realtime) + public ExistsRequestParameters Realtime(bool realtime) { this._realtime = realtime; this.Add("realtime", this._realtime); @@ -1583,7 +1583,7 @@ public ExistsQueryString Realtime(bool realtime) internal bool _refresh { get; set; } ///Refresh the shard containing the document before performing the operation - public ExistsQueryString Refresh(bool refresh) + public ExistsRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -1593,7 +1593,7 @@ public ExistsQueryString Refresh(bool refresh) internal string _routing { get; set; } ///Specific routing value - public ExistsQueryString Routing(string routing) + public ExistsRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1608,12 +1608,12 @@ public ExistsQueryString Routing(string routing) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-explain.html /// /// - public class ExplainQueryString : FluentQueryString + public class ExplainRequestParameters : FluentRequestParameters { internal bool _analyze_wildcard { get; set; } ///Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false) - public ExplainQueryString AnalyzeWildcard(bool analyze_wildcard) + public ExplainRequestParameters AnalyzeWildcard(bool analyze_wildcard) { this._analyze_wildcard = analyze_wildcard; this.Add("analyze_wildcard", this._analyze_wildcard); @@ -1623,7 +1623,7 @@ public ExplainQueryString AnalyzeWildcard(bool analyze_wildcard) internal string _analyzer { get; set; } ///The analyzer for the query string query - public ExplainQueryString Analyzer(string analyzer) + public ExplainRequestParameters Analyzer(string analyzer) { this._analyzer = analyzer; this.Add("analyzer", this._analyzer); @@ -1633,7 +1633,7 @@ public ExplainQueryString Analyzer(string analyzer) internal DefaultOperatorOptions _default_operator { get; set; } ///The default operator for query string query (AND or OR) - public ExplainQueryString DefaultOperator(DefaultOperatorOptions default_operator) + public ExplainRequestParameters DefaultOperator(DefaultOperatorOptions default_operator) { this._default_operator = default_operator; this.Add("default_operator", this._default_operator); @@ -1643,7 +1643,7 @@ public ExplainQueryString DefaultOperator(DefaultOperatorOptions default_operato internal string _df { get; set; } ///The default field for query string query (default: _all) - public ExplainQueryString Df(string df) + public ExplainRequestParameters Df(string df) { this._df = df; this.Add("df", this._df); @@ -1653,7 +1653,7 @@ public ExplainQueryString Df(string df) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to return in the response - public ExplainQueryString Fields(params string[] fields) + public ExplainRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -1663,7 +1663,7 @@ public ExplainQueryString Fields(params string[] fields) internal bool _lenient { get; set; } ///Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - public ExplainQueryString Lenient(bool lenient) + public ExplainRequestParameters Lenient(bool lenient) { this._lenient = lenient; this.Add("lenient", this._lenient); @@ -1673,7 +1673,7 @@ public ExplainQueryString Lenient(bool lenient) internal bool _lowercase_expanded_terms { get; set; } ///Specify whether query terms should be lowercased - public ExplainQueryString LowercaseExpandedTerms(bool lowercase_expanded_terms) + public ExplainRequestParameters LowercaseExpandedTerms(bool lowercase_expanded_terms) { this._lowercase_expanded_terms = lowercase_expanded_terms; this.Add("lowercase_expanded_terms", this._lowercase_expanded_terms); @@ -1683,7 +1683,7 @@ public ExplainQueryString LowercaseExpandedTerms(bool lowercase_expanded_terms) internal string _parent { get; set; } ///The ID of the parent document - public ExplainQueryString Parent(string parent) + public ExplainRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -1693,7 +1693,7 @@ public ExplainQueryString Parent(string parent) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public ExplainQueryString Preference(string preference) + public ExplainRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1703,7 +1703,7 @@ public ExplainQueryString Preference(string preference) internal string _q { get; set; } ///Query in the Lucene query string syntax - public ExplainQueryString Q(string q) + public ExplainRequestParameters Q(string q) { this._q = q; this.Add("q", this._q); @@ -1713,7 +1713,7 @@ public ExplainQueryString Q(string q) internal string _routing { get; set; } ///Specific routing value - public ExplainQueryString Routing(string routing) + public ExplainRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1723,7 +1723,7 @@ public ExplainQueryString Routing(string routing) internal string _source { get; set; } ///The URL-encoded query definition (instead of using the request body) - public ExplainQueryString Source(string source) + public ExplainRequestParameters Source(string source) { this._source = source; this.Add("source", this._source); @@ -1733,7 +1733,7 @@ public ExplainQueryString Source(string source) internal string[] __source { get; set; } ///True or false to return the _source field or not, or a list of fields to return - public ExplainQueryString Source(params string[] _source) + public ExplainRequestParameters Source(params string[] _source) { this.__source = _source; this.Add("_source", this.__source); @@ -1743,7 +1743,7 @@ public ExplainQueryString Source(params string[] _source) internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field - public ExplainQueryString SourceExclude(params string[] _source_exclude) + public ExplainRequestParameters SourceExclude(params string[] _source_exclude) { this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); @@ -1753,7 +1753,7 @@ public ExplainQueryString SourceExclude(params string[] _source_exclude) 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) + public ExplainRequestParameters SourceInclude(params string[] _source_include) { this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); @@ -1768,12 +1768,12 @@ public ExplainQueryString SourceInclude(params string[] _source_include) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-get.html /// /// - public class GetQueryString : FluentQueryString + public class GetRequestParameters : FluentRequestParameters { internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to return in the response - public GetQueryString Fields(params string[] fields) + public GetRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -1783,7 +1783,7 @@ public GetQueryString Fields(params string[] fields) internal string _parent { get; set; } ///The ID of the parent document - public GetQueryString Parent(string parent) + public GetRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -1793,7 +1793,7 @@ public GetQueryString Parent(string parent) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public GetQueryString Preference(string preference) + public GetRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1803,7 +1803,7 @@ public GetQueryString Preference(string preference) internal bool _realtime { get; set; } ///Specify whether to perform the operation in realtime or search mode - public GetQueryString Realtime(bool realtime) + public GetRequestParameters Realtime(bool realtime) { this._realtime = realtime; this.Add("realtime", this._realtime); @@ -1813,7 +1813,7 @@ public GetQueryString Realtime(bool realtime) internal bool _refresh { get; set; } ///Refresh the shard containing the document before performing the operation - public GetQueryString Refresh(bool refresh) + public GetRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -1823,7 +1823,7 @@ public GetQueryString Refresh(bool refresh) internal string _routing { get; set; } ///Specific routing value - public GetQueryString Routing(string routing) + public GetRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1833,7 +1833,7 @@ public GetQueryString 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 GetQueryString Source(params string[] _source) + public GetRequestParameters Source(params string[] _source) { this.__source = _source; this.Add("_source", this.__source); @@ -1843,7 +1843,7 @@ public GetQueryString Source(params string[] _source) internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field - public GetQueryString SourceExclude(params string[] _source_exclude) + public GetRequestParameters SourceExclude(params string[] _source_exclude) { this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); @@ -1853,7 +1853,7 @@ public GetQueryString SourceExclude(params string[] _source_exclude) 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) + public GetRequestParameters SourceInclude(params string[] _source_include) { this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); @@ -1863,7 +1863,7 @@ public GetQueryString SourceInclude(params string[] _source_include) internal int _version { get; set; } ///Explicit version number for concurrency control - public GetQueryString Version(int version) + public GetRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -1873,7 +1873,7 @@ public GetQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public GetQueryString VersionType(VersionTypeOptions version_type) + public GetRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -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 SourceQueryString : FluentQueryString + public class SourceRequestParameters : FluentRequestParameters { internal string _parent { get; set; } ///The ID of the parent document - public SourceQueryString Parent(string parent) + public SourceRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -1903,7 +1903,7 @@ public SourceQueryString Parent(string parent) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public SourceQueryString Preference(string preference) + public SourceRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -1913,7 +1913,7 @@ public SourceQueryString Preference(string preference) internal bool _realtime { get; set; } ///Specify whether to perform the operation in realtime or search mode - public SourceQueryString Realtime(bool realtime) + public SourceRequestParameters Realtime(bool realtime) { this._realtime = realtime; this.Add("realtime", this._realtime); @@ -1923,7 +1923,7 @@ public SourceQueryString Realtime(bool realtime) internal bool _refresh { get; set; } ///Refresh the shard containing the document before performing the operation - public SourceQueryString Refresh(bool refresh) + public SourceRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -1933,7 +1933,7 @@ public SourceQueryString Refresh(bool refresh) internal string _routing { get; set; } ///Specific routing value - public SourceQueryString Routing(string routing) + public SourceRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -1943,7 +1943,7 @@ public SourceQueryString 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 SourceQueryString Source(params string[] _source) + public SourceRequestParameters Source(params string[] _source) { this.__source = _source; this.Add("_source", this.__source); @@ -1953,7 +1953,7 @@ public SourceQueryString Source(params string[] _source) internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field - public SourceQueryString SourceExclude(params string[] _source_exclude) + public SourceRequestParameters SourceExclude(params string[] _source_exclude) { this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); @@ -1963,7 +1963,7 @@ public SourceQueryString SourceExclude(params string[] _source_exclude) internal IEnumerable __source_include { get; set; } ///A list of fields to extract and return from the _source field - public SourceQueryString SourceInclude(params string[] _source_include) + public SourceRequestParameters SourceInclude(params string[] _source_include) { this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); @@ -1973,7 +1973,7 @@ public SourceQueryString SourceInclude(params string[] _source_include) internal int _version { get; set; } ///Explicit version number for concurrency control - public SourceQueryString Version(int version) + public SourceRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -1983,7 +1983,7 @@ public SourceQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public SourceQueryString VersionType(VersionTypeOptions version_type) + public SourceRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -1998,12 +1998,12 @@ public SourceQueryString VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-index_.html /// /// - public class IndexQueryString : FluentQueryString + public class IndexRequestParameters : FluentRequestParameters { internal ConsistencyOptions _consistency { get; set; } ///Explicit write consistency setting for the operation - public IndexQueryString Consistency(ConsistencyOptions consistency) + public IndexRequestParameters Consistency(ConsistencyOptions consistency) { this._consistency = consistency; this.Add("consistency", this._consistency); @@ -2013,7 +2013,7 @@ public IndexQueryString Consistency(ConsistencyOptions consistency) internal OpTypeOptions _op_type { get; set; } ///Explicit operation type - public IndexQueryString OpType(OpTypeOptions op_type) + public IndexRequestParameters OpType(OpTypeOptions op_type) { this._op_type = op_type; this.Add("op_type", this._op_type); @@ -2023,7 +2023,7 @@ public IndexQueryString OpType(OpTypeOptions op_type) internal string _parent { get; set; } ///ID of the parent document - public IndexQueryString Parent(string parent) + public IndexRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -2033,7 +2033,7 @@ public IndexQueryString Parent(string parent) internal bool _refresh { get; set; } ///Refresh the index after performing the operation - public IndexQueryString Refresh(bool refresh) + public IndexRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -2043,7 +2043,7 @@ public IndexQueryString Refresh(bool refresh) internal ReplicationOptions _replication { get; set; } ///Specific replication type - public IndexQueryString Replication(ReplicationOptions replication) + public IndexRequestParameters Replication(ReplicationOptions replication) { this._replication = replication; this.Add("replication", this._replication); @@ -2053,7 +2053,7 @@ public IndexQueryString Replication(ReplicationOptions replication) internal string _routing { get; set; } ///Specific routing value - public IndexQueryString Routing(string routing) + public IndexRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -2063,7 +2063,7 @@ public IndexQueryString Routing(string routing) internal string _timeout { get; set; } ///Explicit operation timeout - public IndexQueryString Timeout(string timeout) + public IndexRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2073,7 +2073,7 @@ public IndexQueryString Timeout(string timeout) internal string _timestamp { get; set; } ///Explicit timestamp for the document - public IndexQueryString Timestamp(string timestamp) + public IndexRequestParameters Timestamp(string timestamp) { this._timestamp = timestamp; this.Add("timestamp", this._timestamp); @@ -2083,7 +2083,7 @@ public IndexQueryString Timestamp(string timestamp) internal string _ttl { get; set; } ///Expiration time for the document - public IndexQueryString Ttl(string ttl) + public IndexRequestParameters Ttl(string ttl) { this._ttl = ttl; this.Add("ttl", this._ttl); @@ -2093,7 +2093,7 @@ public IndexQueryString Ttl(string ttl) internal int _version { get; set; } ///Explicit version number for concurrency control - public IndexQueryString Version(int version) + public IndexRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -2103,7 +2103,7 @@ public IndexQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public IndexQueryString VersionType(VersionTypeOptions version_type) + public IndexRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -2118,12 +2118,12 @@ public IndexQueryString VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-analyze.html /// /// - public class AnalyzeQueryString : FluentQueryString + public class AnalyzeRequestParameters : FluentRequestParameters { internal string _analyzer { get; set; } ///The name of the analyzer to use - public AnalyzeQueryString Analyzer(string analyzer) + public AnalyzeRequestParameters Analyzer(string analyzer) { this._analyzer = analyzer; this.Add("analyzer", this._analyzer); @@ -2133,7 +2133,7 @@ public AnalyzeQueryString Analyzer(string analyzer) internal object _field { get; set; } ///Use the analyzer configured for this field (instead of passing the analyzer name) - public AnalyzeQueryString Field(string field) + public AnalyzeRequestParameters Field(string field) { this._field = field; this.Add("field", this._field); @@ -2143,7 +2143,7 @@ public AnalyzeQueryString Field(string field) internal string[] _filters { get; set; } ///A comma-separated list of filters to use for the analysis - public AnalyzeQueryString Filters(params string[] filters) + public AnalyzeRequestParameters Filters(params string[] filters) { this._filters = filters; this.Add("filters", this._filters); @@ -2153,7 +2153,7 @@ public AnalyzeQueryString Filters(params string[] filters) internal string _index { get; set; } ///The name of the index to scope the operation - public AnalyzeQueryString Index(string index) + public AnalyzeRequestParameters Index(string index) { this._index = index; this.Add("index", this._index); @@ -2163,7 +2163,7 @@ public AnalyzeQueryString Index(string index) internal bool _prefer_local { get; set; } ///With `true`, specify that a local shard should be used if available, with `false`, use a random shard (default: true) - public AnalyzeQueryString PreferLocal(bool prefer_local) + public AnalyzeRequestParameters PreferLocal(bool prefer_local) { this._prefer_local = prefer_local; this.Add("prefer_local", this._prefer_local); @@ -2173,7 +2173,7 @@ public AnalyzeQueryString PreferLocal(bool prefer_local) internal string _text { get; set; } ///The text on which the analysis should be performed (when request body is not used) - public AnalyzeQueryString Text(string text) + public AnalyzeRequestParameters Text(string text) { this._text = text; this.Add("text", this._text); @@ -2183,7 +2183,7 @@ public AnalyzeQueryString Text(string text) internal string _tokenizer { get; set; } ///The name of the tokenizer to use for the analysis - public AnalyzeQueryString Tokenizer(string tokenizer) + public AnalyzeRequestParameters Tokenizer(string tokenizer) { this._tokenizer = tokenizer; this.Add("tokenizer", this._tokenizer); @@ -2193,7 +2193,7 @@ public AnalyzeQueryString Tokenizer(string tokenizer) internal FormatOptions _format { get; set; } ///Format of the output - public AnalyzeQueryString Format(FormatOptions format) + public AnalyzeRequestParameters Format(FormatOptions format) { this._format = format; this.Add("format", this._format); @@ -2208,12 +2208,12 @@ public AnalyzeQueryString Format(FormatOptions format) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-clearcache.html /// /// - public class ClearCacheQueryString : FluentQueryString + public class ClearCacheRequestParameters : FluentRequestParameters { internal bool _field_data { get; set; } ///Clear field data - public ClearCacheQueryString FieldData(bool field_data) + public ClearCacheRequestParameters FieldData(bool field_data) { this._field_data = field_data; this.Add("field_data", this._field_data); @@ -2223,7 +2223,7 @@ public ClearCacheQueryString FieldData(bool field_data) internal bool _fielddata { get; set; } ///Clear field data - public ClearCacheQueryString Fielddata(bool fielddata) + public ClearCacheRequestParameters Fielddata(bool fielddata) { this._fielddata = fielddata; this.Add("fielddata", this._fielddata); @@ -2233,7 +2233,7 @@ public ClearCacheQueryString Fielddata(bool fielddata) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to clear when using the `field_data` parameter (default: all) - public ClearCacheQueryString Fields(params string[] fields) + public ClearCacheRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -2243,7 +2243,7 @@ public ClearCacheQueryString Fields(params string[] fields) internal bool _filter { get; set; } ///Clear filter caches - public ClearCacheQueryString Filter(bool filter) + public ClearCacheRequestParameters Filter(bool filter) { this._filter = filter; this.Add("filter", this._filter); @@ -2253,7 +2253,7 @@ public ClearCacheQueryString Filter(bool filter) internal bool _filter_cache { get; set; } ///Clear filter caches - public ClearCacheQueryString FilterCache(bool filter_cache) + public ClearCacheRequestParameters FilterCache(bool filter_cache) { this._filter_cache = filter_cache; this.Add("filter_cache", this._filter_cache); @@ -2263,7 +2263,7 @@ public ClearCacheQueryString FilterCache(bool filter_cache) internal bool _filter_keys { get; set; } ///A comma-separated list of keys to clear when using the `filter_cache` parameter (default: all) - public ClearCacheQueryString FilterKeys(bool filter_keys) + public ClearCacheRequestParameters FilterKeys(bool filter_keys) { this._filter_keys = filter_keys; this.Add("filter_keys", this._filter_keys); @@ -2273,7 +2273,7 @@ public ClearCacheQueryString FilterKeys(bool filter_keys) internal bool _id { get; set; } ///Clear ID caches for parent/child - public ClearCacheQueryString Id(bool id) + public ClearCacheRequestParameters Id(bool id) { this._id = id; this.Add("id", this._id); @@ -2283,7 +2283,7 @@ public ClearCacheQueryString Id(bool id) internal bool _id_cache { get; set; } ///Clear ID caches for parent/child - public ClearCacheQueryString IdCache(bool id_cache) + public ClearCacheRequestParameters IdCache(bool id_cache) { this._id_cache = id_cache; this.Add("id_cache", this._id_cache); @@ -2293,7 +2293,7 @@ public ClearCacheQueryString IdCache(bool id_cache) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public ClearCacheQueryString IgnoreUnavailable(bool ignore_unavailable) + public ClearCacheRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2303,7 +2303,7 @@ public ClearCacheQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public ClearCacheQueryString AllowNoIndices(bool allow_no_indices) + public ClearCacheRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2313,7 +2313,7 @@ public ClearCacheQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public ClearCacheQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public ClearCacheRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2323,7 +2323,7 @@ public ClearCacheQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildc internal string[] _index { get; set; } ///A comma-separated list of index name to limit the operation - public ClearCacheQueryString Index(params string[] index) + public ClearCacheRequestParameters Index(params string[] index) { this._index = index; this.Add("index", this._index); @@ -2333,7 +2333,7 @@ public ClearCacheQueryString Index(params string[] index) internal bool _recycler { get; set; } ///Clear the recycler cache - public ClearCacheQueryString Recycler(bool recycler) + public ClearCacheRequestParameters Recycler(bool recycler) { this._recycler = recycler; this.Add("recycler", this._recycler); @@ -2348,12 +2348,12 @@ public ClearCacheQueryString Recycler(bool recycler) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// /// - public class CloseIndexQueryString : FluentQueryString + public class CloseIndexRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public CloseIndexQueryString Timeout(string timeout) + public CloseIndexRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2363,7 +2363,7 @@ public CloseIndexQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public CloseIndexQueryString MasterTimeout(string master_timeout) + public CloseIndexRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2373,7 +2373,7 @@ public CloseIndexQueryString MasterTimeout(string master_timeout) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public CloseIndexQueryString IgnoreUnavailable(bool ignore_unavailable) + public CloseIndexRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2383,7 +2383,7 @@ public CloseIndexQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public CloseIndexQueryString AllowNoIndices(bool allow_no_indices) + public CloseIndexRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2393,7 +2393,7 @@ public CloseIndexQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public CloseIndexQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public CloseIndexRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2408,12 +2408,12 @@ public CloseIndexQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildc ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-create-index.html /// /// - public class CreateIndexQueryString : FluentQueryString + public class CreateIndexRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public CreateIndexQueryString Timeout(string timeout) + public CreateIndexRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2423,7 +2423,7 @@ public CreateIndexQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public CreateIndexQueryString MasterTimeout(string master_timeout) + public CreateIndexRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2438,12 +2438,12 @@ public CreateIndexQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-index.html /// /// - public class DeleteIndexQueryString : FluentQueryString + public class DeleteIndexRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public DeleteIndexQueryString Timeout(string timeout) + public DeleteIndexRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2453,7 +2453,7 @@ public DeleteIndexQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public DeleteIndexQueryString MasterTimeout(string master_timeout) + public DeleteIndexRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2468,12 +2468,12 @@ public DeleteIndexQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// /// - public class IndicesDeleteAliasQueryString : FluentQueryString + public class IndicesDeleteAliasRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit timestamp for the document - public IndicesDeleteAliasQueryString Timeout(string timeout) + public IndicesDeleteAliasRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2483,7 +2483,7 @@ public IndicesDeleteAliasQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public IndicesDeleteAliasQueryString MasterTimeout(string master_timeout) + public IndicesDeleteAliasRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2498,12 +2498,12 @@ public IndicesDeleteAliasQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-delete-mapping.html /// /// - public class DeleteMappingQueryString : FluentQueryString + public class DeleteMappingRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public DeleteMappingQueryString MasterTimeout(string master_timeout) + public DeleteMappingRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2518,12 +2518,12 @@ public DeleteMappingQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// /// - public class DeleteTemplateQueryString : FluentQueryString + public class DeleteTemplateRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public DeleteTemplateQueryString Timeout(string timeout) + public DeleteTemplateRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2533,7 +2533,7 @@ public DeleteTemplateQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public DeleteTemplateQueryString MasterTimeout(string master_timeout) + public DeleteTemplateRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2548,12 +2548,12 @@ public DeleteTemplateQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// /// - public class DeleteWarmerQueryString : FluentQueryString + public class DeleteWarmerRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public DeleteWarmerQueryString MasterTimeout(string master_timeout) + public DeleteWarmerRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -2568,12 +2568,12 @@ public DeleteWarmerQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-settings.html /// /// - public class IndexExistsQueryString : FluentQueryString + public class IndexExistsRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public IndexExistsQueryString IgnoreUnavailable(bool ignore_unavailable) + public IndexExistsRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2583,7 +2583,7 @@ public IndexExistsQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public IndexExistsQueryString AllowNoIndices(bool allow_no_indices) + public IndexExistsRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2593,7 +2593,7 @@ public IndexExistsQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public IndexExistsQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public IndexExistsRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2603,7 +2603,7 @@ public IndexExistsQueryString ExpandWildcards(ExpandWildcardsOptions expand_wild internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public IndexExistsQueryString Local(bool local) + public IndexExistsRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2618,12 +2618,12 @@ public IndexExistsQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// /// - public class IndicesExistsAliasQueryString : FluentQueryString + public class IndicesExistsAliasRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public IndicesExistsAliasQueryString IgnoreUnavailable(bool ignore_unavailable) + public IndicesExistsAliasRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2633,7 +2633,7 @@ public IndicesExistsAliasQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public IndicesExistsAliasQueryString AllowNoIndices(bool allow_no_indices) + public IndicesExistsAliasRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2643,7 +2643,7 @@ public IndicesExistsAliasQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public IndicesExistsAliasQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public IndicesExistsAliasRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2653,7 +2653,7 @@ public IndicesExistsAliasQueryString ExpandWildcards(ExpandWildcardsOptions expa internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public IndicesExistsAliasQueryString Local(bool local) + public IndicesExistsAliasRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2668,12 +2668,12 @@ public IndicesExistsAliasQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// /// - public class IndicesExistsTemplateQueryString : FluentQueryString + public class IndicesExistsTemplateRequestParameters : FluentRequestParameters { internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public IndicesExistsTemplateQueryString Local(bool local) + public IndicesExistsTemplateRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2688,12 +2688,12 @@ public IndicesExistsTemplateQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-types-exists.html /// /// - public class IndicesExistsTypeQueryString : FluentQueryString + public class IndicesExistsTypeRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public IndicesExistsTypeQueryString IgnoreUnavailable(bool ignore_unavailable) + public IndicesExistsTypeRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2703,7 +2703,7 @@ public IndicesExistsTypeQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public IndicesExistsTypeQueryString AllowNoIndices(bool allow_no_indices) + public IndicesExistsTypeRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2713,7 +2713,7 @@ public IndicesExistsTypeQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public IndicesExistsTypeQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public IndicesExistsTypeRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2723,7 +2723,7 @@ public IndicesExistsTypeQueryString ExpandWildcards(ExpandWildcardsOptions expan internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public IndicesExistsTypeQueryString Local(bool local) + public IndicesExistsTypeRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2738,12 +2738,12 @@ public IndicesExistsTypeQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-flush.html /// /// - public class FlushQueryString : FluentQueryString + public class FlushRequestParameters : FluentRequestParameters { internal bool _force { get; set; } ///Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal) - public FlushQueryString Force(bool force) + public FlushRequestParameters Force(bool force) { this._force = force; this.Add("force", this._force); @@ -2753,7 +2753,7 @@ public FlushQueryString Force(bool force) internal bool _full { get; set; } ///If set to true a new index writer is created and settings that have been changed related to the index writer will be refreshed. Note: if a full flush is required for a setting to take effect this will be part of the settings update process and it not required to be executed by the user. (This setting can be considered as internal) - public FlushQueryString Full(bool full) + public FlushRequestParameters Full(bool full) { this._full = full; this.Add("full", this._full); @@ -2763,7 +2763,7 @@ public FlushQueryString Full(bool full) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public FlushQueryString IgnoreUnavailable(bool ignore_unavailable) + public FlushRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2773,7 +2773,7 @@ public FlushQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public FlushQueryString AllowNoIndices(bool allow_no_indices) + public FlushRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2783,7 +2783,7 @@ public FlushQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public FlushQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public FlushRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2798,12 +2798,12 @@ public FlushQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// /// - public class GetAliasesQueryString : FluentQueryString + public class GetAliasesRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public GetAliasesQueryString IgnoreUnavailable(bool ignore_unavailable) + public GetAliasesRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2813,7 +2813,7 @@ public GetAliasesQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public GetAliasesQueryString AllowNoIndices(bool allow_no_indices) + public GetAliasesRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2823,7 +2823,7 @@ public GetAliasesQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public GetAliasesQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public GetAliasesRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2833,7 +2833,7 @@ public GetAliasesQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildc internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public GetAliasesQueryString Local(bool local) + public GetAliasesRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2848,12 +2848,12 @@ public GetAliasesQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// /// - public class IndicesGetAliasesQueryString : FluentQueryString + public class IndicesGetAliasesRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public IndicesGetAliasesQueryString Timeout(string timeout) + public IndicesGetAliasesRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -2863,7 +2863,7 @@ public IndicesGetAliasesQueryString Timeout(string timeout) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public IndicesGetAliasesQueryString Local(bool local) + public IndicesGetAliasesRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2878,12 +2878,12 @@ public IndicesGetAliasesQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-field-mapping.html /// /// - public class IndicesGetFieldMappingQueryString : FluentQueryString + public class IndicesGetFieldMappingRequestParameters : FluentRequestParameters { internal bool _include_defaults { get; set; } ///Whether the default mapping values should be returned as well - public IndicesGetFieldMappingQueryString IncludeDefaults(bool include_defaults) + public IndicesGetFieldMappingRequestParameters IncludeDefaults(bool include_defaults) { this._include_defaults = include_defaults; this.Add("include_defaults", this._include_defaults); @@ -2893,7 +2893,7 @@ public IndicesGetFieldMappingQueryString IncludeDefaults(bool include_defaults) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public IndicesGetFieldMappingQueryString IgnoreUnavailable(bool ignore_unavailable) + public IndicesGetFieldMappingRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2903,7 +2903,7 @@ public IndicesGetFieldMappingQueryString IgnoreUnavailable(bool ignore_unavailab internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public IndicesGetFieldMappingQueryString AllowNoIndices(bool allow_no_indices) + public IndicesGetFieldMappingRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2913,7 +2913,7 @@ public IndicesGetFieldMappingQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public IndicesGetFieldMappingQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public IndicesGetFieldMappingRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2923,7 +2923,7 @@ public IndicesGetFieldMappingQueryString ExpandWildcards(ExpandWildcardsOptions internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public IndicesGetFieldMappingQueryString Local(bool local) + public IndicesGetFieldMappingRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2938,12 +2938,12 @@ public IndicesGetFieldMappingQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// /// - public class GetMappingQueryString : FluentQueryString + public class GetMappingRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public GetMappingQueryString IgnoreUnavailable(bool ignore_unavailable) + public GetMappingRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -2953,7 +2953,7 @@ public GetMappingQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public GetMappingQueryString AllowNoIndices(bool allow_no_indices) + public GetMappingRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -2963,7 +2963,7 @@ public GetMappingQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public GetMappingQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public GetMappingRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -2973,7 +2973,7 @@ public GetMappingQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildc internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public GetMappingQueryString Local(bool local) + public GetMappingRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -2988,12 +2988,12 @@ public GetMappingQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-get-mapping.html /// /// - public class GetIndexSettingsQueryString : FluentQueryString + public class GetIndexSettingsRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public GetIndexSettingsQueryString IgnoreUnavailable(bool ignore_unavailable) + public GetIndexSettingsRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3003,7 +3003,7 @@ public GetIndexSettingsQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public GetIndexSettingsQueryString AllowNoIndices(bool allow_no_indices) + public GetIndexSettingsRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3013,7 +3013,7 @@ public GetIndexSettingsQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public GetIndexSettingsQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public GetIndexSettingsRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3023,7 +3023,7 @@ public GetIndexSettingsQueryString ExpandWildcards(ExpandWildcardsOptions expand internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public GetIndexSettingsQueryString FlatSettings(bool flat_settings) + public GetIndexSettingsRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -3033,7 +3033,7 @@ public GetIndexSettingsQueryString FlatSettings(bool flat_settings) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public GetIndexSettingsQueryString Local(bool local) + public GetIndexSettingsRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -3048,12 +3048,12 @@ public GetIndexSettingsQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// /// - public class GetTemplateQueryString : FluentQueryString + public class GetTemplateRequestParameters : FluentRequestParameters { internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public GetTemplateQueryString FlatSettings(bool flat_settings) + public GetTemplateRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -3063,7 +3063,7 @@ public GetTemplateQueryString FlatSettings(bool flat_settings) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public GetTemplateQueryString Local(bool local) + public GetTemplateRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -3078,12 +3078,12 @@ public GetTemplateQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// /// - public class GetWarmerQueryString : FluentQueryString + public class GetWarmerRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public GetWarmerQueryString IgnoreUnavailable(bool ignore_unavailable) + public GetWarmerRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3093,7 +3093,7 @@ public GetWarmerQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public GetWarmerQueryString AllowNoIndices(bool allow_no_indices) + public GetWarmerRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3103,7 +3103,7 @@ public GetWarmerQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public GetWarmerQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public GetWarmerRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3113,7 +3113,7 @@ public GetWarmerQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildca internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public GetWarmerQueryString Local(bool local) + public GetWarmerRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -3128,12 +3128,12 @@ public GetWarmerQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-open-close.html /// /// - public class OpenIndexQueryString : FluentQueryString + public class OpenIndexRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public OpenIndexQueryString Timeout(string timeout) + public OpenIndexRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -3143,7 +3143,7 @@ public OpenIndexQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public OpenIndexQueryString MasterTimeout(string master_timeout) + public OpenIndexRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3153,7 +3153,7 @@ public OpenIndexQueryString MasterTimeout(string master_timeout) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public OpenIndexQueryString IgnoreUnavailable(bool ignore_unavailable) + public OpenIndexRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3163,7 +3163,7 @@ public OpenIndexQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public OpenIndexQueryString AllowNoIndices(bool allow_no_indices) + public OpenIndexRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3173,7 +3173,7 @@ public OpenIndexQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public OpenIndexQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public OpenIndexRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3188,12 +3188,12 @@ public OpenIndexQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildca ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-optimize.html /// /// - public class OptimizeQueryString : FluentQueryString + public class OptimizeRequestParameters : FluentRequestParameters { internal bool _flush { get; set; } ///Specify whether the index should be flushed after performing the operation (default: true) - public OptimizeQueryString Flush(bool flush) + public OptimizeRequestParameters Flush(bool flush) { this._flush = flush; this.Add("flush", this._flush); @@ -3203,7 +3203,7 @@ public OptimizeQueryString Flush(bool flush) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public OptimizeQueryString IgnoreUnavailable(bool ignore_unavailable) + public OptimizeRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3213,7 +3213,7 @@ public OptimizeQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public OptimizeQueryString AllowNoIndices(bool allow_no_indices) + public OptimizeRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3223,7 +3223,7 @@ public OptimizeQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public OptimizeQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public OptimizeRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3233,7 +3233,7 @@ public OptimizeQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcar internal int _max_num_segments { get; set; } ///The number of segments the index should be merged into (default: dynamic) - public OptimizeQueryString MaxNumSegments(int max_num_segments) + public OptimizeRequestParameters MaxNumSegments(int max_num_segments) { this._max_num_segments = max_num_segments; this.Add("max_num_segments", this._max_num_segments); @@ -3243,7 +3243,7 @@ public OptimizeQueryString MaxNumSegments(int max_num_segments) internal bool _only_expunge_deletes { get; set; } ///Specify whether the operation should only expunge deleted documents - public OptimizeQueryString OnlyExpungeDeletes(bool only_expunge_deletes) + public OptimizeRequestParameters OnlyExpungeDeletes(bool only_expunge_deletes) { this._only_expunge_deletes = only_expunge_deletes; this.Add("only_expunge_deletes", this._only_expunge_deletes); @@ -3253,7 +3253,7 @@ public OptimizeQueryString OnlyExpungeDeletes(bool only_expunge_deletes) internal string _operation_threading { get; set; } ///TODO: ? - public OptimizeQueryString OperationThreading(string operation_threading) + public OptimizeRequestParameters OperationThreading(string operation_threading) { this._operation_threading = operation_threading; this.Add("operation_threading", this._operation_threading); @@ -3263,7 +3263,7 @@ public OptimizeQueryString OperationThreading(string operation_threading) internal bool _wait_for_merge { get; set; } ///Specify whether the request should block until the merge process is finished (default: true) - public OptimizeQueryString WaitForMerge(bool wait_for_merge) + public OptimizeRequestParameters WaitForMerge(bool wait_for_merge) { this._wait_for_merge = wait_for_merge; this.Add("wait_for_merge", this._wait_for_merge); @@ -3278,12 +3278,12 @@ public OptimizeQueryString WaitForMerge(bool wait_for_merge) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// /// - public class IndicesPutAliasQueryString : FluentQueryString + public class IndicesPutAliasRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit timestamp for the document - public IndicesPutAliasQueryString Timeout(string timeout) + public IndicesPutAliasRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -3293,7 +3293,7 @@ public IndicesPutAliasQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public IndicesPutAliasQueryString MasterTimeout(string master_timeout) + public IndicesPutAliasRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3308,12 +3308,12 @@ public IndicesPutAliasQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-put-mapping.html /// /// - public class PutMappingQueryString : FluentQueryString + public class PutMappingRequestParameters : FluentRequestParameters { internal bool _ignore_conflicts { get; set; } ///Specify whether to ignore conflicts while updating the mapping (default: false) - public PutMappingQueryString IgnoreConflicts(bool ignore_conflicts) + public PutMappingRequestParameters IgnoreConflicts(bool ignore_conflicts) { this._ignore_conflicts = ignore_conflicts; this.Add("ignore_conflicts", this._ignore_conflicts); @@ -3323,7 +3323,7 @@ public PutMappingQueryString IgnoreConflicts(bool ignore_conflicts) internal string _timeout { get; set; } ///Explicit operation timeout - public PutMappingQueryString Timeout(string timeout) + public PutMappingRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -3333,7 +3333,7 @@ public PutMappingQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public PutMappingQueryString MasterTimeout(string master_timeout) + public PutMappingRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3343,7 +3343,7 @@ public PutMappingQueryString MasterTimeout(string master_timeout) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public PutMappingQueryString IgnoreUnavailable(bool ignore_unavailable) + public PutMappingRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3353,7 +3353,7 @@ public PutMappingQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public PutMappingQueryString AllowNoIndices(bool allow_no_indices) + public PutMappingRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3363,7 +3363,7 @@ public PutMappingQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public PutMappingQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public PutMappingRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3378,12 +3378,12 @@ public PutMappingQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildc ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-update-settings.html /// /// - public class UpdateSettingsQueryString : FluentQueryString + public class UpdateSettingsRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public UpdateSettingsQueryString MasterTimeout(string master_timeout) + public UpdateSettingsRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3393,7 +3393,7 @@ public UpdateSettingsQueryString MasterTimeout(string master_timeout) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public UpdateSettingsQueryString IgnoreUnavailable(bool ignore_unavailable) + public UpdateSettingsRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3403,7 +3403,7 @@ public UpdateSettingsQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public UpdateSettingsQueryString AllowNoIndices(bool allow_no_indices) + public UpdateSettingsRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3413,7 +3413,7 @@ public UpdateSettingsQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public UpdateSettingsQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public UpdateSettingsRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3423,7 +3423,7 @@ public UpdateSettingsQueryString ExpandWildcards(ExpandWildcardsOptions expand_w internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public UpdateSettingsQueryString FlatSettings(bool flat_settings) + public UpdateSettingsRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -3438,12 +3438,12 @@ public UpdateSettingsQueryString FlatSettings(bool flat_settings) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-templates.html /// /// - public class PutTemplateQueryString : FluentQueryString + public class PutTemplateRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Explicit operation timeout - public PutTemplateQueryString Timeout(string timeout) + public PutTemplateRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -3453,7 +3453,7 @@ public PutTemplateQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public PutTemplateQueryString MasterTimeout(string master_timeout) + public PutTemplateRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3463,7 +3463,7 @@ public PutTemplateQueryString MasterTimeout(string master_timeout) internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public PutTemplateQueryString FlatSettings(bool flat_settings) + public PutTemplateRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -3478,12 +3478,12 @@ public PutTemplateQueryString FlatSettings(bool flat_settings) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-warmers.html /// /// - public class PutWarmerQueryString : FluentQueryString + public class PutWarmerRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public PutWarmerQueryString MasterTimeout(string master_timeout) + public PutWarmerRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3493,7 +3493,7 @@ public PutWarmerQueryString MasterTimeout(string master_timeout) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) in the search request to warm - public PutWarmerQueryString IgnoreUnavailable(bool ignore_unavailable) + public PutWarmerRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3503,7 +3503,7 @@ public PutWarmerQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices in the search request to warm. (This includes `_all` string or when no indices have been specified) - public PutWarmerQueryString AllowNoIndices(bool allow_no_indices) + public PutWarmerRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3513,7 +3513,7 @@ public PutWarmerQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both, in the search request to warm. - public PutWarmerQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public PutWarmerRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3528,12 +3528,12 @@ public PutWarmerQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildca ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-refresh.html /// /// - public class RefreshQueryString : FluentQueryString + public class RefreshRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public RefreshQueryString IgnoreUnavailable(bool ignore_unavailable) + public RefreshRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3543,7 +3543,7 @@ public RefreshQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public RefreshQueryString AllowNoIndices(bool allow_no_indices) + public RefreshRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3553,7 +3553,7 @@ public RefreshQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public RefreshQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public RefreshRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3563,7 +3563,7 @@ public RefreshQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcard internal bool _force { get; set; } ///Force a refresh even if not required - public RefreshQueryString Force(bool force) + public RefreshRequestParameters Force(bool force) { this._force = force; this.Add("force", this._force); @@ -3573,7 +3573,7 @@ public RefreshQueryString Force(bool force) internal string _operation_threading { get; set; } ///TODO: ? - public RefreshQueryString OperationThreading(string operation_threading) + public RefreshRequestParameters OperationThreading(string operation_threading) { this._operation_threading = operation_threading; this.Add("operation_threading", this._operation_threading); @@ -3588,12 +3588,12 @@ public RefreshQueryString OperationThreading(string operation_threading) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-segments.html /// /// - public class SegmentsQueryString : FluentQueryString + public class SegmentsRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public SegmentsQueryString IgnoreUnavailable(bool ignore_unavailable) + public SegmentsRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3603,7 +3603,7 @@ public SegmentsQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public SegmentsQueryString AllowNoIndices(bool allow_no_indices) + public SegmentsRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3613,7 +3613,7 @@ public SegmentsQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public SegmentsQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public SegmentsRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3623,7 +3623,7 @@ public SegmentsQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcar internal bool _human { get; set; } ///Whether to return time and byte values in human-readable format. - public SegmentsQueryString Human(bool human) + public SegmentsRequestParameters Human(bool human) { this._human = human; this.Add("human", this._human); @@ -3633,7 +3633,7 @@ public SegmentsQueryString Human(bool human) internal string _operation_threading { get; set; } ///TODO: ? - public SegmentsQueryString OperationThreading(string operation_threading) + public SegmentsRequestParameters OperationThreading(string operation_threading) { this._operation_threading = operation_threading; this.Add("operation_threading", this._operation_threading); @@ -3648,12 +3648,12 @@ public SegmentsQueryString OperationThreading(string operation_threading) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-gateway-snapshot.html /// /// - public class SnapshotQueryString : FluentQueryString + public class SnapshotRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public SnapshotQueryString IgnoreUnavailable(bool ignore_unavailable) + public SnapshotRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3663,7 +3663,7 @@ public SnapshotQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public SnapshotQueryString AllowNoIndices(bool allow_no_indices) + public SnapshotRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3673,7 +3673,7 @@ public SnapshotQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public SnapshotQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public SnapshotRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3688,12 +3688,12 @@ public SnapshotQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcar ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-stats.html /// /// - public class IndicesStatsQueryString : FluentQueryString + public class IndicesStatsRequestParameters : FluentRequestParameters { internal IEnumerable _completion_fields { get; set; } ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) - public IndicesStatsQueryString CompletionFields(params string[] completion_fields) + public IndicesStatsRequestParameters CompletionFields(params string[] completion_fields) { this._completion_fields = completion_fields.Select(f=>(object)f); this.Add("completion_fields", this._completion_fields); @@ -3703,7 +3703,7 @@ public IndicesStatsQueryString CompletionFields(params string[] completion_field internal IEnumerable _fielddata_fields { get; set; } ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) - public IndicesStatsQueryString FielddataFields(params string[] fielddata_fields) + public IndicesStatsRequestParameters FielddataFields(params string[] fielddata_fields) { this._fielddata_fields = fielddata_fields.Select(f=>(object)f); this.Add("fielddata_fields", this._fielddata_fields); @@ -3713,7 +3713,7 @@ public IndicesStatsQueryString FielddataFields(params string[] fielddata_fields) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) - public IndicesStatsQueryString Fields(params string[] fields) + public IndicesStatsRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -3723,7 +3723,7 @@ public IndicesStatsQueryString Fields(params string[] fields) internal bool _groups { get; set; } ///A comma-separated list of search groups for `search` index metric - public IndicesStatsQueryString Groups(bool groups) + public IndicesStatsRequestParameters Groups(bool groups) { this._groups = groups; this.Add("groups", this._groups); @@ -3733,7 +3733,7 @@ public IndicesStatsQueryString Groups(bool groups) internal bool _human { get; set; } ///Whether to return time and byte values in human-readable format. - public IndicesStatsQueryString Human(bool human) + public IndicesStatsRequestParameters Human(bool human) { this._human = human; this.Add("human", this._human); @@ -3743,7 +3743,7 @@ public IndicesStatsQueryString Human(bool human) internal LevelOptions _level { get; set; } ///Return stats aggregated at cluster, index or shard level - public IndicesStatsQueryString Level(LevelOptions level) + public IndicesStatsRequestParameters Level(LevelOptions level) { this._level = level; this.Add("level", this._level); @@ -3753,7 +3753,7 @@ public IndicesStatsQueryString Level(LevelOptions level) internal string[] _types { get; set; } ///A comma-separated list of document types for the `indexing` index metric - public IndicesStatsQueryString Types(params string[] types) + public IndicesStatsRequestParameters Types(params string[] types) { this._types = types; this.Add("types", this._types); @@ -3768,12 +3768,12 @@ public IndicesStatsQueryString Types(params string[] types) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-status.html /// /// - public class IndicesStatusQueryString : FluentQueryString + public class IndicesStatusRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public IndicesStatusQueryString IgnoreUnavailable(bool ignore_unavailable) + public IndicesStatusRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3783,7 +3783,7 @@ public IndicesStatusQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public IndicesStatusQueryString AllowNoIndices(bool allow_no_indices) + public IndicesStatusRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3793,7 +3793,7 @@ public IndicesStatusQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public IndicesStatusQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public IndicesStatusRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3803,7 +3803,7 @@ public IndicesStatusQueryString ExpandWildcards(ExpandWildcardsOptions expand_wi internal bool _human { get; set; } ///Whether to return time and byte values in human-readable format. - public IndicesStatusQueryString Human(bool human) + public IndicesStatusRequestParameters Human(bool human) { this._human = human; this.Add("human", this._human); @@ -3813,7 +3813,7 @@ public IndicesStatusQueryString Human(bool human) internal string _operation_threading { get; set; } ///TODO: ? - public IndicesStatusQueryString OperationThreading(string operation_threading) + public IndicesStatusRequestParameters OperationThreading(string operation_threading) { this._operation_threading = operation_threading; this.Add("operation_threading", this._operation_threading); @@ -3823,7 +3823,7 @@ public IndicesStatusQueryString OperationThreading(string operation_threading) internal bool _recovery { get; set; } ///Return information about shard recovery - public IndicesStatusQueryString Recovery(bool recovery) + public IndicesStatusRequestParameters Recovery(bool recovery) { this._recovery = recovery; this.Add("recovery", this._recovery); @@ -3833,7 +3833,7 @@ public IndicesStatusQueryString Recovery(bool recovery) internal bool _snapshot { get; set; } ///TODO: ? - public IndicesStatusQueryString Snapshot(bool snapshot) + public IndicesStatusRequestParameters Snapshot(bool snapshot) { this._snapshot = snapshot; this.Add("snapshot", this._snapshot); @@ -3848,12 +3848,12 @@ public IndicesStatusQueryString Snapshot(bool snapshot) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/indices-aliases.html /// /// - public class AliasQueryString : FluentQueryString + public class AliasRequestParameters : FluentRequestParameters { internal string _timeout { get; set; } ///Request timeout - public AliasQueryString Timeout(string timeout) + public AliasRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -3863,7 +3863,7 @@ public AliasQueryString Timeout(string timeout) internal string _master_timeout { get; set; } ///Specify timeout for connection to master - public AliasQueryString MasterTimeout(string master_timeout) + public AliasRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -3878,12 +3878,12 @@ public AliasQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-validate.html /// /// - public class ValidateQueryQueryString : FluentQueryString + public class ValidateQueryRequestParameters : FluentRequestParameters { internal bool _explain { get; set; } ///Return detailed information about the error - public ValidateQueryQueryString Explain(bool explain) + public ValidateQueryRequestParameters Explain(bool explain) { this._explain = explain; this.Add("explain", this._explain); @@ -3893,7 +3893,7 @@ public ValidateQueryQueryString Explain(bool explain) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public ValidateQueryQueryString IgnoreUnavailable(bool ignore_unavailable) + public ValidateQueryRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -3903,7 +3903,7 @@ public ValidateQueryQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public ValidateQueryQueryString AllowNoIndices(bool allow_no_indices) + public ValidateQueryRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -3913,7 +3913,7 @@ public ValidateQueryQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public ValidateQueryQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public ValidateQueryRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -3923,7 +3923,7 @@ public ValidateQueryQueryString ExpandWildcards(ExpandWildcardsOptions expand_wi internal string _operation_threading { get; set; } ///TODO: ? - public ValidateQueryQueryString OperationThreading(string operation_threading) + public ValidateQueryRequestParameters OperationThreading(string operation_threading) { this._operation_threading = operation_threading; this.Add("operation_threading", this._operation_threading); @@ -3933,7 +3933,7 @@ public ValidateQueryQueryString OperationThreading(string operation_threading) internal string _source { get; set; } ///The URL-encoded query definition (instead of using the request body) - public ValidateQueryQueryString Source(string source) + public ValidateQueryRequestParameters Source(string source) { this._source = source; this.Add("source", this._source); @@ -3943,7 +3943,7 @@ public ValidateQueryQueryString Source(string source) internal string _q { get; set; } ///Query in the Lucene query string syntax - public ValidateQueryQueryString Q(string q) + public ValidateQueryRequestParameters Q(string q) { this._q = q; this.Add("q", this._q); @@ -3958,7 +3958,7 @@ public ValidateQueryQueryString Q(string q) ///http://www.elasticsearch.org/guide/ /// /// - public class InfoQueryString : FluentQueryString + public class InfoRequestParameters : FluentRequestParameters { } @@ -3968,12 +3968,12 @@ public class InfoQueryString : FluentQueryString ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-get.html /// /// - public class MultiGetQueryString : FluentQueryString + public class MultiGetRequestParameters : FluentRequestParameters { internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to return in the response - public MultiGetQueryString Fields(params string[] fields) + public MultiGetRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -3983,7 +3983,7 @@ public MultiGetQueryString Fields(params string[] fields) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public MultiGetQueryString Preference(string preference) + public MultiGetRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -3993,7 +3993,7 @@ public MultiGetQueryString Preference(string preference) internal bool _realtime { get; set; } ///Specify whether to perform the operation in realtime or search mode - public MultiGetQueryString Realtime(bool realtime) + public MultiGetRequestParameters Realtime(bool realtime) { this._realtime = realtime; this.Add("realtime", this._realtime); @@ -4003,7 +4003,7 @@ public MultiGetQueryString Realtime(bool realtime) internal bool _refresh { get; set; } ///Refresh the shard containing the document before performing the operation - public MultiGetQueryString Refresh(bool refresh) + public MultiGetRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -4013,7 +4013,7 @@ public MultiGetQueryString Refresh(bool refresh) internal string[] __source { get; set; } ///True or false to return the _source field or not, or a list of fields to return - public MultiGetQueryString Source(params string[] _source) + public MultiGetRequestParameters Source(params string[] _source) { this.__source = _source; this.Add("_source", this.__source); @@ -4023,7 +4023,7 @@ public MultiGetQueryString Source(params string[] _source) internal IEnumerable __source_exclude { get; set; } ///A list of fields to exclude from the returned _source field - public MultiGetQueryString SourceExclude(params string[] _source_exclude) + public MultiGetRequestParameters SourceExclude(params string[] _source_exclude) { this.__source_exclude = _source_exclude.Select(f=>(object)f); this.Add("_source_exclude", this.__source_exclude); @@ -4033,7 +4033,7 @@ public MultiGetQueryString SourceExclude(params string[] _source_exclude) 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) + public MultiGetRequestParameters SourceInclude(params string[] _source_include) { this.__source_include = _source_include.Select(f=>(object)f); this.Add("_source_include", this.__source_include); @@ -4048,12 +4048,12 @@ public MultiGetQueryString SourceInclude(params string[] _source_include) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-more-like-this.html /// /// - public class MoreLikeThisQueryString : FluentQueryString + public class MoreLikeThisRequestParameters : FluentRequestParameters { internal double _boost_terms { get; set; } ///The boost factor - public MoreLikeThisQueryString BoostTerms(double boost_terms) + public MoreLikeThisRequestParameters BoostTerms(double boost_terms) { this._boost_terms = boost_terms; this.Add("boost_terms", this._boost_terms); @@ -4063,7 +4063,7 @@ public MoreLikeThisQueryString BoostTerms(double boost_terms) internal int _max_doc_freq { get; set; } ///The word occurrence frequency as count: words with higher occurrence in the corpus will be ignored - public MoreLikeThisQueryString MaxDocFreq(int max_doc_freq) + public MoreLikeThisRequestParameters MaxDocFreq(int max_doc_freq) { this._max_doc_freq = max_doc_freq; this.Add("max_doc_freq", this._max_doc_freq); @@ -4073,7 +4073,7 @@ public MoreLikeThisQueryString MaxDocFreq(int max_doc_freq) internal int _max_query_terms { get; set; } ///The maximum query terms to be included in the generated query - public MoreLikeThisQueryString MaxQueryTerms(int max_query_terms) + public MoreLikeThisRequestParameters MaxQueryTerms(int max_query_terms) { this._max_query_terms = max_query_terms; this.Add("max_query_terms", this._max_query_terms); @@ -4083,7 +4083,7 @@ public MoreLikeThisQueryString MaxQueryTerms(int max_query_terms) internal int _max_word_length { get; set; } ///The minimum length of the word: longer words will be ignored - public MoreLikeThisQueryString MaxWordLength(int max_word_length) + public MoreLikeThisRequestParameters MaxWordLength(int max_word_length) { this._max_word_length = max_word_length; this.Add("max_word_length", this._max_word_length); @@ -4093,7 +4093,7 @@ public MoreLikeThisQueryString MaxWordLength(int max_word_length) internal int _min_doc_freq { get; set; } ///The word occurrence frequency as count: words with lower occurrence in the corpus will be ignored - public MoreLikeThisQueryString MinDocFreq(int min_doc_freq) + public MoreLikeThisRequestParameters MinDocFreq(int min_doc_freq) { this._min_doc_freq = min_doc_freq; this.Add("min_doc_freq", this._min_doc_freq); @@ -4103,7 +4103,7 @@ public MoreLikeThisQueryString MinDocFreq(int min_doc_freq) internal int _min_term_freq { get; set; } ///The term frequency as percent: terms with lower occurence in the source document will be ignored - public MoreLikeThisQueryString MinTermFreq(int min_term_freq) + public MoreLikeThisRequestParameters MinTermFreq(int min_term_freq) { this._min_term_freq = min_term_freq; this.Add("min_term_freq", this._min_term_freq); @@ -4113,7 +4113,7 @@ public MoreLikeThisQueryString MinTermFreq(int min_term_freq) internal int _min_word_length { get; set; } ///The minimum length of the word: shorter words will be ignored - public MoreLikeThisQueryString MinWordLength(int min_word_length) + public MoreLikeThisRequestParameters MinWordLength(int min_word_length) { this._min_word_length = min_word_length; this.Add("min_word_length", this._min_word_length); @@ -4123,7 +4123,7 @@ public MoreLikeThisQueryString MinWordLength(int min_word_length) internal IEnumerable _mlt_fields { get; set; } ///Specific fields to perform the query against - public MoreLikeThisQueryString MltFields(params string[] mlt_fields) + public MoreLikeThisRequestParameters MltFields(params string[] mlt_fields) { this._mlt_fields = mlt_fields.Select(f=>(object)f); this.Add("mlt_fields", this._mlt_fields); @@ -4133,7 +4133,7 @@ public MoreLikeThisQueryString MltFields(params string[] mlt_fields) internal double _percent_terms_to_match { get; set; } ///How many terms have to match in order to consider the document a match (default: 0.3) - public MoreLikeThisQueryString PercentTermsToMatch(double percent_terms_to_match) + public MoreLikeThisRequestParameters PercentTermsToMatch(double percent_terms_to_match) { this._percent_terms_to_match = percent_terms_to_match; this.Add("percent_terms_to_match", this._percent_terms_to_match); @@ -4143,7 +4143,7 @@ public MoreLikeThisQueryString PercentTermsToMatch(double percent_terms_to_match internal string _routing { get; set; } ///Specific routing value - public MoreLikeThisQueryString Routing(string routing) + public MoreLikeThisRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -4153,7 +4153,7 @@ public MoreLikeThisQueryString Routing(string routing) internal int _search_from { get; set; } ///The offset from which to return results - public MoreLikeThisQueryString SearchFrom(int search_from) + public MoreLikeThisRequestParameters SearchFrom(int search_from) { this._search_from = search_from; this.Add("search_from", this._search_from); @@ -4163,7 +4163,7 @@ public MoreLikeThisQueryString SearchFrom(int search_from) internal string[] _search_indices { get; set; } ///A comma-separated list of indices to perform the query against (default: the index containing the document) - public MoreLikeThisQueryString SearchIndices(params string[] search_indices) + public MoreLikeThisRequestParameters SearchIndices(params string[] search_indices) { this._search_indices = search_indices; this.Add("search_indices", this._search_indices); @@ -4173,7 +4173,7 @@ public MoreLikeThisQueryString SearchIndices(params string[] search_indices) internal string _search_query_hint { get; set; } ///The search query hint - public MoreLikeThisQueryString SearchQueryHint(string search_query_hint) + public MoreLikeThisRequestParameters SearchQueryHint(string search_query_hint) { this._search_query_hint = search_query_hint; this.Add("search_query_hint", this._search_query_hint); @@ -4183,7 +4183,7 @@ public MoreLikeThisQueryString SearchQueryHint(string search_query_hint) internal string _search_scroll { get; set; } ///A scroll search request definition - public MoreLikeThisQueryString SearchScroll(string search_scroll) + public MoreLikeThisRequestParameters SearchScroll(string search_scroll) { this._search_scroll = search_scroll; this.Add("search_scroll", this._search_scroll); @@ -4193,7 +4193,7 @@ public MoreLikeThisQueryString SearchScroll(string search_scroll) internal int _search_size { get; set; } ///The number of documents to return (default: 10) - public MoreLikeThisQueryString SearchSize(int search_size) + public MoreLikeThisRequestParameters SearchSize(int search_size) { this._search_size = search_size; this.Add("search_size", this._search_size); @@ -4203,7 +4203,7 @@ public MoreLikeThisQueryString SearchSize(int search_size) internal string _search_source { get; set; } ///A specific search request definition (instead of using the request body) - public MoreLikeThisQueryString SearchSource(string search_source) + public MoreLikeThisRequestParameters SearchSource(string search_source) { this._search_source = search_source; this.Add("search_source", this._search_source); @@ -4213,7 +4213,7 @@ public MoreLikeThisQueryString SearchSource(string search_source) internal string _search_type { get; set; } ///Specific search type (eg. `dfs_then_fetch`, `count`, etc) - public MoreLikeThisQueryString SearchType(string search_type) + public MoreLikeThisRequestParameters SearchType(string search_type) { this._search_type = search_type; this.Add("search_type", this._search_type); @@ -4223,7 +4223,7 @@ public MoreLikeThisQueryString SearchType(string search_type) internal string[] _search_types { get; set; } ///A comma-separated list of types to perform the query against (default: the same type as the document) - public MoreLikeThisQueryString SearchTypes(params string[] search_types) + public MoreLikeThisRequestParameters SearchTypes(params string[] search_types) { this._search_types = search_types; this.Add("search_types", this._search_types); @@ -4233,7 +4233,7 @@ public MoreLikeThisQueryString SearchTypes(params string[] search_types) internal string[] _stop_words { get; set; } ///A list of stop words to be ignored - public MoreLikeThisQueryString StopWords(params string[] stop_words) + public MoreLikeThisRequestParameters StopWords(params string[] stop_words) { this._stop_words = stop_words; this.Add("stop_words", this._stop_words); @@ -4248,12 +4248,12 @@ public MoreLikeThisQueryString StopWords(params string[] stop_words) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// /// - public class MpercolateQueryString : FluentQueryString + public class MpercolateRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public MpercolateQueryString IgnoreUnavailable(bool ignore_unavailable) + public MpercolateRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -4263,7 +4263,7 @@ public MpercolateQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public MpercolateQueryString AllowNoIndices(bool allow_no_indices) + public MpercolateRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -4273,7 +4273,7 @@ public MpercolateQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public MpercolateQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public MpercolateRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -4288,12 +4288,12 @@ public MpercolateQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildc ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-multi-search.html /// /// - public class MultiSearchQueryString : FluentQueryString + public class MultiSearchRequestParameters : FluentRequestParameters { internal SearchTypeOptions _search_type { get; set; } ///Search operation type - public MultiSearchQueryString SearchType(SearchTypeOptions search_type) + public MultiSearchRequestParameters SearchType(SearchTypeOptions search_type) { this._search_type = search_type; this.Add("search_type", this._search_type); @@ -4308,12 +4308,12 @@ public MultiSearchQueryString SearchType(SearchTypeOptions search_type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-multi-termvectors.html /// /// - public class MtermvectorsQueryString : FluentQueryString + public class MtermvectorsRequestParameters : FluentRequestParameters { internal string[] _ids { get; set; } ///A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body - public MtermvectorsQueryString Ids(params string[] ids) + public MtermvectorsRequestParameters Ids(params string[] ids) { this._ids = ids; this.Add("ids", this._ids); @@ -4323,7 +4323,7 @@ public MtermvectorsQueryString Ids(params string[] ids) internal bool _term_statistics { get; set; } ///Specifies if total term frequency and document frequency should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString TermStatistics(bool term_statistics) + public MtermvectorsRequestParameters TermStatistics(bool term_statistics) { this._term_statistics = term_statistics; this.Add("term_statistics", this._term_statistics); @@ -4333,7 +4333,7 @@ public MtermvectorsQueryString TermStatistics(bool term_statistics) internal bool _field_statistics { get; set; } ///Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString FieldStatistics(bool field_statistics) + public MtermvectorsRequestParameters FieldStatistics(bool field_statistics) { this._field_statistics = field_statistics; this.Add("field_statistics", this._field_statistics); @@ -4343,7 +4343,7 @@ public MtermvectorsQueryString FieldStatistics(bool field_statistics) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Fields(params string[] fields) + public MtermvectorsRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -4353,7 +4353,7 @@ public MtermvectorsQueryString Fields(params string[] fields) internal bool _offsets { get; set; } ///Specifies if term offsets should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Offsets(bool offsets) + public MtermvectorsRequestParameters Offsets(bool offsets) { this._offsets = offsets; this.Add("offsets", this._offsets); @@ -4363,7 +4363,7 @@ public MtermvectorsQueryString Offsets(bool offsets) internal bool _positions { get; set; } ///Specifies if term positions should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Positions(bool positions) + public MtermvectorsRequestParameters Positions(bool positions) { this._positions = positions; this.Add("positions", this._positions); @@ -4373,7 +4373,7 @@ public MtermvectorsQueryString Positions(bool positions) internal bool _payloads { get; set; } ///Specifies if term payloads should be returned. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Payloads(bool payloads) + public MtermvectorsRequestParameters Payloads(bool payloads) { this._payloads = payloads; this.Add("payloads", this._payloads); @@ -4383,7 +4383,7 @@ public MtermvectorsQueryString Payloads(bool payloads) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) .Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Preference(string preference) + public MtermvectorsRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -4393,7 +4393,7 @@ public MtermvectorsQueryString Preference(string preference) internal string _routing { get; set; } ///Specific routing value. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Routing(string routing) + public MtermvectorsRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -4403,7 +4403,7 @@ public MtermvectorsQueryString Routing(string routing) internal string _parent { get; set; } ///Parent id of documents. Applies to all returned documents unless otherwise specified in body "params" or "docs". - public MtermvectorsQueryString Parent(string parent) + public MtermvectorsRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -4418,12 +4418,12 @@ public MtermvectorsQueryString Parent(string parent) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-hot-threads.html /// /// - public class NodesHotThreadsQueryString : FluentQueryString + public class NodesHotThreadsRequestParameters : FluentRequestParameters { internal string _interval { get; set; } ///The interval for the second sampling of threads - public NodesHotThreadsQueryString Interval(string interval) + public NodesHotThreadsRequestParameters Interval(string interval) { this._interval = interval; this.Add("interval", this._interval); @@ -4433,7 +4433,7 @@ public NodesHotThreadsQueryString Interval(string interval) internal int _snapshots { get; set; } ///Number of samples of thread stacktrace (default: 10) - public NodesHotThreadsQueryString Snapshots(int snapshots) + public NodesHotThreadsRequestParameters Snapshots(int snapshots) { this._snapshots = snapshots; this.Add("snapshots", this._snapshots); @@ -4443,7 +4443,7 @@ public NodesHotThreadsQueryString Snapshots(int snapshots) internal int _threads { get; set; } ///Specify the number of threads to provide information for (default: 3) - public NodesHotThreadsQueryString Threads(int threads) + public NodesHotThreadsRequestParameters Threads(int threads) { this._threads = threads; this.Add("threads", this._threads); @@ -4453,7 +4453,7 @@ public NodesHotThreadsQueryString Threads(int threads) internal TypeOptions _type { get; set; } ///The type to sample (default: cpu) - public NodesHotThreadsQueryString Type(TypeOptions type) + public NodesHotThreadsRequestParameters Type(TypeOptions type) { this._type = type; this.Add("type", this._type); @@ -4468,12 +4468,12 @@ public NodesHotThreadsQueryString Type(TypeOptions type) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-info.html /// /// - public class NodesInfoQueryString : FluentQueryString + public class NodesInfoRequestParameters : FluentRequestParameters { internal bool _flat_settings { get; set; } ///Return settings in flat format (default: false) - public NodesInfoQueryString FlatSettings(bool flat_settings) + public NodesInfoRequestParameters FlatSettings(bool flat_settings) { this._flat_settings = flat_settings; this.Add("flat_settings", this._flat_settings); @@ -4483,7 +4483,7 @@ public NodesInfoQueryString FlatSettings(bool flat_settings) internal bool _human { get; set; } ///Whether to return time and byte values in human-readable format. - public NodesInfoQueryString Human(bool human) + public NodesInfoRequestParameters Human(bool human) { this._human = human; this.Add("human", this._human); @@ -4498,12 +4498,12 @@ public NodesInfoQueryString Human(bool human) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-shutdown.html /// /// - public class NodesShutdownQueryString : FluentQueryString + public class NodesShutdownRequestParameters : FluentRequestParameters { internal string _delay { get; set; } ///Set the delay for the operation (default: 1s) - public NodesShutdownQueryString Delay(string delay) + public NodesShutdownRequestParameters Delay(string delay) { this._delay = delay; this.Add("delay", this._delay); @@ -4513,7 +4513,7 @@ public NodesShutdownQueryString Delay(string delay) internal bool _exit { get; set; } ///Exit the JVM as well (default: true) - public NodesShutdownQueryString Exit(bool exit) + public NodesShutdownRequestParameters Exit(bool exit) { this._exit = exit; this.Add("exit", this._exit); @@ -4528,12 +4528,12 @@ public NodesShutdownQueryString Exit(bool exit) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-nodes-stats.html /// /// - public class NodesStatsQueryString : FluentQueryString + public class NodesStatsRequestParameters : FluentRequestParameters { internal IEnumerable _completion_fields { get; set; } ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) - public NodesStatsQueryString CompletionFields(params string[] completion_fields) + public NodesStatsRequestParameters CompletionFields(params string[] completion_fields) { this._completion_fields = completion_fields.Select(f=>(object)f); this.Add("completion_fields", this._completion_fields); @@ -4543,7 +4543,7 @@ public NodesStatsQueryString CompletionFields(params string[] completion_fields) internal IEnumerable _fielddata_fields { get; set; } ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) - public NodesStatsQueryString FielddataFields(params string[] fielddata_fields) + public NodesStatsRequestParameters FielddataFields(params string[] fielddata_fields) { this._fielddata_fields = fielddata_fields.Select(f=>(object)f); this.Add("fielddata_fields", this._fielddata_fields); @@ -4553,7 +4553,7 @@ public NodesStatsQueryString FielddataFields(params string[] fielddata_fields) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) - public NodesStatsQueryString Fields(params string[] fields) + public NodesStatsRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -4563,7 +4563,7 @@ public NodesStatsQueryString Fields(params string[] fields) internal bool _groups { get; set; } ///A comma-separated list of search groups for `search` index metric - public NodesStatsQueryString Groups(bool groups) + public NodesStatsRequestParameters Groups(bool groups) { this._groups = groups; this.Add("groups", this._groups); @@ -4573,7 +4573,7 @@ public NodesStatsQueryString Groups(bool groups) internal bool _human { get; set; } ///Whether to return time and byte values in human-readable format. - public NodesStatsQueryString Human(bool human) + public NodesStatsRequestParameters Human(bool human) { this._human = human; this.Add("human", this._human); @@ -4583,7 +4583,7 @@ public NodesStatsQueryString Human(bool human) internal LevelOptions _level { get; set; } ///Return indices stats aggregated at node, index or shard level - public NodesStatsQueryString Level(LevelOptions level) + public NodesStatsRequestParameters Level(LevelOptions level) { this._level = level; this.Add("level", this._level); @@ -4593,7 +4593,7 @@ public NodesStatsQueryString Level(LevelOptions level) internal string[] _types { get; set; } ///A comma-separated list of document types for the `indexing` index metric - public NodesStatsQueryString Types(params string[] types) + public NodesStatsRequestParameters Types(params string[] types) { this._types = types; this.Add("types", this._types); @@ -4608,12 +4608,12 @@ public NodesStatsQueryString Types(params string[] types) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-percolate.html /// /// - public class PercolateQueryString : FluentQueryString + public class PercolateRequestParameters : FluentRequestParameters { internal string[] _routing { get; set; } ///A comma-separated list of specific routing values - public PercolateQueryString Routing(params string[] routing) + public PercolateRequestParameters Routing(params string[] routing) { this._routing = routing; this.Add("routing", this._routing); @@ -4623,7 +4623,7 @@ public PercolateQueryString Routing(params string[] routing) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public PercolateQueryString Preference(string preference) + public PercolateRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -4633,7 +4633,7 @@ public PercolateQueryString Preference(string preference) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public PercolateQueryString IgnoreUnavailable(bool ignore_unavailable) + public PercolateRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -4643,7 +4643,7 @@ public PercolateQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public PercolateQueryString AllowNoIndices(bool allow_no_indices) + public PercolateRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -4653,7 +4653,7 @@ public PercolateQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public PercolateQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public PercolateRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -4663,7 +4663,7 @@ public PercolateQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildca internal string _percolate_index { get; set; } ///The index to percolate the document into. Defaults to index. - public PercolateQueryString PercolateIndex(string percolate_index) + public PercolateRequestParameters PercolateIndex(string percolate_index) { this._percolate_index = percolate_index; this.Add("percolate_index", this._percolate_index); @@ -4673,7 +4673,7 @@ public PercolateQueryString PercolateIndex(string percolate_index) internal string _percolate_type { get; set; } ///The type to percolate document into. Defaults to type. - public PercolateQueryString PercolateType(string percolate_type) + public PercolateRequestParameters PercolateType(string percolate_type) { this._percolate_type = percolate_type; this.Add("percolate_type", this._percolate_type); @@ -4683,7 +4683,7 @@ public PercolateQueryString PercolateType(string percolate_type) internal int _version { get; set; } ///Explicit version number for concurrency control - public PercolateQueryString Version(int version) + public PercolateRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -4693,7 +4693,7 @@ public PercolateQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public PercolateQueryString VersionType(VersionTypeOptions version_type) + public PercolateRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); @@ -4708,7 +4708,7 @@ public PercolateQueryString VersionType(VersionTypeOptions version_type) ///http://www.elasticsearch.org/guide/ /// /// - public class PingQueryString : FluentQueryString + public class PingRequestParameters : FluentRequestParameters { } @@ -4718,12 +4718,12 @@ public class PingQueryString : FluentQueryString ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// /// - public class ScrollQueryString : FluentQueryString + public class ScrollRequestParameters : FluentRequestParameters { internal string _scroll { get; set; } ///Specify how long a consistent view of the index should be maintained for scrolled search - public ScrollQueryString Scroll(string scroll) + public ScrollRequestParameters Scroll(string scroll) { this._scroll = scroll; this.Add("scroll", this._scroll); @@ -4733,7 +4733,7 @@ public ScrollQueryString Scroll(string scroll) internal string _scroll_id { get; set; } ///The scroll ID for scrolled search - public ScrollQueryString ScrollId(string scroll_id) + public ScrollRequestParameters ScrollId(string scroll_id) { this._scroll_id = scroll_id; this.Add("scroll_id", this._scroll_id); @@ -4748,12 +4748,12 @@ public ScrollQueryString ScrollId(string scroll_id) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// /// - public class SearchQueryString : FluentQueryString + public class SearchRequestParameters : FluentRequestParameters { internal string _analyzer { get; set; } ///The analyzer to use for the query string - public SearchQueryString Analyzer(string analyzer) + public SearchRequestParameters Analyzer(string analyzer) { this._analyzer = analyzer; this.Add("analyzer", this._analyzer); @@ -4763,7 +4763,7 @@ public SearchQueryString Analyzer(string analyzer) internal bool _analyze_wildcard { get; set; } ///Specify whether wildcard and prefix queries should be analyzed (default: false) - public SearchQueryString AnalyzeWildcard(bool analyze_wildcard) + public SearchRequestParameters AnalyzeWildcard(bool analyze_wildcard) { this._analyze_wildcard = analyze_wildcard; this.Add("analyze_wildcard", this._analyze_wildcard); @@ -4773,7 +4773,7 @@ public SearchQueryString AnalyzeWildcard(bool analyze_wildcard) internal DefaultOperatorOptions _default_operator { get; set; } ///The default operator for query string query (AND or OR) - public SearchQueryString DefaultOperator(DefaultOperatorOptions default_operator) + public SearchRequestParameters DefaultOperator(DefaultOperatorOptions default_operator) { this._default_operator = default_operator; this.Add("default_operator", this._default_operator); @@ -4783,7 +4783,7 @@ public SearchQueryString DefaultOperator(DefaultOperatorOptions default_operator internal string _df { get; set; } ///The field to use as default where no field prefix is given in the query string - public SearchQueryString Df(string df) + public SearchRequestParameters Df(string df) { this._df = df; this.Add("df", this._df); @@ -4793,7 +4793,7 @@ public SearchQueryString Df(string df) internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public SearchQueryString IgnoreUnavailable(bool ignore_unavailable) + public SearchRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -4803,7 +4803,7 @@ public SearchQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public SearchQueryString AllowNoIndices(bool allow_no_indices) + public SearchRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -4813,7 +4813,7 @@ public SearchQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public SearchQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public SearchRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -4823,7 +4823,7 @@ public SearchQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards internal string[] _indices_boost { get; set; } ///Comma-separated list of index boosts - public SearchQueryString IndicesBoost(params string[] indices_boost) + public SearchRequestParameters IndicesBoost(params string[] indices_boost) { this._indices_boost = indices_boost; this.Add("indices_boost", this._indices_boost); @@ -4833,7 +4833,7 @@ public SearchQueryString IndicesBoost(params string[] indices_boost) internal bool _lenient { get; set; } ///Specify whether format-based query failures (such as providing text to a numeric field) should be ignored - public SearchQueryString Lenient(bool lenient) + public SearchRequestParameters Lenient(bool lenient) { this._lenient = lenient; this.Add("lenient", this._lenient); @@ -4843,7 +4843,7 @@ public SearchQueryString Lenient(bool lenient) internal bool _lowercase_expanded_terms { get; set; } ///Specify whether query terms should be lowercased - public SearchQueryString LowercaseExpandedTerms(bool lowercase_expanded_terms) + public SearchRequestParameters LowercaseExpandedTerms(bool lowercase_expanded_terms) { this._lowercase_expanded_terms = lowercase_expanded_terms; this.Add("lowercase_expanded_terms", this._lowercase_expanded_terms); @@ -4853,7 +4853,7 @@ public SearchQueryString LowercaseExpandedTerms(bool lowercase_expanded_terms) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public SearchQueryString Preference(string preference) + public SearchRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -4863,7 +4863,7 @@ public SearchQueryString Preference(string preference) internal string[] _routing { get; set; } ///A comma-separated list of specific routing values - public SearchQueryString Routing(params string[] routing) + public SearchRequestParameters Routing(params string[] routing) { this._routing = routing; this.Add("routing", this._routing); @@ -4873,7 +4873,7 @@ public SearchQueryString Routing(params string[] routing) internal string _scroll { get; set; } ///Specify how long a consistent view of the index should be maintained for scrolled search - public SearchQueryString Scroll(string scroll) + public SearchRequestParameters Scroll(string scroll) { this._scroll = scroll; this.Add("scroll", this._scroll); @@ -4883,7 +4883,7 @@ public SearchQueryString Scroll(string scroll) internal SearchTypeOptions _search_type { get; set; } ///Search operation type - public SearchQueryString SearchType(SearchTypeOptions search_type) + public SearchRequestParameters SearchType(SearchTypeOptions search_type) { this._search_type = search_type; this.Add("search_type", this._search_type); @@ -4893,7 +4893,7 @@ public SearchQueryString SearchType(SearchTypeOptions search_type) internal string _source { get; set; } ///The URL-encoded request definition using the Query DSL (instead of using request body) - public SearchQueryString Source(string source) + public SearchRequestParameters Source(string source) { this._source = source; this.Add("source", this._source); @@ -4903,7 +4903,7 @@ public SearchQueryString Source(string source) internal string[] _stats { get; set; } ///Specific 'tag' of the request for logging and statistical purposes - public SearchQueryString Stats(params string[] stats) + public SearchRequestParameters Stats(params string[] stats) { this._stats = stats; this.Add("stats", this._stats); @@ -4913,7 +4913,7 @@ public SearchQueryString Stats(params string[] stats) internal object _suggest_field { get; set; } ///Specify which field to use for suggestions - public SearchQueryString SuggestField(string suggest_field) + public SearchRequestParameters SuggestField(string suggest_field) { this._suggest_field = suggest_field; this.Add("suggest_field", this._suggest_field); @@ -4923,7 +4923,7 @@ public SearchQueryString SuggestField(string suggest_field) internal SuggestModeOptions _suggest_mode { get; set; } ///Specify suggest mode - public SearchQueryString SuggestMode(SuggestModeOptions suggest_mode) + public SearchRequestParameters SuggestMode(SuggestModeOptions suggest_mode) { this._suggest_mode = suggest_mode; this.Add("suggest_mode", this._suggest_mode); @@ -4933,7 +4933,7 @@ public SearchQueryString SuggestMode(SuggestModeOptions suggest_mode) internal int _suggest_size { get; set; } ///How many suggestions to return in response - public SearchQueryString SuggestSize(int suggest_size) + public SearchRequestParameters SuggestSize(int suggest_size) { this._suggest_size = suggest_size; this.Add("suggest_size", this._suggest_size); @@ -4943,7 +4943,7 @@ public SearchQueryString SuggestSize(int suggest_size) internal string _suggest_text { get; set; } ///The source text for which the suggestions should be returned - public SearchQueryString SuggestText(string suggest_text) + public SearchRequestParameters SuggestText(string suggest_text) { this._suggest_text = suggest_text; this.Add("suggest_text", this._suggest_text); @@ -4958,12 +4958,12 @@ public SearchQueryString SuggestText(string suggest_text) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotCreateQueryString : FluentQueryString + public class SnapshotCreateRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotCreateQueryString MasterTimeout(string master_timeout) + public SnapshotCreateRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -4973,7 +4973,7 @@ public SnapshotCreateQueryString MasterTimeout(string master_timeout) internal bool _wait_for_completion { get; set; } ///Should this request wait until the operation has completed before returning - public SnapshotCreateQueryString WaitForCompletion(bool wait_for_completion) + public SnapshotCreateRequestParameters WaitForCompletion(bool wait_for_completion) { this._wait_for_completion = wait_for_completion; this.Add("wait_for_completion", this._wait_for_completion); @@ -4988,12 +4988,12 @@ public SnapshotCreateQueryString WaitForCompletion(bool wait_for_completion) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotCreateRepositoryQueryString : FluentQueryString + public class SnapshotCreateRepositoryRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotCreateRepositoryQueryString MasterTimeout(string master_timeout) + public SnapshotCreateRepositoryRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -5003,7 +5003,7 @@ public SnapshotCreateRepositoryQueryString MasterTimeout(string master_timeout) internal string _timeout { get; set; } ///Explicit operation timeout - public SnapshotCreateRepositoryQueryString Timeout(string timeout) + public SnapshotCreateRepositoryRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -5018,12 +5018,12 @@ public SnapshotCreateRepositoryQueryString Timeout(string timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotDeleteQueryString : FluentQueryString + public class SnapshotDeleteRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotDeleteQueryString MasterTimeout(string master_timeout) + public SnapshotDeleteRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -5038,12 +5038,12 @@ public SnapshotDeleteQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotDeleteRepositoryQueryString : FluentQueryString + public class SnapshotDeleteRepositoryRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotDeleteRepositoryQueryString MasterTimeout(string master_timeout) + public SnapshotDeleteRepositoryRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -5053,7 +5053,7 @@ public SnapshotDeleteRepositoryQueryString MasterTimeout(string master_timeout) internal string _timeout { get; set; } ///Explicit operation timeout - public SnapshotDeleteRepositoryQueryString Timeout(string timeout) + public SnapshotDeleteRepositoryRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -5068,12 +5068,12 @@ public SnapshotDeleteRepositoryQueryString Timeout(string timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotGetQueryString : FluentQueryString + public class SnapshotGetRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotGetQueryString MasterTimeout(string master_timeout) + public SnapshotGetRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -5088,12 +5088,12 @@ public SnapshotGetQueryString MasterTimeout(string master_timeout) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotGetRepositoryQueryString : FluentQueryString + public class SnapshotGetRepositoryRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotGetRepositoryQueryString MasterTimeout(string master_timeout) + public SnapshotGetRepositoryRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -5103,7 +5103,7 @@ public SnapshotGetRepositoryQueryString MasterTimeout(string master_timeout) internal bool _local { get; set; } ///Return local information, do not retrieve the state from master node (default: false) - public SnapshotGetRepositoryQueryString Local(bool local) + public SnapshotGetRepositoryRequestParameters Local(bool local) { this._local = local; this.Add("local", this._local); @@ -5118,12 +5118,12 @@ public SnapshotGetRepositoryQueryString Local(bool local) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/modules-snapshots.html /// /// - public class SnapshotRestoreQueryString : FluentQueryString + public class SnapshotRestoreRequestParameters : FluentRequestParameters { internal string _master_timeout { get; set; } ///Explicit operation timeout for connection to master node - public SnapshotRestoreQueryString MasterTimeout(string master_timeout) + public SnapshotRestoreRequestParameters MasterTimeout(string master_timeout) { this._master_timeout = master_timeout; this.Add("master_timeout", this._master_timeout); @@ -5133,7 +5133,7 @@ public SnapshotRestoreQueryString MasterTimeout(string master_timeout) internal bool _wait_for_completion { get; set; } ///Should this request wait until the operation has completed before returning - public SnapshotRestoreQueryString WaitForCompletion(bool wait_for_completion) + public SnapshotRestoreRequestParameters WaitForCompletion(bool wait_for_completion) { this._wait_for_completion = wait_for_completion; this.Add("wait_for_completion", this._wait_for_completion); @@ -5148,12 +5148,12 @@ public SnapshotRestoreQueryString WaitForCompletion(bool wait_for_completion) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-search.html /// /// - public class SuggestQueryString : FluentQueryString + public class SuggestRequestParameters : FluentRequestParameters { internal bool _ignore_unavailable { get; set; } ///Whether specified concrete indices should be ignored when unavailable (missing or closed) - public SuggestQueryString IgnoreUnavailable(bool ignore_unavailable) + public SuggestRequestParameters IgnoreUnavailable(bool ignore_unavailable) { this._ignore_unavailable = ignore_unavailable; this.Add("ignore_unavailable", this._ignore_unavailable); @@ -5163,7 +5163,7 @@ public SuggestQueryString IgnoreUnavailable(bool ignore_unavailable) internal bool _allow_no_indices { get; set; } ///Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified) - public SuggestQueryString AllowNoIndices(bool allow_no_indices) + public SuggestRequestParameters AllowNoIndices(bool allow_no_indices) { this._allow_no_indices = allow_no_indices; this.Add("allow_no_indices", this._allow_no_indices); @@ -5173,7 +5173,7 @@ public SuggestQueryString AllowNoIndices(bool allow_no_indices) internal ExpandWildcardsOptions _expand_wildcards { get; set; } ///Whether to expand wildcard expression to concrete indices that are open, closed or both. - public SuggestQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcards) + public SuggestRequestParameters ExpandWildcards(ExpandWildcardsOptions expand_wildcards) { this._expand_wildcards = expand_wildcards; this.Add("expand_wildcards", this._expand_wildcards); @@ -5183,7 +5183,7 @@ public SuggestQueryString ExpandWildcards(ExpandWildcardsOptions expand_wildcard internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random) - public SuggestQueryString Preference(string preference) + public SuggestRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -5193,7 +5193,7 @@ public SuggestQueryString Preference(string preference) internal string _routing { get; set; } ///Specific routing value - public SuggestQueryString Routing(string routing) + public SuggestRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -5203,7 +5203,7 @@ public SuggestQueryString Routing(string routing) internal string _source { get; set; } ///The URL-encoded request definition (instead of using request body) - public SuggestQueryString Source(string source) + public SuggestRequestParameters Source(string source) { this._source = source; this.Add("source", this._source); @@ -5218,12 +5218,12 @@ public SuggestQueryString Source(string source) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-termvectors.html /// /// - public class TermvectorQueryString : FluentQueryString + public class TermvectorRequestParameters : FluentRequestParameters { internal bool _term_statistics { get; set; } ///Specifies if total term frequency and document frequency should be returned. - public TermvectorQueryString TermStatistics(bool term_statistics) + public TermvectorRequestParameters TermStatistics(bool term_statistics) { this._term_statistics = term_statistics; this.Add("term_statistics", this._term_statistics); @@ -5233,7 +5233,7 @@ public TermvectorQueryString TermStatistics(bool term_statistics) internal bool _field_statistics { get; set; } ///Specifies if document count, sum of document frequencies and sum of total term frequencies should be returned. - public TermvectorQueryString FieldStatistics(bool field_statistics) + public TermvectorRequestParameters FieldStatistics(bool field_statistics) { this._field_statistics = field_statistics; this.Add("field_statistics", this._field_statistics); @@ -5243,7 +5243,7 @@ public TermvectorQueryString FieldStatistics(bool field_statistics) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to return. - public TermvectorQueryString Fields(params string[] fields) + public TermvectorRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -5253,7 +5253,7 @@ public TermvectorQueryString Fields(params string[] fields) internal bool _offsets { get; set; } ///Specifies if term offsets should be returned. - public TermvectorQueryString Offsets(bool offsets) + public TermvectorRequestParameters Offsets(bool offsets) { this._offsets = offsets; this.Add("offsets", this._offsets); @@ -5263,7 +5263,7 @@ public TermvectorQueryString Offsets(bool offsets) internal bool _positions { get; set; } ///Specifies if term positions should be returned. - public TermvectorQueryString Positions(bool positions) + public TermvectorRequestParameters Positions(bool positions) { this._positions = positions; this.Add("positions", this._positions); @@ -5273,7 +5273,7 @@ public TermvectorQueryString Positions(bool positions) internal bool _payloads { get; set; } ///Specifies if term payloads should be returned. - public TermvectorQueryString Payloads(bool payloads) + public TermvectorRequestParameters Payloads(bool payloads) { this._payloads = payloads; this.Add("payloads", this._payloads); @@ -5283,7 +5283,7 @@ public TermvectorQueryString Payloads(bool payloads) internal string _preference { get; set; } ///Specify the node or shard the operation should be performed on (default: random). - public TermvectorQueryString Preference(string preference) + public TermvectorRequestParameters Preference(string preference) { this._preference = preference; this.Add("preference", this._preference); @@ -5293,7 +5293,7 @@ public TermvectorQueryString Preference(string preference) internal string _routing { get; set; } ///Specific routing value. - public TermvectorQueryString Routing(string routing) + public TermvectorRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -5303,7 +5303,7 @@ public TermvectorQueryString Routing(string routing) internal string _parent { get; set; } ///Parent id of documents. - public TermvectorQueryString Parent(string parent) + public TermvectorRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -5318,12 +5318,12 @@ public TermvectorQueryString Parent(string parent) ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/docs-update.html /// /// - public class UpdateQueryString : FluentQueryString + public class UpdateRequestParameters : FluentRequestParameters { internal ConsistencyOptions _consistency { get; set; } ///Explicit write consistency setting for the operation - public UpdateQueryString Consistency(ConsistencyOptions consistency) + public UpdateRequestParameters Consistency(ConsistencyOptions consistency) { this._consistency = consistency; this.Add("consistency", this._consistency); @@ -5333,7 +5333,7 @@ public UpdateQueryString Consistency(ConsistencyOptions consistency) internal IEnumerable _fields { get; set; } ///A comma-separated list of fields to return in the response - public UpdateQueryString Fields(params string[] fields) + public UpdateRequestParameters Fields(params string[] fields) { this._fields = fields.Select(f=>(object)f); this.Add("fields", this._fields); @@ -5343,7 +5343,7 @@ public UpdateQueryString Fields(params string[] fields) internal string _lang { get; set; } ///The script language (default: mvel) - public UpdateQueryString Lang(string lang) + public UpdateRequestParameters Lang(string lang) { this._lang = lang; this.Add("lang", this._lang); @@ -5353,7 +5353,7 @@ public UpdateQueryString Lang(string lang) internal string _parent { get; set; } ///ID of the parent document - public UpdateQueryString Parent(string parent) + public UpdateRequestParameters Parent(string parent) { this._parent = parent; this.Add("parent", this._parent); @@ -5363,7 +5363,7 @@ public UpdateQueryString Parent(string parent) internal bool _refresh { get; set; } ///Refresh the index after performing the operation - public UpdateQueryString Refresh(bool refresh) + public UpdateRequestParameters Refresh(bool refresh) { this._refresh = refresh; this.Add("refresh", this._refresh); @@ -5373,7 +5373,7 @@ public UpdateQueryString Refresh(bool refresh) internal ReplicationOptions _replication { get; set; } ///Specific replication type - public UpdateQueryString Replication(ReplicationOptions replication) + public UpdateRequestParameters Replication(ReplicationOptions replication) { this._replication = replication; this.Add("replication", this._replication); @@ -5383,7 +5383,7 @@ public UpdateQueryString Replication(ReplicationOptions replication) internal int _retry_on_conflict { get; set; } ///Specify how many times should the operation be retried when a conflict occurs (default: 0) - public UpdateQueryString RetryOnConflict(int retry_on_conflict) + public UpdateRequestParameters RetryOnConflict(int retry_on_conflict) { this._retry_on_conflict = retry_on_conflict; this.Add("retry_on_conflict", this._retry_on_conflict); @@ -5393,7 +5393,7 @@ public UpdateQueryString RetryOnConflict(int retry_on_conflict) internal string _routing { get; set; } ///Specific routing value - public UpdateQueryString Routing(string routing) + public UpdateRequestParameters Routing(string routing) { this._routing = routing; this.Add("routing", this._routing); @@ -5403,7 +5403,7 @@ public UpdateQueryString Routing(string routing) internal string _script { get; set; } ///The URL-encoded script definition (instead of using request body) - public UpdateQueryString Script(string script) + public UpdateRequestParameters Script(string script) { this._script = script; this.Add("script", this._script); @@ -5413,7 +5413,7 @@ public UpdateQueryString Script(string script) internal string _timeout { get; set; } ///Explicit operation timeout - public UpdateQueryString Timeout(string timeout) + public UpdateRequestParameters Timeout(string timeout) { this._timeout = timeout; this.Add("timeout", this._timeout); @@ -5423,7 +5423,7 @@ public UpdateQueryString Timeout(string timeout) internal string _timestamp { get; set; } ///Explicit timestamp for the document - public UpdateQueryString Timestamp(string timestamp) + public UpdateRequestParameters Timestamp(string timestamp) { this._timestamp = timestamp; this.Add("timestamp", this._timestamp); @@ -5433,7 +5433,7 @@ public UpdateQueryString Timestamp(string timestamp) internal string _ttl { get; set; } ///Expiration time for the document - public UpdateQueryString Ttl(string ttl) + public UpdateRequestParameters Ttl(string ttl) { this._ttl = ttl; this.Add("ttl", this._ttl); @@ -5443,7 +5443,7 @@ public UpdateQueryString Ttl(string ttl) internal int _version { get; set; } ///Explicit version number for concurrency control - public UpdateQueryString Version(int version) + public UpdateRequestParameters Version(int version) { this._version = version; this.Add("version", this._version); @@ -5453,7 +5453,7 @@ public UpdateQueryString Version(int version) internal VersionTypeOptions _version_type { get; set; } ///Specific version type - public UpdateQueryString VersionType(VersionTypeOptions version_type) + public UpdateRequestParameters VersionType(VersionTypeOptions version_type) { this._version_type = version_type; this.Add("version_type", this._version_type); diff --git a/src/Elasticsearch.Net/Elasticsearch.Net.csproj b/src/Elasticsearch.Net/Elasticsearch.Net.csproj index 68891495f50..da8cdaae075 100644 --- a/src/Elasticsearch.Net/Elasticsearch.Net.csproj +++ b/src/Elasticsearch.Net/Elasticsearch.Net.csproj @@ -45,8 +45,14 @@ + + + + + + @@ -71,7 +77,7 @@ - + @@ -81,8 +87,8 @@ - - + + diff --git a/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs b/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs index e13dbc2e20d..7c42e426025 100644 --- a/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs +++ b/src/Elasticsearch.Net/ElasticsearchClient.Generated.cs @@ -23,25 +23,28 @@ public partial class ElasticsearchClient : IElasticsearchClient ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Bulk(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -52,25 +55,28 @@ public ElasticsearchResponse Bulk(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> BulkAsync(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -82,24 +88,29 @@ public Task> BulkAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Bulk(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -111,24 +122,29 @@ public ElasticsearchResponse Bulk(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> BulkAsync(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -140,26 +156,29 @@ public Task> BulkAsync(object body, Fun /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Bulk(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -171,26 +190,29 @@ public ElasticsearchResponse Bulk(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> BulkAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -203,25 +225,30 @@ public Task> BulkAsync(string index, object body, Fu /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Bulk(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -234,25 +261,30 @@ public ElasticsearchResponse Bulk(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> BulkAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -265,27 +297,30 @@ public Task> BulkAsync(string index, ob ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Bulk(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -298,27 +333,30 @@ public ElasticsearchResponse Bulk(string index, string type, object body, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> BulkAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -332,26 +370,31 @@ public Task> BulkAsync(string index, string type, ob ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Bulk(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -365,26 +408,31 @@ public ElasticsearchResponse Bulk(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> BulkAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -395,25 +443,28 @@ public Task> BulkAsync(string index, st ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse BulkPut(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -424,25 +475,28 @@ public ElasticsearchResponse BulkPut(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> BulkPutAsync(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -454,24 +508,29 @@ public Task> BulkPutAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse BulkPut(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -483,24 +542,29 @@ public ElasticsearchResponse BulkPut(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> BulkPutAsync(object body, Func requestParameters = null) { var url = "_bulk".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -512,26 +576,29 @@ public Task> BulkPutAsync(object body, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse BulkPut(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -543,26 +610,29 @@ public ElasticsearchResponse BulkPut(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> BulkPutAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -575,25 +645,30 @@ public Task> BulkPutAsync(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse BulkPut(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -606,25 +681,30 @@ public ElasticsearchResponse BulkPut(string index, object bod /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> BulkPutAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_bulk".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -637,27 +717,30 @@ public Task> BulkPutAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse BulkPut(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -670,27 +753,30 @@ public ElasticsearchResponse BulkPut(string index, string type, object bod ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> BulkPutAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -704,26 +790,31 @@ public Task> BulkPutAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse BulkPut(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -737,26 +828,31 @@ public ElasticsearchResponse BulkPut(string index, string typ ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> BulkPutAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_bulk".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new BulkQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new BulkRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -766,25 +862,29 @@ public Task> BulkPutAsync(string index, /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatAliases(Func requestParameters = null) { var url = "_cat/aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -794,25 +894,29 @@ public ElasticsearchResponse CatAliases(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatAliasesAsync(Func requestParameters = null) { var url = "_cat/aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -823,25 +927,31 @@ public Task> CatAliasesAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatAliases(Func requestParameters = null) { var url = "_cat/aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/aliases @@ -851,25 +961,31 @@ public ElasticsearchResponse CatAliases(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatAliasesAsync(Func requestParameters = null) { var url = "_cat/aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/aliases/{name} @@ -879,26 +995,30 @@ public Task> CatAliasesAsync(FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatAliases(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_cat/aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -909,26 +1029,30 @@ public ElasticsearchResponse CatAliases(string name, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatAliasesAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_cat/aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -940,26 +1064,32 @@ public Task> CatAliasesAsync(string name, FuncSee 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatAliases(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_cat/aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/aliases/{name} @@ -970,26 +1100,32 @@ public ElasticsearchResponse CatAliases(string name, FuncSee 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatAliasesAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_cat/aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAliasesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/allocation @@ -998,25 +1134,29 @@ public Task> CatAliasesAsync(string nam /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatAllocation(Func requestParameters = null) { var url = "_cat/allocation"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1026,25 +1166,29 @@ public ElasticsearchResponse CatAllocation(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatAllocationAsync(Func requestParameters = null) { var url = "_cat/allocation"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1055,25 +1199,31 @@ public Task> CatAllocationAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatAllocation(Func requestParameters = null) { var url = "_cat/allocation"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/allocation @@ -1083,25 +1233,31 @@ public ElasticsearchResponse CatAllocation(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatAllocationAsync(Func requestParameters = null) { var url = "_cat/allocation"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/allocation/{node_id} @@ -1111,26 +1267,30 @@ public Task> CatAllocationAsync(FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatAllocation(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cat/allocation/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1141,26 +1301,30 @@ public ElasticsearchResponse CatAllocation(string node_id, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatAllocationAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cat/allocation/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1172,26 +1336,32 @@ public Task> CatAllocationAsync(string node_id, Func ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatAllocation(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cat/allocation/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/allocation/{node_id} @@ -1202,26 +1372,32 @@ public ElasticsearchResponse CatAllocation(string node_id, Fu ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatAllocationAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cat/allocation/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatAllocationQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatAllocationRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/count @@ -1230,25 +1406,29 @@ public Task> CatAllocationAsync(string /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatCount(Func requestParameters = null) { var url = "_cat/count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1258,25 +1438,29 @@ public ElasticsearchResponse CatCount(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatCountAsync(Func requestParameters = null) { var url = "_cat/count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1287,25 +1471,31 @@ public Task> CatCountAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatCount(Func requestParameters = null) { var url = "_cat/count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/count @@ -1315,25 +1505,31 @@ public ElasticsearchResponse CatCount(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatCountAsync(Func requestParameters = null) { var url = "_cat/count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/count/{index} @@ -1343,26 +1539,30 @@ public Task> CatCountAsync(FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatCount(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/count/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1373,26 +1573,30 @@ public ElasticsearchResponse CatCount(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatCountAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/count/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1404,26 +1608,32 @@ public Task> CatCountAsync(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatCount(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/count/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/count/{index} @@ -1434,26 +1644,32 @@ public ElasticsearchResponse CatCount(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatCountAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/count/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatCountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatCountRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/health @@ -1462,25 +1678,29 @@ public Task> CatCountAsync(string index /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatHealth(Func requestParameters = null) { var url = "_cat/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1490,25 +1710,29 @@ public ElasticsearchResponse CatHealth(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatHealthAsync(Func requestParameters = null) { var url = "_cat/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1519,25 +1743,31 @@ public Task> CatHealthAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatHealth(Func requestParameters = null) { var url = "_cat/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/health @@ -1547,25 +1777,31 @@ public ElasticsearchResponse CatHealth(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatHealthAsync(Func requestParameters = null) { var url = "_cat/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHealthRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat @@ -1574,25 +1810,29 @@ public Task> CatHealthAsync(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatHelp(Func requestParameters = null) { var url = "_cat"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHelpQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1602,25 +1842,29 @@ public ElasticsearchResponse CatHelp(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatHelpAsync(Func requestParameters = null) { var url = "_cat"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHelpQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1631,25 +1875,31 @@ public Task> CatHelpAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatHelp(Func requestParameters = null) { var url = "_cat"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHelpQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat @@ -1659,25 +1909,31 @@ public ElasticsearchResponse CatHelp(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatHelpAsync(Func requestParameters = null) { var url = "_cat"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatHelpQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatHelpRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/indices @@ -1686,25 +1942,29 @@ public Task> CatHelpAsync(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatIndices(Func requestParameters = null) { var url = "_cat/indices"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1714,25 +1974,29 @@ public ElasticsearchResponse CatIndices(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatIndicesAsync(Func requestParameters = null) { var url = "_cat/indices"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1743,25 +2007,31 @@ public Task> CatIndicesAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatIndices(Func requestParameters = null) { var url = "_cat/indices"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/indices @@ -1771,25 +2041,31 @@ public ElasticsearchResponse CatIndices(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatIndicesAsync(Func requestParameters = null) { var url = "_cat/indices"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/indices/{index} @@ -1799,26 +2075,30 @@ public Task> CatIndicesAsync(FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatIndices(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/indices/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1829,26 +2109,30 @@ public ElasticsearchResponse CatIndices(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatIndicesAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/indices/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1860,26 +2144,32 @@ public Task> CatIndicesAsync(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatIndices(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/indices/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/indices/{index} @@ -1890,26 +2180,32 @@ public ElasticsearchResponse CatIndices(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatIndicesAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/indices/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatIndicesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatIndicesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/master @@ -1918,25 +2214,29 @@ public Task> CatIndicesAsync(string ind /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatMaster(Func requestParameters = null) { var url = "_cat/master"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatMasterQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1946,25 +2246,29 @@ public ElasticsearchResponse CatMaster(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatMasterAsync(Func requestParameters = null) { var url = "_cat/master"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatMasterQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -1975,25 +2279,31 @@ public Task> CatMasterAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatMaster(Func requestParameters = null) { var url = "_cat/master"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatMasterQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/master @@ -2003,25 +2313,31 @@ public ElasticsearchResponse CatMaster(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatMasterAsync(Func requestParameters = null) { var url = "_cat/master"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatMasterQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatMasterRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/nodes @@ -2030,25 +2346,29 @@ public Task> CatMasterAsync(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatNodes(Func requestParameters = null) { var url = "_cat/nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatNodesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2058,25 +2378,29 @@ public ElasticsearchResponse CatNodes(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatNodesAsync(Func requestParameters = null) { var url = "_cat/nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatNodesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2087,25 +2411,31 @@ public Task> CatNodesAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatNodes(Func requestParameters = null) { var url = "_cat/nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatNodesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/nodes @@ -2115,25 +2445,31 @@ public ElasticsearchResponse CatNodes(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatNodesAsync(Func requestParameters = null) { var url = "_cat/nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatNodesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatNodesRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/pending_tasks @@ -2142,25 +2478,29 @@ public Task> CatNodesAsync(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatPendingTasks(Func requestParameters = null) { var url = "_cat/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2170,25 +2510,29 @@ public ElasticsearchResponse CatPendingTasks(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatPendingTasksAsync(Func requestParameters = null) { var url = "_cat/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2199,25 +2543,31 @@ public Task> CatPendingTasksAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatPendingTasks(Func requestParameters = null) { var url = "_cat/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/pending_tasks @@ -2227,25 +2577,31 @@ public ElasticsearchResponse CatPendingTasks(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatPendingTasksAsync(Func requestParameters = null) { var url = "_cat/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatPendingTasksRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/recovery @@ -2254,25 +2610,29 @@ public Task> CatPendingTasksAsync(Func< /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatRecovery(Func requestParameters = null) { var url = "_cat/recovery"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2282,25 +2642,29 @@ public ElasticsearchResponse CatRecovery(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatRecoveryAsync(Func requestParameters = null) { var url = "_cat/recovery"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2311,25 +2675,31 @@ public Task> CatRecoveryAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatRecovery(Func requestParameters = null) { var url = "_cat/recovery"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/recovery @@ -2339,25 +2709,31 @@ public ElasticsearchResponse CatRecovery(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatRecoveryAsync(Func requestParameters = null) { var url = "_cat/recovery"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/recovery/{index} @@ -2367,26 +2743,30 @@ public Task> CatRecoveryAsync(FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatRecovery(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/recovery/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2397,26 +2777,30 @@ public ElasticsearchResponse CatRecovery(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatRecoveryAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/recovery/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2428,26 +2812,32 @@ public Task> CatRecoveryAsync(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatRecovery(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/recovery/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/recovery/{index} @@ -2458,26 +2848,32 @@ public ElasticsearchResponse CatRecovery(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatRecoveryAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/recovery/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatRecoveryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatRecoveryRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/shards @@ -2486,25 +2882,29 @@ public Task> CatRecoveryAsync(string in /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatShards(Func requestParameters = null) { var url = "_cat/shards"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2514,25 +2914,29 @@ public ElasticsearchResponse CatShards(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatShardsAsync(Func requestParameters = null) { var url = "_cat/shards"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2543,25 +2947,31 @@ public Task> CatShardsAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatShards(Func requestParameters = null) { var url = "_cat/shards"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/shards @@ -2571,25 +2981,31 @@ public ElasticsearchResponse CatShards(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatShardsAsync(Func requestParameters = null) { var url = "_cat/shards"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/shards/{index} @@ -2599,26 +3015,30 @@ public Task> CatShardsAsync(FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatShards(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/shards/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2629,26 +3049,30 @@ public ElasticsearchResponse CatShards(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatShardsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/shards/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2660,26 +3084,32 @@ public Task> CatShardsAsync(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatShards(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/shards/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/shards/{index} @@ -2690,26 +3120,32 @@ public ElasticsearchResponse CatShards(string index, FuncSee 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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatShardsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cat/shards/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatShardsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatShardsRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/thread_pool @@ -2718,25 +3154,29 @@ public Task> CatShardsAsync(string inde /// - 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CatThreadPool(Func requestParameters = null) { var url = "_cat/thread_pool"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatThreadPoolQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2746,25 +3186,29 @@ public ElasticsearchResponse CatThreadPool(Func - 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CatThreadPoolAsync(Func requestParameters = null) { var url = "_cat/thread_pool"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatThreadPoolQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); + - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2775,25 +3219,31 @@ public Task> CatThreadPoolAsync(Func - can 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CatThreadPool(Func requestParameters = null) { var url = "_cat/thread_pool"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatThreadPoolQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a GET on /_cat/thread_pool @@ -2803,25 +3253,31 @@ public ElasticsearchResponse CatThreadPool(Func - can 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CatThreadPoolAsync(Func requestParameters = null) { var url = "_cat/thread_pool"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CatThreadPoolQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain"))); + ToNameValueCollection(requestParams); } + else requestParams = new CatThreadPoolRequestParameters().RequestConfiguration(r=>r.ContentType("text/plain")); - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv - )); + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams + ); } ///Represents a DELETE on /_search/scroll/{scroll_id} @@ -2831,26 +3287,29 @@ public Task> CatThreadPoolAsync(FuncSee also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClearScroll(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -2861,26 +3320,29 @@ public ElasticsearchResponse ClearScroll(string scroll_id, FuncSee also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClearScrollAsync(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -2892,25 +3354,30 @@ public Task> ClearScrollAsync(string scroll_id, Func ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClearScroll(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -2922,25 +3389,30 @@ public ElasticsearchResponse ClearScroll(string scroll_id, Fu ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClearScrollAsync(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -2950,25 +3422,28 @@ public Task> ClearScrollAsync(string sc /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterGetSettings(Func requestParameters = null) { var url = "_cluster/settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterGetSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterGetSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -2978,25 +3453,28 @@ public ElasticsearchResponse ClusterGetSettings(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterGetSettingsAsync(Func requestParameters = null) { var url = "_cluster/settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterGetSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterGetSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3007,24 +3485,29 @@ public Task> ClusterGetSettingsAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterGetSettings(Func requestParameters = null) { var url = "_cluster/settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterGetSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterGetSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3035,24 +3518,29 @@ public ElasticsearchResponse ClusterGetSettings(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterGetSettingsAsync(Func requestParameters = null) { var url = "_cluster/settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterGetSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterGetSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3062,25 +3550,28 @@ public Task> ClusterGetSettingsAsync(Fu /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterHealth(Func requestParameters = null) { var url = "_cluster/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3090,25 +3581,28 @@ public ElasticsearchResponse ClusterHealth(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterHealthAsync(Func requestParameters = null) { var url = "_cluster/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3119,24 +3613,29 @@ public Task> ClusterHealthAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterHealth(Func requestParameters = null) { var url = "_cluster/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3147,24 +3646,29 @@ public ElasticsearchResponse ClusterHealth(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterHealthAsync(Func requestParameters = null) { var url = "_cluster/health"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3175,26 +3679,29 @@ public Task> ClusterHealthAsync(FuncSee also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterHealth(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cluster/health/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3205,26 +3712,29 @@ public ElasticsearchResponse ClusterHealth(string index, FuncSee also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterHealthAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cluster/health/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3236,25 +3746,30 @@ public Task> ClusterHealthAsync(string index, FuncSee also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///Limit the information returned to a specific index - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterHealth(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cluster/health/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3266,25 +3781,30 @@ public ElasticsearchResponse ClusterHealth(string index, Func ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///Limit the information returned to a specific index - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterHealthAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "_cluster/health/{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterHealthQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterHealthRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3294,25 +3814,28 @@ public Task> ClusterHealthAsync(string /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterPendingTasks(Func requestParameters = null) { var url = "_cluster/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPendingTasksRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3322,25 +3845,28 @@ public ElasticsearchResponse ClusterPendingTasks(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterPendingTasksAsync(Func requestParameters = null) { var url = "_cluster/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPendingTasksRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3351,24 +3877,29 @@ public Task> ClusterPendingTasksAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterPendingTasks(Func requestParameters = null) { var url = "_cluster/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPendingTasksRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3379,24 +3910,29 @@ public ElasticsearchResponse ClusterPendingTasks(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterPendingTasksAsync(Func requestParameters = null) { var url = "_cluster/pending_tasks"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPendingTasksQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPendingTasksRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3407,25 +3943,28 @@ public Task> ClusterPendingTasksAsync(F ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterPutSettings(object body, Func requestParameters = null) { var url = "_cluster/settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPutSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPutSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -3436,25 +3975,28 @@ public ElasticsearchResponse ClusterPutSettings(object body, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterPutSettingsAsync(object body, Func requestParameters = null) { var url = "_cluster/settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPutSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPutSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -3466,24 +4008,29 @@ public Task> ClusterPutSettingsAsync(object body, Fu ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterPutSettings(object body, Func requestParameters = null) { var url = "_cluster/settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPutSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPutSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -3495,24 +4042,29 @@ public ElasticsearchResponse ClusterPutSettings(object body, ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterPutSettingsAsync(object body, Func requestParameters = null) { var url = "_cluster/settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterPutSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterPutSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -3523,25 +4075,28 @@ public Task> ClusterPutSettingsAsync(ob ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterReroute(object body, Func requestParameters = null) { var url = "_cluster/reroute".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterRerouteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterRerouteRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -3552,25 +4107,28 @@ public ElasticsearchResponse ClusterReroute(object body, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterRerouteAsync(object body, Func requestParameters = null) { var url = "_cluster/reroute".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterRerouteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterRerouteRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -3582,24 +4140,29 @@ public Task> ClusterRerouteAsync(object body, FuncSee 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterReroute(object body, Func requestParameters = null) { var url = "_cluster/reroute".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterRerouteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterRerouteRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -3611,24 +4174,29 @@ public ElasticsearchResponse ClusterReroute(object body, Func ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterRerouteAsync(object body, Func requestParameters = null) { var url = "_cluster/reroute".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterRerouteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterRerouteRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -3638,25 +4206,28 @@ public Task> ClusterRerouteAsync(object /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterState(Func requestParameters = null) { var url = "_cluster/state"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3666,25 +4237,28 @@ public ElasticsearchResponse ClusterState(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterStateAsync(Func requestParameters = null) { var url = "_cluster/state"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3695,24 +4269,29 @@ public Task> ClusterStateAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterState(Func requestParameters = null) { var url = "_cluster/state"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3723,24 +4302,29 @@ public ElasticsearchResponse ClusterState(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterStateAsync(Func requestParameters = null) { var url = "_cluster/state"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3751,26 +4335,29 @@ public Task> ClusterStateAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterState(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_cluster/state/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3781,26 +4368,29 @@ public ElasticsearchResponse ClusterState(string metric, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterStateAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_cluster/state/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3812,25 +4402,30 @@ public Task> ClusterStateAsync(string metric, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterState(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_cluster/state/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3842,25 +4437,30 @@ public ElasticsearchResponse ClusterState(string metric, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterStateAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_cluster/state/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3872,27 +4472,30 @@ public Task> ClusterStateAsync(string m /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterState(string metric, string index, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3904,27 +4507,30 @@ public ElasticsearchResponse ClusterState(string metric, string index, Fun /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterStateAsync(string metric, string index, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -3937,26 +4543,31 @@ public Task> ClusterStateAsync(string metric, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterState(string metric, string index, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3969,26 +4580,31 @@ public ElasticsearchResponse ClusterState(string metric, stri /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterStateAsync(string metric, string index, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); index.ThrowIfNullOrEmpty("index"); var url = "_cluster/state/{0}/{1}".F(Encoded(metric), Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -3998,25 +4614,28 @@ public Task> ClusterStateAsync(string m /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterStats(Func requestParameters = null) { var url = "_cluster/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4026,25 +4645,28 @@ public ElasticsearchResponse ClusterStats(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterStatsAsync(Func requestParameters = null) { var url = "_cluster/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4055,24 +4677,29 @@ public Task> ClusterStatsAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterStats(Func requestParameters = null) { var url = "_cluster/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4083,24 +4710,29 @@ public ElasticsearchResponse ClusterStats(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterStatsAsync(Func requestParameters = null) { var url = "_cluster/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4111,26 +4743,29 @@ public Task> ClusterStatsAsync(FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ClusterStats(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4141,26 +4776,29 @@ public ElasticsearchResponse ClusterStats(string node_id, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ClusterStatsAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4172,25 +4810,30 @@ public Task> ClusterStatsAsync(string node_id, Func< ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ClusterStats(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4202,25 +4845,30 @@ public ElasticsearchResponse ClusterStats(string node_id, Fun ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ClusterStatsAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/stats/nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClusterStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClusterStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4231,25 +4879,28 @@ public Task> ClusterStatsAsync(string n ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Count(object body, Func requestParameters = null) { var url = "_count".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -4260,25 +4911,28 @@ public ElasticsearchResponse Count(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountAsync(object body, Func requestParameters = null) { var url = "_count".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -4290,24 +4944,29 @@ public Task> CountAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Count(object body, Func requestParameters = null) { var url = "_count".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -4319,24 +4978,29 @@ public ElasticsearchResponse Count(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountAsync(object body, Func requestParameters = null) { var url = "_count".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -4348,26 +5012,29 @@ public Task> CountAsync(object body, Fu /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Count(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -4379,26 +5046,29 @@ public ElasticsearchResponse Count(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -4411,25 +5081,30 @@ public Task> CountAsync(string index, object body, F /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Count(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -4442,25 +5117,30 @@ public ElasticsearchResponse Count(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -4473,27 +5153,30 @@ public Task> CountAsync(string index, o ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Count(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -4506,27 +5189,30 @@ public ElasticsearchResponse Count(string index, string type, object body, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -4540,26 +5226,31 @@ public Task> CountAsync(string index, string type, o ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Count(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -4573,26 +5264,31 @@ public ElasticsearchResponse Count(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -4602,25 +5298,28 @@ public Task> CountAsync(string index, s /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountGet(Func requestParameters = null) { var url = "_count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4630,25 +5329,28 @@ public ElasticsearchResponse CountGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountGetAsync(Func requestParameters = null) { var url = "_count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4659,24 +5361,29 @@ public Task> CountGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountGet(Func requestParameters = null) { var url = "_count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4687,24 +5394,29 @@ public ElasticsearchResponse CountGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountGetAsync(Func requestParameters = null) { var url = "_count"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4715,26 +5427,29 @@ public Task> CountGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4745,26 +5460,29 @@ public ElasticsearchResponse CountGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4776,25 +5494,30 @@ public Task> CountGetAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4806,25 +5529,30 @@ public ElasticsearchResponse CountGet(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_count".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4836,27 +5564,30 @@ public Task> CountGetAsync(string index /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4868,27 +5599,30 @@ public ElasticsearchResponse CountGet(string index, string type, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4901,26 +5635,31 @@ public Task> CountGetAsync(string index, string type /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4933,26 +5672,31 @@ public ElasticsearchResponse CountGet(string index, string ty /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -4964,27 +5708,30 @@ public Task> CountGetAsync(string index /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountPercolateGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -4996,27 +5743,30 @@ public ElasticsearchResponse CountPercolateGet(string index, string type, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountPercolateGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -5029,26 +5779,31 @@ public Task> CountPercolateGetAsync(string index, st /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountPercolateGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -5061,26 +5816,31 @@ public ElasticsearchResponse CountPercolateGet(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountPercolateGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -5093,28 +5853,31 @@ public Task> CountPercolateGetAsync(str ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -5127,28 +5890,31 @@ public ElasticsearchResponse CountPercolateGet(string index, string type, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountPercolateGetAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -5162,27 +5928,32 @@ public Task> CountPercolateGetAsync(string index, st ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -5196,27 +5967,32 @@ public ElasticsearchResponse CountPercolateGet(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountPercolateGetAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -5229,27 +6005,30 @@ public Task> CountPercolateGetAsync(str ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountPercolate(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -5262,27 +6041,30 @@ public ElasticsearchResponse CountPercolate(string index, string type, obj ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountPercolateAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -5296,26 +6078,31 @@ public Task> CountPercolateAsync(string index, strin ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountPercolate(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -5329,26 +6116,31 @@ public ElasticsearchResponse CountPercolate(string index, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountPercolateAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate/count".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -5362,28 +6154,31 @@ public Task> CountPercolateAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -5397,28 +6192,31 @@ public ElasticsearchResponse CountPercolate(string index, string type, str ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> CountPercolateAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -5433,27 +6231,32 @@ public Task> CountPercolateAsync(string index, strin ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -5468,27 +6271,32 @@ public ElasticsearchResponse CountPercolate(string index, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> CountPercolateAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CountPercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CountPercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -5501,28 +6309,31 @@ public Task> CountPercolateAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Delete(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -5535,28 +6346,31 @@ public ElasticsearchResponse Delete(string index, string type, string id, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> DeleteAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -5570,27 +6384,32 @@ public Task> DeleteAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Delete(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -5604,27 +6423,32 @@ public ElasticsearchResponse Delete(string index, string type ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> DeleteAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -5636,26 +6460,29 @@ public Task> DeleteAsync(string index, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse DeleteByQuery(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, body, + requestParameters: requestParams ); } @@ -5667,26 +6494,29 @@ public ElasticsearchResponse DeleteByQuery(string index, object body, Func /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> DeleteByQueryAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, body, + requestParameters: requestParams ); } @@ -5699,25 +6529,30 @@ public Task> DeleteByQueryAsync(string index, object /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse DeleteByQuery(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, body, + requestParameters: requestParams )); } @@ -5730,25 +6565,30 @@ public ElasticsearchResponse DeleteByQuery(string index, obje /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> DeleteByQueryAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, body, + requestParameters: requestParams )); } @@ -5761,27 +6601,30 @@ public Task> DeleteByQueryAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, body, + requestParameters: requestParams ); } @@ -5794,27 +6637,30 @@ public ElasticsearchResponse DeleteByQuery(string index, string type, obje ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> DeleteByQueryAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, body, + requestParameters: requestParams ); } @@ -5828,26 +6674,31 @@ public Task> DeleteByQueryAsync(string index, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, body, + requestParameters: requestParams )); } @@ -5861,26 +6712,31 @@ public ElasticsearchResponse DeleteByQuery(string index, stri ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> DeleteByQueryAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteByQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteByQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, body, + requestParameters: requestParams )); } @@ -5893,28 +6749,31 @@ public Task> DeleteByQueryAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Exists(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -5927,28 +6786,31 @@ public ElasticsearchResponse Exists(string index, string type, string id, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ExistsAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -5962,27 +6824,32 @@ public Task> ExistsAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Exists(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -5996,27 +6863,32 @@ public ElasticsearchResponse Exists(string index, string type ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ExistsAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -6029,28 +6901,31 @@ public Task> ExistsAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ExplainGet(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -6063,28 +6938,31 @@ public ElasticsearchResponse ExplainGet(string index, string type, string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ExplainGetAsync(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -6098,27 +6976,32 @@ public Task> ExplainGetAsync(string index, string ty ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ExplainGet(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -6132,27 +7015,32 @@ public ElasticsearchResponse ExplainGet(string index, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ExplainGetAsync(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -6166,28 +7054,31 @@ public Task> ExplainGetAsync(string ind ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Explain(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -6201,28 +7092,31 @@ public ElasticsearchResponse Explain(string index, string type, string id, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ExplainAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -6237,27 +7131,32 @@ public Task> ExplainAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Explain(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -6272,27 +7171,32 @@ public ElasticsearchResponse Explain(string index, string typ ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ExplainAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ExplainQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ExplainRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -6305,28 +7209,31 @@ public Task> ExplainAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Get(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -6339,28 +7246,31 @@ public ElasticsearchResponse Get(string index, string type, string id, Fun ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> GetAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -6374,27 +7284,32 @@ public Task> GetAsync(string index, string type, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Get(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -6408,27 +7323,32 @@ public ElasticsearchResponse Get(string index, string type, s ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> GetAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -6441,28 +7361,31 @@ public Task> GetAsync(string index, str ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse GetSource(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SourceQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SourceRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -6475,28 +7398,31 @@ public ElasticsearchResponse GetSource(string index, string type, string i ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> GetSourceAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SourceQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SourceRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -6510,27 +7436,32 @@ public Task> GetSourceAsync(string index, string typ ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse GetSource(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SourceQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SourceRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -6544,27 +7475,32 @@ public ElasticsearchResponse GetSource(string index, string t ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> GetSourceAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SourceQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SourceRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -6577,27 +7513,30 @@ public Task> GetSourceAsync(string inde ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Index(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -6610,27 +7549,30 @@ public ElasticsearchResponse Index(string index, string type, object body, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndexAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -6644,26 +7586,31 @@ public Task> IndexAsync(string index, string type, o ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Index(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -6677,26 +7624,31 @@ public ElasticsearchResponse Index(string index, string type, ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndexAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -6710,28 +7662,31 @@ public Task> IndexAsync(string index, s ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Index(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -6745,28 +7700,31 @@ public ElasticsearchResponse Index(string index, string type, string id, o ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndexAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -6781,27 +7739,32 @@ public Task> IndexAsync(string index, string type, s ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Index(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -6816,27 +7779,32 @@ public ElasticsearchResponse Index(string index, string type, ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndexAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -6849,27 +7817,30 @@ public Task> IndexAsync(string index, s ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndexPut(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -6882,27 +7853,30 @@ public ElasticsearchResponse IndexPut(string index, string type, object bo ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndexPutAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -6916,26 +7890,31 @@ public Task> IndexPutAsync(string index, string type ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndexPut(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -6949,26 +7928,31 @@ public ElasticsearchResponse IndexPut(string index, string ty ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndexPutAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -6982,28 +7966,31 @@ public Task> IndexPutAsync(string 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -7017,28 +8004,31 @@ public ElasticsearchResponse IndexPut(string index, string type, string id ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndexPutAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -7053,27 +8043,32 @@ public Task> IndexPutAsync(string index, string type ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -7088,27 +8083,32 @@ public ElasticsearchResponse IndexPut(string index, string ty ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndexPutAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -7118,25 +8118,28 @@ public Task> IndexPutAsync(string index /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesAnalyzeGetForAll(Func requestParameters = null) { var url = "_analyze"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7146,25 +8149,28 @@ public ElasticsearchResponse IndicesAnalyzeGetForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesAnalyzeGetForAllAsync(Func requestParameters = null) { var url = "_analyze"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7175,24 +8181,29 @@ public Task> IndicesAnalyzeGetForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesAnalyzeGetForAll(Func requestParameters = null) { var url = "_analyze"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -7203,24 +8214,29 @@ public ElasticsearchResponse IndicesAnalyzeGetForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesAnalyzeGetForAllAsync(Func requestParameters = null) { var url = "_analyze"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -7231,26 +8247,29 @@ public Task> IndicesAnalyzeGetForAllAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesAnalyzeGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7261,26 +8280,29 @@ public ElasticsearchResponse IndicesAnalyzeGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesAnalyzeGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7292,25 +8314,30 @@ public Task> IndicesAnalyzeGetAsync(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesAnalyzeGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -7322,25 +8349,30 @@ public ElasticsearchResponse IndicesAnalyzeGet(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesAnalyzeGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -7351,25 +8383,28 @@ public Task> IndicesAnalyzeGetAsync(str ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesAnalyzeForAll(object body, Func requestParameters = null) { var url = "_analyze".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -7380,25 +8415,28 @@ public ElasticsearchResponse IndicesAnalyzeForAll(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesAnalyzeForAllAsync(object body, Func requestParameters = null) { var url = "_analyze".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -7410,24 +8448,29 @@ public Task> IndicesAnalyzeForAllAsync(object body, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesAnalyzeForAll(object body, Func requestParameters = null) { var url = "_analyze".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -7439,24 +8482,29 @@ public ElasticsearchResponse IndicesAnalyzeForAll(object body ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesAnalyzeForAllAsync(object body, Func requestParameters = null) { var url = "_analyze".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -7468,26 +8516,29 @@ public Task> IndicesAnalyzeForAllAsync( /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesAnalyze(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -7499,26 +8550,29 @@ public ElasticsearchResponse IndicesAnalyze(string index, object body, Fun /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesAnalyzeAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -7531,25 +8585,30 @@ public Task> IndicesAnalyzeAsync(string index, objec /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesAnalyze(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -7562,25 +8621,30 @@ public ElasticsearchResponse IndicesAnalyze(string index, obj /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesAnalyzeAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_analyze".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AnalyzeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AnalyzeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -7590,25 +8654,28 @@ public Task> IndicesAnalyzeAsync(string /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesClearCacheForAll(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -7618,25 +8685,28 @@ public ElasticsearchResponse IndicesClearCacheForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesClearCacheForAllAsync(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -7647,24 +8717,29 @@ public Task> IndicesClearCacheForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesClearCacheForAll(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -7675,24 +8750,29 @@ public ElasticsearchResponse IndicesClearCacheForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesClearCacheForAllAsync(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -7703,26 +8783,29 @@ public Task> IndicesClearCacheForAllAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesClearCache(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -7733,26 +8816,29 @@ public ElasticsearchResponse IndicesClearCache(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesClearCacheAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -7764,25 +8850,30 @@ public Task> IndicesClearCacheAsync(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesClearCache(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -7794,25 +8885,30 @@ public ElasticsearchResponse IndicesClearCache(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesClearCacheAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -7822,25 +8918,28 @@ public Task> IndicesClearCacheAsync(str /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesClearCacheGetForAll(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7850,25 +8949,28 @@ public ElasticsearchResponse IndicesClearCacheGetForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesClearCacheGetForAllAsync(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7879,24 +8981,29 @@ public Task> IndicesClearCacheGetForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesClearCacheGetForAll(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -7907,24 +9014,29 @@ public ElasticsearchResponse IndicesClearCacheGetForAll(Func< /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesClearCacheGetForAllAsync(Func requestParameters = null) { var url = "_cache/clear"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -7935,26 +9047,29 @@ public Task> IndicesClearCacheGetForAll ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesClearCacheGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7965,26 +9080,29 @@ public ElasticsearchResponse IndicesClearCacheGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesClearCacheGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -7996,25 +9114,30 @@ public Task> IndicesClearCacheGetAsync(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesClearCacheGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -8026,25 +9149,30 @@ public ElasticsearchResponse IndicesClearCacheGet(string inde ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesClearCacheGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_cache/clear".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ClearCacheQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ClearCacheRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -8055,26 +9183,29 @@ public Task> IndicesClearCacheGetAsync( ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesClose(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_close".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CloseIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CloseIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -8085,26 +9216,29 @@ public ElasticsearchResponse IndicesClose(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesCloseAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_close".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CloseIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CloseIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -8116,25 +9250,30 @@ public Task> IndicesCloseAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesClose(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_close".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CloseIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CloseIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -8146,25 +9285,30 @@ public ElasticsearchResponse IndicesClose(string index, Func< ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesCloseAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_close".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CloseIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CloseIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -8176,26 +9320,29 @@ public Task> IndicesCloseAsync(string i /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesCreate(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -8207,26 +9354,29 @@ public ElasticsearchResponse IndicesCreate(string index, object body, Func /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesCreateAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -8239,25 +9389,30 @@ public Task> IndicesCreateAsync(string index, object /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesCreate(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -8270,25 +9425,30 @@ public ElasticsearchResponse IndicesCreate(string index, obje /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesCreateAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -8300,26 +9460,29 @@ public Task> IndicesCreateAsync(string /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesCreatePost(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -8331,26 +9494,29 @@ public ElasticsearchResponse IndicesCreatePost(string index, object body, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesCreatePostAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -8363,25 +9529,30 @@ public Task> IndicesCreatePostAsync(string index, ob /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesCreatePost(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -8394,25 +9565,30 @@ public ElasticsearchResponse IndicesCreatePost(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesCreatePostAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new CreateIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new CreateIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -8423,26 +9599,29 @@ public Task> IndicesCreatePostAsync(str ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesDelete(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8453,26 +9632,29 @@ public ElasticsearchResponse IndicesDelete(string index, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesDeleteAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8484,25 +9666,30 @@ public Task> IndicesDeleteAsync(string index, FuncSee 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesDelete(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8514,25 +9701,30 @@ public ElasticsearchResponse IndicesDelete(string index, Func ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesDeleteAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8544,27 +9736,30 @@ public Task> IndicesDeleteAsync(string /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesDeleteAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesDeleteAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8576,27 +9771,30 @@ public ElasticsearchResponse IndicesDeleteAlias(string index, string name, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesDeleteAliasAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesDeleteAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesDeleteAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8609,26 +9807,31 @@ public Task> IndicesDeleteAliasAsync(string index, s /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesDeleteAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesDeleteAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8641,26 +9844,31 @@ public ElasticsearchResponse IndicesDeleteAlias(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesDeleteAliasAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesDeleteAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesDeleteAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8672,27 +9880,30 @@ public Task> IndicesDeleteAliasAsync(st /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8704,27 +9915,30 @@ public ElasticsearchResponse IndicesDeleteMapping(string index, string typ /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesDeleteMappingAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8737,26 +9951,31 @@ public Task> IndicesDeleteMappingAsync(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8769,26 +9988,31 @@ public ElasticsearchResponse IndicesDeleteMapping(string inde /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesDeleteMappingAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8799,26 +10023,29 @@ public Task> IndicesDeleteMappingAsync( ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8829,26 +10056,29 @@ public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesDeleteTemplateForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8860,25 +10090,30 @@ public Task> IndicesDeleteTemplateForAllAsync(string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8890,25 +10125,30 @@ public ElasticsearchResponse IndicesDeleteTemplateForAll(stri ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesDeleteTemplateForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -8920,27 +10160,30 @@ public Task> IndicesDeleteTemplateForAl /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8952,27 +10195,30 @@ public ElasticsearchResponse IndicesDeleteWarmer(string index, string name /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesDeleteWarmerAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -8985,26 +10231,31 @@ public Task> IndicesDeleteWarmerAsync(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -9017,26 +10268,31 @@ public ElasticsearchResponse IndicesDeleteWarmer(string index /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesDeleteWarmerAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new DeleteWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new DeleteWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -9047,26 +10303,29 @@ public Task> IndicesDeleteWarmerAsync(s ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesExists(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9077,26 +10336,29 @@ public ElasticsearchResponse IndicesExists(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesExistsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9108,25 +10370,30 @@ public Task> IndicesExistsAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesExists(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9138,25 +10405,30 @@ public ElasticsearchResponse IndicesExists(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesExistsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndexExistsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndexExistsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9167,26 +10439,29 @@ public Task> IndicesExistsAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9197,26 +10472,29 @@ public ElasticsearchResponse IndicesExistsAliasForAll(string name, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesExistsAliasForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9228,25 +10506,30 @@ public Task> IndicesExistsAliasForAllAsync(string na ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesExistsAliasForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9258,25 +10541,30 @@ public ElasticsearchResponse IndicesExistsAliasForAll(string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesExistsAliasForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9288,27 +10576,30 @@ public Task> IndicesExistsAliasForAllAs /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesExistsAlias(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9320,27 +10611,30 @@ public ElasticsearchResponse IndicesExistsAlias(string index, string name, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesExistsAliasAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9353,26 +10647,31 @@ public Task> IndicesExistsAliasAsync(string index, s /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesExistsAlias(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9385,26 +10684,31 @@ public ElasticsearchResponse IndicesExistsAlias(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesExistsAliasAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9415,26 +10719,29 @@ public Task> IndicesExistsAliasAsync(st ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesExistsAlias(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9445,26 +10752,29 @@ public ElasticsearchResponse IndicesExistsAlias(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesExistsAliasAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9476,25 +10786,30 @@ public Task> IndicesExistsAliasAsync(string index, F ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesExistsAlias(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9506,25 +10821,30 @@ public ElasticsearchResponse IndicesExistsAlias(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesExistsAliasAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9535,26 +10855,29 @@ public Task> IndicesExistsAliasAsync(st ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9565,26 +10888,29 @@ public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesExistsTemplateForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9596,25 +10922,30 @@ public Task> IndicesExistsTemplateForAllAsync(string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9626,25 +10957,30 @@ public ElasticsearchResponse IndicesExistsTemplateForAll(stri ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesExistsTemplateForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9656,27 +10992,30 @@ public Task> IndicesExistsTemplateForAl /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesExistsType(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTypeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTypeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9688,27 +11027,30 @@ public ElasticsearchResponse IndicesExistsType(string index, string type, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesExistsTypeAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTypeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTypeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -9721,26 +11063,31 @@ public Task> IndicesExistsTypeAsync(string index, st /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesExistsType(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTypeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTypeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9753,26 +11100,31 @@ public ElasticsearchResponse IndicesExistsType(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesExistsTypeAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesExistsTypeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesExistsTypeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -9782,25 +11134,28 @@ public Task> IndicesExistsTypeAsync(str /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesFlushForAll(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -9810,25 +11165,28 @@ public ElasticsearchResponse IndicesFlushForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesFlushForAllAsync(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -9839,24 +11197,29 @@ public Task> IndicesFlushForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesFlushForAll(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -9867,24 +11230,29 @@ public ElasticsearchResponse IndicesFlushForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesFlushForAllAsync(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -9895,26 +11263,29 @@ public Task> IndicesFlushForAllAsync(Fu ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesFlush(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -9925,26 +11296,29 @@ public ElasticsearchResponse IndicesFlush(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesFlushAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -9956,25 +11330,30 @@ public Task> IndicesFlushAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesFlush(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -9986,25 +11365,30 @@ public ElasticsearchResponse IndicesFlush(string index, Func< ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesFlushAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -10014,25 +11398,28 @@ public Task> IndicesFlushAsync(string i /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesFlushGetForAll(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10042,25 +11429,28 @@ public ElasticsearchResponse IndicesFlushGetForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesFlushGetForAllAsync(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10071,24 +11461,29 @@ public Task> IndicesFlushGetForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesFlushGetForAll(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10099,24 +11494,29 @@ public ElasticsearchResponse IndicesFlushGetForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesFlushGetForAllAsync(Func requestParameters = null) { var url = "_flush"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10127,26 +11527,29 @@ public Task> IndicesFlushGetForAllAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesFlushGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10157,26 +11560,29 @@ public ElasticsearchResponse IndicesFlushGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesFlushGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10188,25 +11594,30 @@ public Task> IndicesFlushGetAsync(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesFlushGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10218,25 +11629,30 @@ public ElasticsearchResponse IndicesFlushGet(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesFlushGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_flush".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new FlushQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new FlushRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10246,25 +11662,28 @@ public Task> IndicesFlushGetAsync(strin /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAliasForAll(Func requestParameters = null) { var url = "_alias"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10274,25 +11693,28 @@ public ElasticsearchResponse IndicesGetAliasForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasForAllAsync(Func requestParameters = null) { var url = "_alias"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10303,24 +11725,29 @@ public Task> IndicesGetAliasForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAliasForAll(Func requestParameters = null) { var url = "_alias"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10331,24 +11758,29 @@ public ElasticsearchResponse IndicesGetAliasForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasForAllAsync(Func requestParameters = null) { var url = "_alias"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10359,26 +11791,29 @@ public Task> IndicesGetAliasForAllAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAliasForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10389,26 +11824,29 @@ public ElasticsearchResponse IndicesGetAliasForAll(string name, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10420,25 +11858,30 @@ public Task> IndicesGetAliasForAllAsync(string name, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAliasForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10450,25 +11893,30 @@ public ElasticsearchResponse IndicesGetAliasForAll(string nam ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10480,27 +11928,30 @@ public Task> IndicesGetAliasForAllAsync /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAlias(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10512,27 +11963,30 @@ public ElasticsearchResponse IndicesGetAlias(string index, string name, Fu /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10545,26 +11999,31 @@ public Task> IndicesGetAliasAsync(string index, stri /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAlias(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10577,26 +12036,31 @@ public ElasticsearchResponse IndicesGetAlias(string index, st /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10607,26 +12071,29 @@ public Task> IndicesGetAliasAsync(strin ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAlias(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10637,26 +12104,29 @@ public ElasticsearchResponse IndicesGetAlias(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10668,25 +12138,30 @@ public Task> IndicesGetAliasAsync(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAlias(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10698,25 +12173,30 @@ public ElasticsearchResponse IndicesGetAlias(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_alias".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10726,25 +12206,28 @@ public Task> IndicesGetAliasAsync(strin /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAliasesForAll(Func requestParameters = null) { var url = "_aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10754,25 +12237,28 @@ public ElasticsearchResponse IndicesGetAliasesForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasesForAllAsync(Func requestParameters = null) { var url = "_aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10783,24 +12269,29 @@ public Task> IndicesGetAliasesForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAliasesForAll(Func requestParameters = null) { var url = "_aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10811,24 +12302,29 @@ public ElasticsearchResponse IndicesGetAliasesForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasesForAllAsync(Func requestParameters = null) { var url = "_aliases"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10839,26 +12335,29 @@ public Task> IndicesGetAliasesForAllAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAliases(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_aliases".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10869,26 +12368,29 @@ public ElasticsearchResponse IndicesGetAliases(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasesAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_aliases".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10900,25 +12402,30 @@ public Task> IndicesGetAliasesAsync(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAliases(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_aliases".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10930,25 +12437,30 @@ public ElasticsearchResponse IndicesGetAliases(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasesAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_aliases".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -10960,27 +12472,30 @@ public Task> IndicesGetAliasesAsync(str /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAliases(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -10992,27 +12507,30 @@ public ElasticsearchResponse IndicesGetAliases(string index, string name, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasesAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11025,26 +12543,31 @@ public Task> IndicesGetAliasesAsync(string index, st /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAliases(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11057,26 +12580,31 @@ public ElasticsearchResponse IndicesGetAliases(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasesAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_aliases/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11087,26 +12615,29 @@ public Task> IndicesGetAliasesAsync(str ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetAliasesForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11117,26 +12648,29 @@ public ElasticsearchResponse IndicesGetAliasesForAll(string name, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetAliasesForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11148,25 +12682,30 @@ public Task> IndicesGetAliasesForAllAsync(string nam ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetAliasesForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11178,25 +12717,30 @@ public ElasticsearchResponse IndicesGetAliasesForAll(string n ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetAliasesForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_aliases/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetAliasesQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetAliasesRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11207,26 +12751,29 @@ public Task> IndicesGetAliasesForAllAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func requestParameters = null) { field.ThrowIfNullOrEmpty("field"); var url = "_mapping/field/{0}".F(Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11237,26 +12784,29 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Fu ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetFieldMappingForAllAsync(string field, Func requestParameters = null) { field.ThrowIfNullOrEmpty("field"); var url = "_mapping/field/{0}".F(Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11268,25 +12818,30 @@ public Task> IndicesGetFieldMappingForAllAsync(strin ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func requestParameters = null) { field.ThrowIfNullOrEmpty("field"); var url = "_mapping/field/{0}".F(Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11298,25 +12853,30 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetFieldMappingForAllAsync(string field, Func requestParameters = null) { field.ThrowIfNullOrEmpty("field"); var url = "_mapping/field/{0}".F(Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11328,27 +12888,30 @@ public Task> IndicesGetFieldMappingForA /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); field.ThrowIfNullOrEmpty("field"); var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11360,27 +12923,30 @@ public ElasticsearchResponse IndicesGetFieldMapping(string index, string f /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetFieldMappingAsync(string index, string field, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); field.ThrowIfNullOrEmpty("field"); var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11393,26 +12959,31 @@ public Task> IndicesGetFieldMappingAsync(string inde /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); field.ThrowIfNullOrEmpty("field"); var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11425,26 +12996,31 @@ public ElasticsearchResponse IndicesGetFieldMapping(string in /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetFieldMappingAsync(string index, string field, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); field.ThrowIfNullOrEmpty("field"); var url = "{0}/_mapping/field/{1}".F(Encoded(index), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11456,27 +13032,30 @@ public Task> IndicesGetFieldMappingAsyn /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); field.ThrowIfNullOrEmpty("field"); var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11488,27 +13067,30 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, str /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); field.ThrowIfNullOrEmpty("field"); var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11521,26 +13103,31 @@ public Task> IndicesGetFieldMappingForAllAsync(strin /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); field.ThrowIfNullOrEmpty("field"); var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11553,26 +13140,31 @@ public ElasticsearchResponse IndicesGetFieldMappingForAll(str /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); field.ThrowIfNullOrEmpty("field"); var url = "_mapping/{0}/field/{1}".F(Encoded(type), Encoded(field)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11585,28 +13177,31 @@ public Task> IndicesGetFieldMappingForA ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11619,28 +13214,31 @@ public ElasticsearchResponse IndicesGetFieldMapping(string index, string t ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11654,27 +13252,32 @@ public Task> IndicesGetFieldMappingAsync(string inde ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11688,27 +13291,32 @@ public ElasticsearchResponse IndicesGetFieldMapping(string in ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesGetFieldMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesGetFieldMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11718,25 +13326,28 @@ public Task> IndicesGetFieldMappingAsyn /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetMappingForAll(Func requestParameters = null) { var url = "_mapping"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11746,25 +13357,28 @@ public ElasticsearchResponse IndicesGetMappingForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetMappingForAllAsync(Func requestParameters = null) { var url = "_mapping"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11775,24 +13389,29 @@ public Task> IndicesGetMappingForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetMappingForAll(Func requestParameters = null) { var url = "_mapping"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11803,24 +13422,29 @@ public ElasticsearchResponse IndicesGetMappingForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetMappingForAllAsync(Func requestParameters = null) { var url = "_mapping"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11831,26 +13455,29 @@ public Task> IndicesGetMappingForAllAsy ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetMapping(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mapping".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11861,26 +13488,29 @@ public ElasticsearchResponse IndicesGetMapping(string index, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetMappingAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mapping".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11892,25 +13522,30 @@ public Task> IndicesGetMappingAsync(string index, Fu ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetMapping(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mapping".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11922,25 +13557,30 @@ public ElasticsearchResponse IndicesGetMapping(string index, ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetMappingAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mapping".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -11951,26 +13591,29 @@ public Task> IndicesGetMappingAsync(str ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetMappingForAll(string type, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -11981,26 +13624,29 @@ public ElasticsearchResponse IndicesGetMappingForAll(string type, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetMappingForAllAsync(string type, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12012,25 +13658,30 @@ public Task> IndicesGetMappingForAllAsync(string typ ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetMappingForAll(string type, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12042,25 +13693,30 @@ public ElasticsearchResponse IndicesGetMappingForAll(string t ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetMappingForAllAsync(string type, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12072,27 +13728,30 @@ public Task> IndicesGetMappingForAllAsy /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetMapping(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12104,27 +13763,30 @@ public ElasticsearchResponse IndicesGetMapping(string index, string type, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetMappingAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12137,26 +13799,31 @@ public Task> IndicesGetMappingAsync(string index, st /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetMapping(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12169,26 +13836,31 @@ public ElasticsearchResponse IndicesGetMapping(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetMappingAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/_mapping/{1}".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12198,25 +13870,28 @@ public Task> IndicesGetMappingAsync(str /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetSettingsForAll(Func requestParameters = null) { var url = "_settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12226,25 +13901,28 @@ public ElasticsearchResponse IndicesGetSettingsForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetSettingsForAllAsync(Func requestParameters = null) { var url = "_settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12255,24 +13933,29 @@ public Task> IndicesGetSettingsForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetSettingsForAll(Func requestParameters = null) { var url = "_settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12283,24 +13966,29 @@ public ElasticsearchResponse IndicesGetSettingsForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetSettingsForAllAsync(Func requestParameters = null) { var url = "_settings"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12311,26 +13999,29 @@ public Task> IndicesGetSettingsForAllAs ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetSettings(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12341,26 +14032,29 @@ public ElasticsearchResponse IndicesGetSettings(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetSettingsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12372,25 +14066,30 @@ public Task> IndicesGetSettingsAsync(string index, F ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetSettings(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12402,25 +14101,30 @@ public ElasticsearchResponse IndicesGetSettings(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetSettingsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12432,27 +14136,30 @@ public Task> IndicesGetSettingsAsync(st /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetSettings(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12464,27 +14171,30 @@ public ElasticsearchResponse IndicesGetSettings(string index, string name, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetSettingsAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12497,26 +14207,31 @@ public Task> IndicesGetSettingsAsync(string index, s /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetSettings(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12529,26 +14244,31 @@ public ElasticsearchResponse IndicesGetSettings(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetSettingsAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_settings/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12559,26 +14279,29 @@ public Task> IndicesGetSettingsAsync(st ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_settings/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12589,26 +14312,29 @@ public ElasticsearchResponse IndicesGetSettingsForAll(string name, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetSettingsForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_settings/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12620,25 +14346,30 @@ public Task> IndicesGetSettingsForAllAsync(string na ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetSettingsForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_settings/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12650,25 +14381,30 @@ public ElasticsearchResponse IndicesGetSettingsForAll(string ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetSettingsForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_settings/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetIndexSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetIndexSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12678,25 +14414,28 @@ public Task> IndicesGetSettingsForAllAs /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetTemplateForAll(Func requestParameters = null) { var url = "_template"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12706,25 +14445,28 @@ public ElasticsearchResponse IndicesGetTemplateForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetTemplateForAllAsync(Func requestParameters = null) { var url = "_template"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12735,24 +14477,29 @@ public Task> IndicesGetTemplateForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetTemplateForAll(Func requestParameters = null) { var url = "_template"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12763,24 +14510,29 @@ public ElasticsearchResponse IndicesGetTemplateForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetTemplateForAllAsync(Func requestParameters = null) { var url = "_template"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12791,26 +14543,29 @@ public Task> IndicesGetTemplateForAllAs ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12821,26 +14576,29 @@ public ElasticsearchResponse IndicesGetTemplateForAll(string name, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetTemplateForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12852,25 +14610,30 @@ public Task> IndicesGetTemplateForAllAsync(string na ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetTemplateForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12882,25 +14645,30 @@ public ElasticsearchResponse IndicesGetTemplateForAll(string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetTemplateForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12910,25 +14678,28 @@ public Task> IndicesGetTemplateForAllAs /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetWarmerForAll(Func requestParameters = null) { var url = "_warmer"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12938,25 +14709,28 @@ public ElasticsearchResponse IndicesGetWarmerForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetWarmerForAllAsync(Func requestParameters = null) { var url = "_warmer"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -12967,24 +14741,29 @@ public Task> IndicesGetWarmerForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetWarmerForAll(Func requestParameters = null) { var url = "_warmer"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -12995,24 +14774,29 @@ public ElasticsearchResponse IndicesGetWarmerForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetWarmerForAllAsync(Func requestParameters = null) { var url = "_warmer"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13023,26 +14807,29 @@ public Task> IndicesGetWarmerForAllAsyn ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetWarmer(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_warmer".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13053,26 +14840,29 @@ public ElasticsearchResponse IndicesGetWarmer(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetWarmerAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_warmer".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13084,25 +14874,30 @@ public Task> IndicesGetWarmerAsync(string index, Fun ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetWarmer(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_warmer".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13114,25 +14909,30 @@ public ElasticsearchResponse IndicesGetWarmer(string index, F ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetWarmerAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_warmer".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13144,27 +14944,30 @@ public Task> IndicesGetWarmerAsync(stri /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetWarmer(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13176,27 +14979,30 @@ public ElasticsearchResponse IndicesGetWarmer(string index, string name, F /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetWarmerAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13209,26 +15015,31 @@ public Task> IndicesGetWarmerAsync(string index, str /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetWarmer(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13241,26 +15052,31 @@ public ElasticsearchResponse IndicesGetWarmer(string index, s /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetWarmerAsync(string index, string name, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13271,26 +15087,29 @@ public Task> IndicesGetWarmerAsync(stri ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetWarmerForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13301,26 +15120,29 @@ public ElasticsearchResponse IndicesGetWarmerForAll(string name, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetWarmerForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13332,25 +15154,30 @@ public Task> IndicesGetWarmerForAllAsync(string name ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetWarmerForAll(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13362,25 +15189,30 @@ public ElasticsearchResponse IndicesGetWarmerForAll(string na ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetWarmerForAllAsync(string name, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13393,28 +15225,31 @@ public Task> IndicesGetWarmerForAllAsyn ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13427,28 +15262,31 @@ public ElasticsearchResponse IndicesGetWarmer(string index, string type, s ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesGetWarmerAsync(string index, string type, string name, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13462,27 +15300,32 @@ public Task> IndicesGetWarmerAsync(string index, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13496,27 +15339,32 @@ public ElasticsearchResponse IndicesGetWarmer(string index, s ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesGetWarmerAsync(string index, string type, string name, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new GetWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new GetWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13527,26 +15375,29 @@ public Task> IndicesGetWarmerAsync(stri ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesOpen(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_open".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OpenIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OpenIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -13557,26 +15408,29 @@ public ElasticsearchResponse IndicesOpen(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesOpenAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_open".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OpenIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OpenIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -13588,25 +15442,30 @@ public Task> IndicesOpenAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesOpen(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_open".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OpenIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OpenIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -13618,25 +15477,30 @@ public ElasticsearchResponse IndicesOpen(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesOpenAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_open".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OpenIndexQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OpenIndexRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -13646,25 +15510,28 @@ public Task> IndicesOpenAsync(string in /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesOptimizeForAll(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -13674,25 +15541,28 @@ public ElasticsearchResponse IndicesOptimizeForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesOptimizeForAllAsync(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -13703,24 +15573,29 @@ public Task> IndicesOptimizeForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesOptimizeForAll(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -13731,24 +15606,29 @@ public ElasticsearchResponse IndicesOptimizeForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesOptimizeForAllAsync(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -13759,26 +15639,29 @@ public Task> IndicesOptimizeForAllAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesOptimize(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -13789,26 +15672,29 @@ public ElasticsearchResponse IndicesOptimize(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesOptimizeAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -13820,25 +15706,30 @@ public Task> IndicesOptimizeAsync(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesOptimize(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -13850,25 +15741,30 @@ public ElasticsearchResponse IndicesOptimize(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesOptimizeAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -13878,25 +15774,28 @@ public Task> IndicesOptimizeAsync(strin /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesOptimizeGetForAll(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13906,25 +15805,28 @@ public ElasticsearchResponse IndicesOptimizeGetForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesOptimizeGetForAllAsync(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -13935,24 +15837,29 @@ public Task> IndicesOptimizeGetForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesOptimizeGetForAll(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13963,24 +15870,29 @@ public ElasticsearchResponse IndicesOptimizeGetForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesOptimizeGetForAllAsync(Func requestParameters = null) { var url = "_optimize"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -13991,26 +15903,29 @@ public Task> IndicesOptimizeGetForAllAs ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesOptimizeGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -14021,26 +15936,29 @@ public ElasticsearchResponse IndicesOptimizeGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesOptimizeGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -14052,25 +15970,30 @@ public Task> IndicesOptimizeGetAsync(string index, F ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesOptimizeGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -14082,25 +16005,30 @@ public ElasticsearchResponse IndicesOptimizeGet(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesOptimizeGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_optimize".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new OptimizeQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new OptimizeRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -14113,27 +16041,30 @@ public Task> IndicesOptimizeGetAsync(st ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14146,27 +16077,30 @@ public ElasticsearchResponse IndicesPutAlias(string index, string name, ob ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutAliasAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14180,26 +16114,31 @@ public Task> IndicesPutAliasAsync(string index, stri ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14213,26 +16152,31 @@ public ElasticsearchResponse IndicesPutAlias(string index, st ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutAliasAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14244,26 +16188,29 @@ public Task> IndicesPutAliasAsync(strin /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14275,26 +16222,29 @@ public ElasticsearchResponse IndicesPutAliasForAll(string name, object bod /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutAliasForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14307,25 +16257,30 @@ public Task> IndicesPutAliasForAllAsync(string name, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14338,25 +16293,30 @@ public ElasticsearchResponse IndicesPutAliasForAll(string nam /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutAliasForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14369,27 +16329,30 @@ public Task> IndicesPutAliasForAllAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -14402,27 +16365,30 @@ public ElasticsearchResponse IndicesPutAliasPost(string index, string name ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutAliasPostAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -14436,26 +16402,31 @@ public Task> IndicesPutAliasPostAsync(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -14469,26 +16440,31 @@ public ElasticsearchResponse IndicesPutAliasPost(string index ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutAliasPostAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_alias/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -14500,26 +16476,29 @@ public Task> IndicesPutAliasPostAsync(s /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -14531,26 +16510,29 @@ public ElasticsearchResponse IndicesPutAliasPostForAll(string name, object /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutAliasPostForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -14563,25 +16545,30 @@ public Task> IndicesPutAliasPostForAllAsync(string n /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -14594,25 +16581,30 @@ public ElasticsearchResponse IndicesPutAliasPostForAll(string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutAliasPostForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_alias/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesPutAliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesPutAliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -14625,27 +16617,30 @@ public Task> IndicesPutAliasPostForAllA ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14658,27 +16653,30 @@ public ElasticsearchResponse IndicesPutMapping(string index, string type, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutMappingAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14692,26 +16690,31 @@ public Task> IndicesPutMappingAsync(string index, st ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14725,26 +16728,31 @@ public ElasticsearchResponse IndicesPutMapping(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutMappingAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14756,26 +16764,29 @@ public Task> IndicesPutMappingAsync(str /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14787,26 +16798,29 @@ public ElasticsearchResponse IndicesPutMappingForAll(string type, object b /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutMappingForAllAsync(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -14819,25 +16833,30 @@ public Task> IndicesPutMappingForAllAsync(string typ /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14850,25 +16869,30 @@ public ElasticsearchResponse IndicesPutMappingForAll(string t /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutMappingForAllAsync(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -14881,27 +16905,30 @@ public Task> IndicesPutMappingForAllAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -14914,27 +16941,30 @@ public ElasticsearchResponse IndicesPutMappingPost(string index, string ty ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutMappingPostAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -14948,26 +16978,31 @@ public Task> IndicesPutMappingPostAsync(string index ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -14981,26 +17016,31 @@ public ElasticsearchResponse IndicesPutMappingPost(string ind ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutMappingPostAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mapping".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -15012,26 +17052,29 @@ public Task> IndicesPutMappingPostAsync /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -15043,26 +17086,29 @@ public ElasticsearchResponse IndicesPutMappingPostForAll(string type, obje /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutMappingPostForAllAsync(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -15075,25 +17121,30 @@ public Task> IndicesPutMappingPostForAllAsync(string /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -15106,25 +17157,30 @@ public ElasticsearchResponse IndicesPutMappingPostForAll(stri /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutMappingPostForAllAsync(string type, object body, Func requestParameters = null) { type.ThrowIfNullOrEmpty("type"); var url = "_mapping/{0}".F(Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutMappingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutMappingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -15135,25 +17191,28 @@ public Task> IndicesPutMappingPostForAl ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutSettingsForAll(object body, Func requestParameters = null) { var url = "_settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15164,25 +17223,28 @@ public ElasticsearchResponse IndicesPutSettingsForAll(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutSettingsForAllAsync(object body, Func requestParameters = null) { var url = "_settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15194,24 +17256,29 @@ public Task> IndicesPutSettingsForAllAsync(object bo ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutSettingsForAll(object body, Func requestParameters = null) { var url = "_settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15223,24 +17290,29 @@ public ElasticsearchResponse IndicesPutSettingsForAll(object ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutSettingsForAllAsync(object body, Func requestParameters = null) { var url = "_settings".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15252,26 +17324,29 @@ public Task> IndicesPutSettingsForAllAs /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutSettings(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15283,26 +17358,29 @@ public ElasticsearchResponse IndicesPutSettings(string index, object body, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutSettingsAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15315,25 +17393,30 @@ public Task> IndicesPutSettingsAsync(string index, o /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutSettings(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15346,25 +17429,30 @@ public ElasticsearchResponse IndicesPutSettings(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutSettingsAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_settings".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateSettingsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateSettingsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15376,26 +17464,29 @@ public Task> IndicesPutSettingsAsync(st /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15407,26 +17498,29 @@ public ElasticsearchResponse IndicesPutTemplateForAll(string name, object /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutTemplateForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15439,25 +17533,30 @@ public Task> IndicesPutTemplateForAllAsync(string na /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15470,25 +17569,30 @@ public ElasticsearchResponse IndicesPutTemplateForAll(string /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutTemplateForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15500,26 +17604,29 @@ public Task> IndicesPutTemplateForAllAs /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -15531,26 +17638,29 @@ public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, obj /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -15563,25 +17673,30 @@ public Task> IndicesPutTemplatePostForAllAsync(strin /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -15594,25 +17709,30 @@ public ElasticsearchResponse IndicesPutTemplatePostForAll(str /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_template/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutTemplateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutTemplateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -15624,26 +17744,29 @@ public Task> IndicesPutTemplatePostForA /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15655,26 +17778,29 @@ public ElasticsearchResponse IndicesPutWarmerForAll(string name, object bo /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutWarmerForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15687,25 +17813,30 @@ public Task> IndicesPutWarmerForAllAsync(string name /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15718,25 +17849,30 @@ public ElasticsearchResponse IndicesPutWarmerForAll(string na /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutWarmerForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15749,27 +17885,30 @@ public Task> IndicesPutWarmerForAllAsyn ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15782,27 +17921,30 @@ public ElasticsearchResponse IndicesPutWarmer(string index, string name, o ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutWarmerAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15816,26 +17958,31 @@ public Task> IndicesPutWarmerAsync(string index, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15849,26 +17996,31 @@ public ElasticsearchResponse IndicesPutWarmer(string index, s ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutWarmerAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15882,28 +18034,31 @@ public Task> IndicesPutWarmerAsync(stri ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15917,28 +18072,31 @@ public ElasticsearchResponse IndicesPutWarmer(string index, string type, s ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -15953,27 +18111,32 @@ public Task> IndicesPutWarmerAsync(string index, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -15988,27 +18151,32 @@ public ElasticsearchResponse IndicesPutWarmer(string index, s ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -16020,26 +18188,29 @@ public Task> IndicesPutWarmerAsync(stri /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -16051,26 +18222,29 @@ public ElasticsearchResponse IndicesPutWarmerPostForAll(string name, objec /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -16083,25 +18257,30 @@ public Task> IndicesPutWarmerPostForAllAsync(string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -16114,25 +18293,30 @@ public ElasticsearchResponse IndicesPutWarmerPostForAll(strin /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func requestParameters = null) { name.ThrowIfNullOrEmpty("name"); var url = "_warmer/{0}".F(Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -16145,27 +18329,30 @@ public Task> IndicesPutWarmerPostForAll ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -16178,27 +18365,30 @@ public ElasticsearchResponse IndicesPutWarmerPost(string index, string nam ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -16212,26 +18402,31 @@ public Task> IndicesPutWarmerPostAsync(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -16245,26 +18440,31 @@ public ElasticsearchResponse IndicesPutWarmerPost(string inde ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); name.ThrowIfNullOrEmpty("name"); var url = "{0}/_warmer/{1}".F(Encoded(index), Encoded(name)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -16278,28 +18478,31 @@ public Task> IndicesPutWarmerPostAsync( ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -16313,28 +18516,31 @@ public ElasticsearchResponse IndicesPutWarmerPost(string index, string typ ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -16349,27 +18555,32 @@ public Task> IndicesPutWarmerPostAsync(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -16384,27 +18595,32 @@ public ElasticsearchResponse IndicesPutWarmerPost(string inde ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PutWarmerQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PutWarmerRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -16414,25 +18630,28 @@ public Task> IndicesPutWarmerPostAsync( /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesRefreshForAll(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -16442,25 +18661,28 @@ public ElasticsearchResponse IndicesRefreshForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesRefreshForAllAsync(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -16471,24 +18693,29 @@ public Task> IndicesRefreshForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesRefreshForAll(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -16499,24 +18726,29 @@ public ElasticsearchResponse IndicesRefreshForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesRefreshForAllAsync(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -16527,26 +18759,29 @@ public Task> IndicesRefreshForAllAsync( ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesRefresh(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -16557,26 +18792,29 @@ public ElasticsearchResponse IndicesRefresh(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesRefreshAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -16588,25 +18826,30 @@ public Task> IndicesRefreshAsync(string index, Func< ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesRefresh(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -16618,25 +18861,30 @@ public ElasticsearchResponse IndicesRefresh(string index, Fun ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesRefreshAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -16646,25 +18894,28 @@ public Task> IndicesRefreshAsync(string /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesRefreshGetForAll(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -16674,25 +18925,28 @@ public ElasticsearchResponse IndicesRefreshGetForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesRefreshGetForAllAsync(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -16703,24 +18957,29 @@ public Task> IndicesRefreshGetForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesRefreshGetForAll(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -16731,24 +18990,29 @@ public ElasticsearchResponse IndicesRefreshGetForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesRefreshGetForAllAsync(Func requestParameters = null) { var url = "_refresh"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -16759,26 +19023,29 @@ public Task> IndicesRefreshGetForAllAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesRefreshGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -16789,26 +19056,29 @@ public ElasticsearchResponse IndicesRefreshGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesRefreshGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -16820,25 +19090,30 @@ public Task> IndicesRefreshGetAsync(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesRefreshGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -16850,25 +19125,30 @@ public ElasticsearchResponse IndicesRefreshGet(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesRefreshGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_refresh".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new RefreshQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new RefreshRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -16878,25 +19158,28 @@ public Task> IndicesRefreshGetAsync(str /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesSegmentsForAll(Func requestParameters = null) { var url = "_segments"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -16906,25 +19189,28 @@ public ElasticsearchResponse IndicesSegmentsForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesSegmentsForAllAsync(Func requestParameters = null) { var url = "_segments"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -16935,24 +19221,29 @@ public Task> IndicesSegmentsForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesSegmentsForAll(Func requestParameters = null) { var url = "_segments"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -16963,24 +19254,29 @@ public ElasticsearchResponse IndicesSegmentsForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesSegmentsForAllAsync(Func requestParameters = null) { var url = "_segments"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -16991,26 +19287,29 @@ public Task> IndicesSegmentsForAllAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesSegments(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_segments".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17021,26 +19320,29 @@ public ElasticsearchResponse IndicesSegments(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesSegmentsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_segments".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17052,25 +19354,30 @@ public Task> IndicesSegmentsAsync(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesSegments(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_segments".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17082,25 +19389,30 @@ public ElasticsearchResponse IndicesSegments(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesSegmentsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_segments".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SegmentsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SegmentsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17110,25 +19422,28 @@ public Task> IndicesSegmentsAsync(strin /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesSnapshotIndexForAll(Func requestParameters = null) { var url = "_gateway/snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -17138,25 +19453,28 @@ public ElasticsearchResponse IndicesSnapshotIndexForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesSnapshotIndexForAllAsync(Func requestParameters = null) { var url = "_gateway/snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -17167,24 +19485,29 @@ public Task> IndicesSnapshotIndexForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesSnapshotIndexForAll(Func requestParameters = null) { var url = "_gateway/snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -17195,24 +19518,29 @@ public ElasticsearchResponse IndicesSnapshotIndexForAll(Func< /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesSnapshotIndexForAllAsync(Func requestParameters = null) { var url = "_gateway/snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -17223,26 +19551,29 @@ public Task> IndicesSnapshotIndexForAll ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesSnapshotIndex(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_gateway/snapshot".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -17253,26 +19584,29 @@ public ElasticsearchResponse IndicesSnapshotIndex(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesSnapshotIndexAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_gateway/snapshot".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -17284,25 +19618,30 @@ public Task> IndicesSnapshotIndexAsync(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesSnapshotIndex(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_gateway/snapshot".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -17314,25 +19653,30 @@ public ElasticsearchResponse IndicesSnapshotIndex(string inde ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesSnapshotIndexAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_gateway/snapshot".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -17342,25 +19686,28 @@ public Task> IndicesSnapshotIndexAsync( /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesStatsForAll(Func requestParameters = null) { var url = "_stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17370,25 +19717,28 @@ public ElasticsearchResponse IndicesStatsForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesStatsForAllAsync(Func requestParameters = null) { var url = "_stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17399,24 +19749,29 @@ public Task> IndicesStatsForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesStatsForAll(Func requestParameters = null) { var url = "_stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17427,24 +19782,29 @@ public ElasticsearchResponse IndicesStatsForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesStatsForAllAsync(Func requestParameters = null) { var url = "_stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17455,26 +19815,29 @@ public Task> IndicesStatsForAllAsync(Fu ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesStatsForAll(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17485,26 +19848,29 @@ public ElasticsearchResponse IndicesStatsForAll(string metric, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesStatsForAllAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17516,25 +19882,30 @@ public Task> IndicesStatsForAllAsync(string metric, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesStatsForAll(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17546,25 +19917,30 @@ public ElasticsearchResponse IndicesStatsForAll(string metric ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesStatsForAllAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17575,26 +19951,29 @@ public Task> IndicesStatsForAllAsync(st ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesStats(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_stats".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17605,26 +19984,29 @@ public ElasticsearchResponse IndicesStats(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesStatsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_stats".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17636,25 +20018,30 @@ public Task> IndicesStatsAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesStats(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_stats".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17666,25 +20053,30 @@ public ElasticsearchResponse IndicesStats(string index, Func< ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesStatsAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_stats".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17696,27 +20088,30 @@ public Task> IndicesStatsAsync(string i /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesStats(string index, string metric, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); metric.ThrowIfNullOrEmpty("metric"); var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17728,27 +20123,30 @@ public ElasticsearchResponse IndicesStats(string index, string metric, Fun /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesStatsAsync(string index, string metric, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); metric.ThrowIfNullOrEmpty("metric"); var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17761,26 +20159,31 @@ public Task> IndicesStatsAsync(string index, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesStats(string index, string metric, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); metric.ThrowIfNullOrEmpty("metric"); var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17793,26 +20196,31 @@ public ElasticsearchResponse IndicesStats(string index, strin /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesStatsAsync(string index, string metric, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); metric.ThrowIfNullOrEmpty("metric"); var url = "{0}/_stats/{1}".F(Encoded(index), Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17822,25 +20230,28 @@ public Task> IndicesStatsAsync(string i /// - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesStatusForAll(Func requestParameters = null) { var url = "_status"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17850,25 +20261,28 @@ public ElasticsearchResponse IndicesStatusForAll(Func - If T 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesStatusForAllAsync(Func requestParameters = null) { var url = "_status"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17879,24 +20293,29 @@ public Task> IndicesStatusForAllAsync(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesStatusForAll(Func requestParameters = null) { var url = "_status"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17907,24 +20326,29 @@ public ElasticsearchResponse IndicesStatusForAll(Func - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesStatusForAllAsync(Func requestParameters = null) { var url = "_status"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -17935,26 +20359,29 @@ public Task> IndicesStatusForAllAsync(F ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesStatus(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_status".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17965,26 +20392,29 @@ public ElasticsearchResponse IndicesStatus(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesStatusAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_status".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -17996,25 +20426,30 @@ public Task> IndicesStatusAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesStatus(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_status".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18026,25 +20461,30 @@ public ElasticsearchResponse IndicesStatus(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesStatusAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_status".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new IndicesStatusQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new IndicesStatusRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18055,25 +20495,28 @@ public Task> IndicesStatusAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func requestParameters = null) { var url = "_aliases".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -18084,25 +20527,28 @@ public ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func< ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesUpdateAliasesForAllAsync(object body, Func requestParameters = null) { var url = "_aliases".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AliasRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -18114,24 +20560,29 @@ public Task> IndicesUpdateAliasesForAllAsync(object ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func requestParameters = null) { var url = "_aliases".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18143,24 +20594,29 @@ public ElasticsearchResponse IndicesUpdateAliasesForAll(objec ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesUpdateAliasesForAllAsync(object body, Func requestParameters = null) { var url = "_aliases".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new AliasQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new AliasRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18170,25 +20626,28 @@ public Task> IndicesUpdateAliasesForAll /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesValidateQueryGetForAll(Func requestParameters = null) { var url = "_validate/query"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18198,25 +20657,28 @@ public ElasticsearchResponse IndicesValidateQueryGetForAll(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesValidateQueryGetForAllAsync(Func requestParameters = null) { var url = "_validate/query"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18227,24 +20689,29 @@ public Task> IndicesValidateQueryGetForAllAsync(Func /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesValidateQueryGetForAll(Func requestParameters = null) { var url = "_validate/query"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18255,24 +20722,29 @@ public ElasticsearchResponse IndicesValidateQueryGetForAll(Fu /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesValidateQueryGetForAllAsync(Func requestParameters = null) { var url = "_validate/query"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18283,26 +20755,29 @@ public Task> IndicesValidateQueryGetFor ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesValidateQueryGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18313,26 +20788,29 @@ public ElasticsearchResponse IndicesValidateQueryGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesValidateQueryGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18344,25 +20822,30 @@ public Task> IndicesValidateQueryGetAsync(string ind ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesValidateQueryGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18374,25 +20857,30 @@ public ElasticsearchResponse IndicesValidateQueryGet(string i ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesValidateQueryGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18404,27 +20892,30 @@ public Task> IndicesValidateQueryGetAsy /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18436,27 +20927,30 @@ public ElasticsearchResponse IndicesValidateQueryGet(string index, string /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesValidateQueryGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18469,26 +20963,31 @@ public Task> IndicesValidateQueryGetAsync(string ind /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18501,26 +21000,31 @@ public ElasticsearchResponse IndicesValidateQueryGet(string i /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesValidateQueryGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18531,25 +21035,28 @@ public Task> IndicesValidateQueryGetAsy ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesValidateQueryForAll(object body, Func requestParameters = null) { var url = "_validate/query".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -18560,25 +21067,28 @@ public ElasticsearchResponse IndicesValidateQueryForAll(object body, Func< ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesValidateQueryForAllAsync(object body, Func requestParameters = null) { var url = "_validate/query".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -18590,24 +21100,29 @@ public Task> IndicesValidateQueryForAllAsync(object ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesValidateQueryForAll(object body, Func requestParameters = null) { var url = "_validate/query".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18619,24 +21134,29 @@ public ElasticsearchResponse IndicesValidateQueryForAll(objec ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesValidateQueryForAllAsync(object body, Func requestParameters = null) { var url = "_validate/query".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18648,26 +21168,29 @@ public Task> IndicesValidateQueryForAll /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesValidateQuery(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -18679,26 +21202,29 @@ public ElasticsearchResponse IndicesValidateQuery(string index, object bod /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesValidateQueryAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -18711,25 +21237,30 @@ public Task> IndicesValidateQueryAsync(string index, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesValidateQuery(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18742,25 +21273,30 @@ public ElasticsearchResponse IndicesValidateQuery(string inde /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesValidateQueryAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_validate/query".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18773,27 +21309,30 @@ public Task> IndicesValidateQueryAsync( ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -18806,27 +21345,30 @@ public ElasticsearchResponse IndicesValidateQuery(string index, string typ ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> IndicesValidateQueryAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -18840,26 +21382,31 @@ public Task> IndicesValidateQueryAsync(string index, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18873,26 +21420,31 @@ public ElasticsearchResponse IndicesValidateQuery(string inde ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> IndicesValidateQueryAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_validate/query".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ValidateQueryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ValidateQueryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -18902,25 +21454,28 @@ public Task> IndicesValidateQueryAsync( /// - 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Info(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new InfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new InfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18930,25 +21485,28 @@ public ElasticsearchResponse Info(Func q /// - 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> InfoAsync(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new InfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new InfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -18959,24 +21517,29 @@ public Task> InfoAsync(Func - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Info(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new InfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new InfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -18987,24 +21550,29 @@ public ElasticsearchResponse Info(Func - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> InfoAsync(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new InfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new InfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19014,25 +21582,28 @@ public Task> InfoAsync(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MgetGet(Func requestParameters = null) { var url = "_mget"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19042,25 +21613,28 @@ public ElasticsearchResponse MgetGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MgetGetAsync(Func requestParameters = null) { var url = "_mget"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19071,24 +21645,29 @@ public Task> MgetGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MgetGet(Func requestParameters = null) { var url = "_mget"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19099,24 +21678,29 @@ public ElasticsearchResponse MgetGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MgetGetAsync(Func requestParameters = null) { var url = "_mget"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19127,26 +21711,29 @@ public Task> MgetGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MgetGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19157,26 +21744,29 @@ public ElasticsearchResponse MgetGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MgetGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19188,25 +21778,30 @@ public Task> MgetGetAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MgetGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19218,25 +21813,30 @@ public ElasticsearchResponse MgetGet(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MgetGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19248,27 +21848,30 @@ public Task> MgetGetAsync(string index, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MgetGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19280,27 +21883,30 @@ public ElasticsearchResponse MgetGet(string index, string type, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MgetGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19313,26 +21919,31 @@ public Task> MgetGetAsync(string index, string type, /// ///The name of the index ///The type of the document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MgetGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19345,26 +21956,31 @@ public ElasticsearchResponse MgetGet(string index, string typ /// ///The name of the index ///The type of the document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MgetGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19375,25 +21991,28 @@ public Task> MgetGetAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mget(object body, Func requestParameters = null) { var url = "_mget".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -19404,25 +22023,28 @@ public ElasticsearchResponse Mget(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MgetAsync(object body, Func requestParameters = null) { var url = "_mget".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -19434,24 +22056,29 @@ public Task> MgetAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mget(object body, Func requestParameters = null) { var url = "_mget".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19463,24 +22090,29 @@ public ElasticsearchResponse Mget(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MgetAsync(object body, Func requestParameters = null) { var url = "_mget".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19492,26 +22124,29 @@ public Task> MgetAsync(object body, Fun /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mget(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -19523,26 +22158,29 @@ public ElasticsearchResponse Mget(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MgetAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -19555,25 +22193,30 @@ public Task> MgetAsync(string index, object body, Fu /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mget(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19586,25 +22229,30 @@ public ElasticsearchResponse Mget(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MgetAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mget".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19617,27 +22265,30 @@ public Task> MgetAsync(string index, ob ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mget(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -19650,27 +22301,30 @@ public ElasticsearchResponse Mget(string index, string type, object body, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MgetAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -19684,26 +22338,31 @@ public Task> MgetAsync(string index, string type, ob ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mget(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19717,26 +22376,31 @@ public ElasticsearchResponse Mget(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MgetAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mget".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19749,28 +22413,31 @@ public Task> MgetAsync(string index, st ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MltGet(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19783,28 +22450,31 @@ public ElasticsearchResponse MltGet(string index, string type, string id, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MltGetAsync(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -19818,27 +22488,32 @@ public Task> MltGetAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MltGet(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19852,27 +22527,32 @@ public ElasticsearchResponse MltGet(string index, string type ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MltGetAsync(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -19886,28 +22566,31 @@ public Task> MltGetAsync(string 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mlt(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -19921,28 +22604,31 @@ public ElasticsearchResponse Mlt(string index, string type, string id, obj ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MltAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -19957,27 +22643,32 @@ public Task> MltAsync(string index, string type, str ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mlt(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -19992,27 +22683,32 @@ public ElasticsearchResponse Mlt(string index, string type, s ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MltAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MoreLikeThisQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MoreLikeThisRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20022,25 +22718,28 @@ public Task> MltAsync(string index, str /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MpercolateGet(Func requestParameters = null) { var url = "_mpercolate"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20050,25 +22749,28 @@ public ElasticsearchResponse MpercolateGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MpercolateGetAsync(Func requestParameters = null) { var url = "_mpercolate"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20079,24 +22781,29 @@ public Task> MpercolateGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MpercolateGet(Func requestParameters = null) { var url = "_mpercolate"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20107,24 +22814,29 @@ public ElasticsearchResponse MpercolateGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MpercolateGetAsync(Func requestParameters = null) { var url = "_mpercolate"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20135,26 +22847,29 @@ public Task> MpercolateGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MpercolateGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20165,26 +22880,29 @@ public ElasticsearchResponse MpercolateGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MpercolateGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20196,25 +22914,30 @@ public Task> MpercolateGetAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MpercolateGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20226,25 +22949,30 @@ public ElasticsearchResponse MpercolateGet(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MpercolateGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20256,27 +22984,30 @@ public Task> MpercolateGetAsync(string /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MpercolateGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20288,27 +23019,30 @@ public ElasticsearchResponse MpercolateGet(string index, string type, Func /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MpercolateGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20321,26 +23055,31 @@ public Task> MpercolateGetAsync(string index, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MpercolateGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20353,26 +23092,31 @@ public ElasticsearchResponse MpercolateGet(string index, stri /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MpercolateGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20383,25 +23127,28 @@ public Task> MpercolateGetAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mpercolate(object body, Func requestParameters = null) { var url = "_mpercolate".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -20412,25 +23159,28 @@ public ElasticsearchResponse Mpercolate(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MpercolateAsync(object body, Func requestParameters = null) { var url = "_mpercolate".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -20442,24 +23192,29 @@ public Task> MpercolateAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mpercolate(object body, Func requestParameters = null) { var url = "_mpercolate".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20471,24 +23226,29 @@ public ElasticsearchResponse Mpercolate(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MpercolateAsync(object body, Func requestParameters = null) { var url = "_mpercolate".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20500,26 +23260,29 @@ public Task> MpercolateAsync(object bod /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mpercolate(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -20531,26 +23294,29 @@ public ElasticsearchResponse Mpercolate(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MpercolateAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -20563,25 +23329,30 @@ public Task> MpercolateAsync(string index, object bo /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mpercolate(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20594,25 +23365,30 @@ public ElasticsearchResponse Mpercolate(string index, object /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MpercolateAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mpercolate".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20625,27 +23401,30 @@ public Task> MpercolateAsync(string ind ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mpercolate(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -20658,27 +23437,30 @@ public ElasticsearchResponse Mpercolate(string index, string type, object ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MpercolateAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -20692,26 +23474,31 @@ public Task> MpercolateAsync(string index, string ty ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mpercolate(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20725,26 +23512,31 @@ public ElasticsearchResponse Mpercolate(string index, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MpercolateAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mpercolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MpercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MpercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -20754,25 +23546,28 @@ public Task> MpercolateAsync(string ind /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MsearchGet(Func requestParameters = null) { var url = "_msearch"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20782,25 +23577,28 @@ public ElasticsearchResponse MsearchGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MsearchGetAsync(Func requestParameters = null) { var url = "_msearch"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20811,24 +23609,29 @@ public Task> MsearchGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MsearchGet(Func requestParameters = null) { var url = "_msearch"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20839,24 +23642,29 @@ public ElasticsearchResponse MsearchGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MsearchGetAsync(Func requestParameters = null) { var url = "_msearch"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20867,26 +23675,29 @@ public Task> MsearchGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MsearchGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20897,26 +23708,29 @@ public ElasticsearchResponse MsearchGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MsearchGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -20928,25 +23742,30 @@ public Task> MsearchGetAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MsearchGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20958,25 +23777,30 @@ public ElasticsearchResponse MsearchGet(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MsearchGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -20988,27 +23812,30 @@ public Task> MsearchGetAsync(string ind /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MsearchGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21020,27 +23847,30 @@ public ElasticsearchResponse MsearchGet(string index, string type, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MsearchGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21053,26 +23883,31 @@ public Task> MsearchGetAsync(string index, string ty /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MsearchGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21085,26 +23920,31 @@ public ElasticsearchResponse MsearchGet(string index, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MsearchGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21115,25 +23955,28 @@ public Task> MsearchGetAsync(string ind ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Msearch(object body, Func requestParameters = null) { var url = "_msearch".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -21144,25 +23987,28 @@ public ElasticsearchResponse Msearch(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MsearchAsync(object body, Func requestParameters = null) { var url = "_msearch".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -21174,24 +24020,29 @@ public Task> MsearchAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Msearch(object body, Func requestParameters = null) { var url = "_msearch".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21203,24 +24054,29 @@ public ElasticsearchResponse Msearch(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MsearchAsync(object body, Func requestParameters = null) { var url = "_msearch".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21232,26 +24088,29 @@ public Task> MsearchAsync(object body, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Msearch(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -21263,26 +24122,29 @@ public ElasticsearchResponse Msearch(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MsearchAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -21295,25 +24157,30 @@ public Task> MsearchAsync(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Msearch(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21326,25 +24193,30 @@ public ElasticsearchResponse Msearch(string index, object bod /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MsearchAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_msearch".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21357,27 +24229,30 @@ public Task> MsearchAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Msearch(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -21390,27 +24265,30 @@ public ElasticsearchResponse Msearch(string index, string type, object bod ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MsearchAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -21424,26 +24302,31 @@ public Task> MsearchAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Msearch(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21457,26 +24340,31 @@ public ElasticsearchResponse Msearch(string index, string typ ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MsearchAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_msearch".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MultiSearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MultiSearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21486,25 +24374,28 @@ public Task> MsearchAsync(string index, /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MtermvectorsGet(Func requestParameters = null) { var url = "_mtermvectors"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21514,25 +24405,28 @@ public ElasticsearchResponse MtermvectorsGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MtermvectorsGetAsync(Func requestParameters = null) { var url = "_mtermvectors"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21543,24 +24437,29 @@ public Task> MtermvectorsGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MtermvectorsGet(Func requestParameters = null) { var url = "_mtermvectors"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21571,24 +24470,29 @@ public ElasticsearchResponse MtermvectorsGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MtermvectorsGetAsync(Func requestParameters = null) { var url = "_mtermvectors"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21599,26 +24503,29 @@ public Task> MtermvectorsGetAsync(Func< ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MtermvectorsGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21629,26 +24536,29 @@ public ElasticsearchResponse MtermvectorsGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MtermvectorsGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21660,25 +24570,30 @@ public Task> MtermvectorsGetAsync(string index, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MtermvectorsGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21690,25 +24605,30 @@ public ElasticsearchResponse MtermvectorsGet(string index, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MtermvectorsGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21720,27 +24640,30 @@ public Task> MtermvectorsGetAsync(strin /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse MtermvectorsGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21752,27 +24675,30 @@ public ElasticsearchResponse MtermvectorsGet(string index, string type, Fu /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MtermvectorsGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -21785,26 +24711,31 @@ public Task> MtermvectorsGetAsync(string index, stri /// ///The index in which the document resides. ///The type of the document. - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse MtermvectorsGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21817,26 +24748,31 @@ public ElasticsearchResponse MtermvectorsGet(string index, st /// ///The index in which the document resides. ///The type of the document. - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MtermvectorsGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -21847,25 +24783,28 @@ public Task> MtermvectorsGetAsync(strin ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mtermvectors(object body, Func requestParameters = null) { var url = "_mtermvectors".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -21876,25 +24815,28 @@ public ElasticsearchResponse Mtermvectors(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MtermvectorsAsync(object body, Func requestParameters = null) { var url = "_mtermvectors".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -21906,24 +24848,29 @@ public Task> MtermvectorsAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mtermvectors(object body, Func requestParameters = null) { var url = "_mtermvectors".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21935,24 +24882,29 @@ public ElasticsearchResponse Mtermvectors(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MtermvectorsAsync(object body, Func requestParameters = null) { var url = "_mtermvectors".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -21964,26 +24916,29 @@ public Task> MtermvectorsAsync(object b /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mtermvectors(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -21995,26 +24950,29 @@ public ElasticsearchResponse Mtermvectors(string index, object body, Func< /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MtermvectorsAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -22027,25 +24985,30 @@ public Task> MtermvectorsAsync(string index, object /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mtermvectors(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -22058,25 +25021,30 @@ public ElasticsearchResponse Mtermvectors(string index, objec /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MtermvectorsAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_mtermvectors".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -22089,27 +25057,30 @@ public Task> MtermvectorsAsync(string i ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Mtermvectors(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -22122,27 +25093,30 @@ public ElasticsearchResponse Mtermvectors(string index, string type, objec ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> MtermvectorsAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -22156,26 +25130,31 @@ public Task> MtermvectorsAsync(string index, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Mtermvectors(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -22189,26 +25168,31 @@ public ElasticsearchResponse Mtermvectors(string index, strin ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> MtermvectorsAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_mtermvectors".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new MtermvectorsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new MtermvectorsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -22218,25 +25202,28 @@ public Task> MtermvectorsAsync(string i /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesHotThreadsForAll(Func requestParameters = null) { var url = "_cluster/nodes/hotthreads"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22246,25 +25233,28 @@ public ElasticsearchResponse NodesHotThreadsForAll(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesHotThreadsForAllAsync(Func requestParameters = null) { var url = "_cluster/nodes/hotthreads"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22275,24 +25265,29 @@ public Task> NodesHotThreadsForAllAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesHotThreadsForAll(Func requestParameters = null) { var url = "_cluster/nodes/hotthreads"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22303,24 +25298,29 @@ public ElasticsearchResponse NodesHotThreadsForAll(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesHotThreadsForAllAsync(Func requestParameters = null) { var url = "_cluster/nodes/hotthreads"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22331,26 +25331,29 @@ public Task> NodesHotThreadsForAllAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesHotThreads(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22361,26 +25364,29 @@ public ElasticsearchResponse NodesHotThreads(string node_id, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesHotThreadsAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22392,25 +25398,30 @@ public Task> NodesHotThreadsAsync(string node_id, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesHotThreads(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22422,25 +25433,30 @@ public ElasticsearchResponse NodesHotThreads(string node_id, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesHotThreadsAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/hotthreads".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesHotThreadsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesHotThreadsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22450,25 +25466,28 @@ public Task> NodesHotThreadsAsync(strin /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesInfoForAll(Func requestParameters = null) { var url = "_nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22478,25 +25497,28 @@ public ElasticsearchResponse NodesInfoForAll(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesInfoForAllAsync(Func requestParameters = null) { var url = "_nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22507,24 +25529,29 @@ public Task> NodesInfoForAllAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesInfoForAll(Func requestParameters = null) { var url = "_nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22535,24 +25562,29 @@ public ElasticsearchResponse NodesInfoForAll(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesInfoForAllAsync(Func requestParameters = null) { var url = "_nodes"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22563,26 +25595,29 @@ public Task> NodesInfoForAllAsync(Func< ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesInfo(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22593,26 +25628,29 @@ public ElasticsearchResponse NodesInfo(string node_id, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesInfoAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22624,25 +25662,30 @@ public Task> NodesInfoAsync(string node_id, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesInfo(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22654,25 +25697,30 @@ public ElasticsearchResponse NodesInfo(string node_id, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesInfoAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22683,26 +25731,29 @@ public Task> NodesInfoAsync(string node ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesInfoForAll(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22713,26 +25764,29 @@ public ElasticsearchResponse NodesInfoForAll(string metric, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesInfoForAllAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22744,25 +25798,30 @@ public Task> NodesInfoForAllAsync(string metric, Fun ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesInfoForAll(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22774,25 +25833,30 @@ public ElasticsearchResponse NodesInfoForAll(string metric, F ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesInfoForAllAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22804,27 +25868,30 @@ public Task> NodesInfoForAllAsync(strin /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesInfo(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22836,27 +25903,30 @@ public ElasticsearchResponse NodesInfo(string node_id, string metric, Func /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesInfoAsync(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -22869,26 +25939,31 @@ public Task> NodesInfoAsync(string node_id, string m /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesInfo(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22901,26 +25976,31 @@ public ElasticsearchResponse NodesInfo(string node_id, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesInfoAsync(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesInfoQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesInfoRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -22930,25 +26010,28 @@ public Task> NodesInfoAsync(string node /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesShutdownForAll(Func requestParameters = null) { var url = "_shutdown"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -22958,25 +26041,28 @@ public ElasticsearchResponse NodesShutdownForAll(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesShutdownForAllAsync(Func requestParameters = null) { var url = "_shutdown"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -22987,24 +26073,29 @@ public Task> NodesShutdownForAllAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesShutdownForAll(Func requestParameters = null) { var url = "_shutdown"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -23015,24 +26106,29 @@ public ElasticsearchResponse NodesShutdownForAll(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesShutdownForAllAsync(Func requestParameters = null) { var url = "_shutdown"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -23043,26 +26139,29 @@ public Task> NodesShutdownForAllAsync(F ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesShutdown(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -23073,26 +26172,29 @@ public ElasticsearchResponse NodesShutdown(string node_id, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesShutdownAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, data: null, + requestParameters: requestParams ); } @@ -23104,25 +26206,30 @@ public Task> NodesShutdownAsync(string node_id, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesShutdown(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -23134,25 +26241,30 @@ public ElasticsearchResponse NodesShutdown(string node_id, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesShutdownAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_cluster/nodes/{0}/_shutdown".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesShutdownQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesShutdownRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, data: null, + requestParameters: requestParams )); } @@ -23162,25 +26274,28 @@ public Task> NodesShutdownAsync(string /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesStatsForAll(Func requestParameters = null) { var url = "_nodes/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23190,25 +26305,28 @@ public ElasticsearchResponse NodesStatsForAll(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesStatsForAllAsync(Func requestParameters = null) { var url = "_nodes/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23219,24 +26337,29 @@ public Task> NodesStatsForAllAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesStatsForAll(Func requestParameters = null) { var url = "_nodes/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23247,24 +26370,29 @@ public ElasticsearchResponse NodesStatsForAll(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesStatsForAllAsync(Func requestParameters = null) { var url = "_nodes/stats"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23275,26 +26403,29 @@ public Task> NodesStatsForAllAsync(Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesStats(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}/stats".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23305,26 +26436,29 @@ public ElasticsearchResponse NodesStats(string node_id, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesStatsAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}/stats".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23336,25 +26470,30 @@ public Task> NodesStatsAsync(string node_id, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesStats(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}/stats".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23366,25 +26505,30 @@ public ElasticsearchResponse NodesStats(string node_id, Func< ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesStatsAsync(string node_id, Func requestParameters = null) { node_id.ThrowIfNullOrEmpty("node_id"); var url = "_nodes/{0}/stats".F(Encoded(node_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23395,26 +26539,29 @@ public Task> NodesStatsAsync(string nod ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesStatsForAll(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23425,26 +26572,29 @@ public ElasticsearchResponse NodesStatsForAll(string metric, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesStatsForAllAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23456,25 +26606,30 @@ public Task> NodesStatsForAllAsync(string metric, Fu ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesStatsForAll(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23486,25 +26641,30 @@ public ElasticsearchResponse NodesStatsForAll(string metric, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesStatsForAllAsync(string metric, Func requestParameters = null) { metric.ThrowIfNullOrEmpty("metric"); var url = "_nodes/stats/{0}".F(Encoded(metric)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23516,27 +26676,30 @@ public Task> NodesStatsForAllAsync(stri /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesStats(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23548,27 +26711,30 @@ public ElasticsearchResponse NodesStats(string node_id, string metric, Fun /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesStatsAsync(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23581,26 +26747,31 @@ public Task> NodesStatsAsync(string node_id, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesStats(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23613,26 +26784,31 @@ public ElasticsearchResponse NodesStats(string node_id, strin /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesStatsAsync(string node_id, string metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23644,27 +26820,30 @@ public Task> NodesStatsAsync(string nod /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23676,27 +26855,30 @@ public ElasticsearchResponse NodesStatsForAll(string metric, string index_ /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesStatsForAllAsync(string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23709,26 +26891,31 @@ public Task> NodesStatsForAllAsync(string metric, st /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23741,26 +26928,31 @@ public ElasticsearchResponse NodesStatsForAll(string metric, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesStatsForAllAsync(string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23773,28 +26965,31 @@ public Task> NodesStatsForAllAsync(stri ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23807,28 +27002,31 @@ public ElasticsearchResponse NodesStats(string node_id, string metric, str ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23842,27 +27040,32 @@ public Task> NodesStatsAsync(string node_id, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23876,27 +27079,32 @@ public ElasticsearchResponse NodesStats(string node_id, strin ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new NodesStatsQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new NodesStatsRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -23908,27 +27116,30 @@ public Task> NodesStatsAsync(string nod /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse PercolateGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23940,27 +27151,30 @@ public ElasticsearchResponse PercolateGet(string index, string type, Func< /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> PercolateGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -23973,26 +27187,31 @@ public Task> PercolateGetAsync(string index, string /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse PercolateGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24005,26 +27224,31 @@ public ElasticsearchResponse PercolateGet(string index, strin /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> PercolateGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24037,28 +27261,31 @@ public Task> PercolateGetAsync(string i ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse PercolateGet(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -24071,28 +27298,31 @@ public ElasticsearchResponse PercolateGet(string index, string type, strin ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> PercolateGetAsync(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -24106,27 +27336,32 @@ public Task> PercolateGetAsync(string index, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse PercolateGet(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24140,27 +27375,32 @@ public ElasticsearchResponse PercolateGet(string index, strin ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> PercolateGetAsync(string index, string type, string id, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24173,27 +27413,30 @@ public Task> PercolateGetAsync(string i ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Percolate(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -24206,27 +27449,30 @@ public ElasticsearchResponse Percolate(string index, string type, object b ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> PercolateAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -24240,26 +27486,31 @@ public Task> PercolateAsync(string index, string typ ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Percolate(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24273,26 +27524,31 @@ public ElasticsearchResponse Percolate(string index, string t ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> PercolateAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_percolate".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24306,28 +27562,31 @@ public Task> PercolateAsync(string inde ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Percolate(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -24341,28 +27600,31 @@ public ElasticsearchResponse Percolate(string index, string type, string i ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> PercolateAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -24377,27 +27639,32 @@ public Task> PercolateAsync(string index, string typ ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Percolate(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24412,27 +27679,32 @@ public ElasticsearchResponse Percolate(string index, string t ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> PercolateAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PercolateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PercolateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24442,25 +27714,28 @@ public Task> PercolateAsync(string inde /// - 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Ping(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -24470,25 +27745,28 @@ public ElasticsearchResponse Ping(Func q /// - 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> PingAsync(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PingRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("HEAD", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "HEAD", url, data: null, + requestParameters: requestParams ); } @@ -24499,24 +27777,29 @@ public Task> PingAsync(Func - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Ping(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -24527,24 +27810,29 @@ public ElasticsearchResponse Ping(Func - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> PingAsync(Func requestParameters = null) { var url = ""; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new PingQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new PingRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("HEAD", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "HEAD", url, data: null, + requestParameters: requestParams )); } @@ -24554,25 +27842,28 @@ public Task> PingAsync(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ScrollGet(Func requestParameters = null) { var url = "_search/scroll"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -24582,25 +27873,28 @@ public ElasticsearchResponse ScrollGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ScrollGetAsync(Func requestParameters = null) { var url = "_search/scroll"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -24611,24 +27905,29 @@ public Task> ScrollGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ScrollGet(Func requestParameters = null) { var url = "_search/scroll"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24639,24 +27938,29 @@ public ElasticsearchResponse ScrollGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ScrollGetAsync(Func requestParameters = null) { var url = "_search/scroll"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24667,26 +27971,29 @@ public Task> ScrollGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse ScrollGet(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -24697,26 +28004,29 @@ public ElasticsearchResponse ScrollGet(string scroll_id, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ScrollGetAsync(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -24728,25 +28038,30 @@ public Task> ScrollGetAsync(string scroll_id, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse ScrollGet(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24758,25 +28073,30 @@ public ElasticsearchResponse ScrollGet(string scroll_id, Func ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ScrollGetAsync(string scroll_id, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -24787,25 +28107,28 @@ public Task> ScrollGetAsync(string scro ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Scroll(object body, Func requestParameters = null) { var url = "_search/scroll".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -24816,25 +28139,28 @@ public ElasticsearchResponse Scroll(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ScrollAsync(object body, Func requestParameters = null) { var url = "_search/scroll".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -24846,24 +28172,29 @@ public Task> ScrollAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Scroll(object body, Func requestParameters = null) { var url = "_search/scroll".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24875,24 +28206,29 @@ public ElasticsearchResponse Scroll(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ScrollAsync(object body, Func requestParameters = null) { var url = "_search/scroll".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24904,26 +28240,29 @@ public Task> ScrollAsync(object body, F /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Scroll(string scroll_id, object body, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -24935,26 +28274,29 @@ public ElasticsearchResponse Scroll(string scroll_id, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> ScrollAsync(string scroll_id, object body, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -24967,25 +28309,30 @@ public Task> ScrollAsync(string scroll_id, object bo /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Scroll(string scroll_id, object body, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -24998,25 +28345,30 @@ public ElasticsearchResponse Scroll(string scroll_id, object /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> ScrollAsync(string scroll_id, object body, Func requestParameters = null) { scroll_id.ThrowIfNullOrEmpty("scroll_id"); var url = "_search/scroll/{0}".F(Encoded(scroll_id)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new ScrollQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new ScrollRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25026,25 +28378,28 @@ public Task> ScrollAsync(string scroll_ /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SearchGet(Func requestParameters = null) { var url = "_search"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -25054,25 +28409,28 @@ public ElasticsearchResponse SearchGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SearchGetAsync(Func requestParameters = null) { var url = "_search"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -25083,24 +28441,29 @@ public Task> SearchGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SearchGet(Func requestParameters = null) { var url = "_search"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -25111,24 +28474,29 @@ public ElasticsearchResponse SearchGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SearchGetAsync(Func requestParameters = null) { var url = "_search"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -25139,26 +28507,29 @@ public Task> SearchGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SearchGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -25169,26 +28540,29 @@ public ElasticsearchResponse SearchGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SearchGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -25200,25 +28574,30 @@ public Task> SearchGetAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SearchGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -25230,25 +28609,30 @@ public ElasticsearchResponse SearchGet(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SearchGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -25260,27 +28644,30 @@ public Task> SearchGetAsync(string inde /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SearchGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -25292,27 +28679,30 @@ public ElasticsearchResponse SearchGet(string index, string type, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SearchGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -25325,26 +28715,31 @@ public Task> SearchGetAsync(string index, string typ /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SearchGet(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -25357,26 +28752,31 @@ public ElasticsearchResponse SearchGet(string index, string t /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SearchGetAsync(string index, string type, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -25387,25 +28787,28 @@ public Task> SearchGetAsync(string inde ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Search(object body, Func requestParameters = null) { var url = "_search".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -25416,25 +28819,28 @@ public ElasticsearchResponse Search(object body, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SearchAsync(object body, Func requestParameters = null) { var url = "_search".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -25446,24 +28852,29 @@ public Task> SearchAsync(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Search(object body, Func requestParameters = null) { var url = "_search".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25475,24 +28886,29 @@ public ElasticsearchResponse Search(object body, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SearchAsync(object body, Func requestParameters = null) { var url = "_search".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25504,26 +28920,29 @@ public Task> SearchAsync(object body, F /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Search(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -25535,26 +28954,29 @@ public ElasticsearchResponse Search(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SearchAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -25567,25 +28989,30 @@ public Task> SearchAsync(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Search(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25598,25 +29025,30 @@ public ElasticsearchResponse Search(string index, object body /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SearchAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_search".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25629,27 +29061,30 @@ public Task> SearchAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Search(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -25662,27 +29097,30 @@ public ElasticsearchResponse Search(string index, string type, object body ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SearchAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -25696,26 +29134,31 @@ public Task> SearchAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Search(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25729,26 +29172,31 @@ public ElasticsearchResponse Search(string index, string type ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SearchAsync(string index, string type, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); type.ThrowIfNullOrEmpty("type"); var url = "{0}/{1}/_search".F(Encoded(index), Encoded(type)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SearchQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SearchRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25761,27 +29209,30 @@ public Task> SearchAsync(string index, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -25794,27 +29245,30 @@ public ElasticsearchResponse SnapshotCreate(string repository, string snap ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -25828,26 +29282,31 @@ public Task> SnapshotCreateAsync(string repository, ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -25861,26 +29320,31 @@ public ElasticsearchResponse SnapshotCreate(string repository ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -25893,27 +29357,30 @@ public Task> SnapshotCreateAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -25926,27 +29393,30 @@ public ElasticsearchResponse SnapshotCreatePost(string repository, string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -25960,26 +29430,31 @@ public Task> SnapshotCreatePostAsync(string reposito ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -25993,26 +29468,31 @@ public ElasticsearchResponse SnapshotCreatePost(string reposi ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -26024,26 +29504,29 @@ public Task> SnapshotCreatePostAsync(st /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "PUT", url, body, + requestParameters: requestParams ); } @@ -26055,26 +29538,29 @@ public ElasticsearchResponse SnapshotCreateRepository(string repository, o /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotCreateRepositoryAsync(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("PUT", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "PUT", url, body, + requestParameters: requestParams ); } @@ -26087,25 +29573,30 @@ public Task> SnapshotCreateRepositoryAsync(string re /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -26118,25 +29609,30 @@ public ElasticsearchResponse SnapshotCreateRepository(string /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotCreateRepositoryAsync(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("PUT", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "PUT", url, body, + requestParameters: requestParams )); } @@ -26148,26 +29644,29 @@ public Task> SnapshotCreateRepositoryAs /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -26179,26 +29678,29 @@ public ElasticsearchResponse SnapshotCreateRepositoryPost(string repositor /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -26211,25 +29713,30 @@ public Task> SnapshotCreateRepositoryPostAsync(strin /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -26242,25 +29749,30 @@ public ElasticsearchResponse SnapshotCreateRepositoryPost(str /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotCreateRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotCreateRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -26272,27 +29784,30 @@ public Task> SnapshotCreateRepositoryPo /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -26304,27 +29819,30 @@ public ElasticsearchResponse SnapshotDelete(string repository, string snap /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotDeleteAsync(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -26337,26 +29855,31 @@ public Task> SnapshotDeleteAsync(string repository, /// ///A repository name ///A snapshot name - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -26369,26 +29892,31 @@ public ElasticsearchResponse SnapshotDelete(string repository /// ///A repository name ///A snapshot name - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotDeleteAsync(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -26399,26 +29927,29 @@ public Task> SnapshotDeleteAsync(string ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotDeleteRepository(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -26429,26 +29960,29 @@ public ElasticsearchResponse SnapshotDeleteRepository(string repository, F ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotDeleteRepositoryAsync(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("DELETE", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "DELETE", url, data: null, + requestParameters: requestParams ); } @@ -26460,25 +29994,30 @@ public Task> SnapshotDeleteRepositoryAsync(string re ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotDeleteRepository(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -26490,25 +30029,30 @@ public ElasticsearchResponse SnapshotDeleteRepository(string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotDeleteRepositoryAsync(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotDeleteRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotDeleteRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("DELETE", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "DELETE", url, data: null, + requestParameters: requestParams )); } @@ -26520,27 +30064,30 @@ public Task> SnapshotDeleteRepositoryAs /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -26552,27 +30099,30 @@ public ElasticsearchResponse SnapshotGet(string repository, string snapsho /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotGetAsync(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -26585,26 +30135,31 @@ public Task> SnapshotGetAsync(string repository, str /// ///A repository name ///A comma-separated list of snapshot names - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -26617,26 +30172,31 @@ public ElasticsearchResponse SnapshotGet(string repository, s /// ///A repository name ///A comma-separated list of snapshot names - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotGetAsync(string repository, string snapshot, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -26646,25 +30206,28 @@ public Task> SnapshotGetAsync(string re /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotGetRepository(Func requestParameters = null) { var url = "_snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -26674,25 +30237,28 @@ public ElasticsearchResponse SnapshotGetRepository(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotGetRepositoryAsync(Func requestParameters = null) { var url = "_snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -26703,24 +30269,29 @@ public Task> SnapshotGetRepositoryAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotGetRepository(Func requestParameters = null) { var url = "_snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -26731,24 +30302,29 @@ public ElasticsearchResponse SnapshotGetRepository(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotGetRepositoryAsync(Func requestParameters = null) { var url = "_snapshot"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -26759,26 +30335,29 @@ public Task> SnapshotGetRepositoryAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotGetRepository(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -26789,26 +30368,29 @@ public ElasticsearchResponse SnapshotGetRepository(string repository, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotGetRepositoryAsync(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -26820,25 +30402,30 @@ public Task> SnapshotGetRepositoryAsync(string repos ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotGetRepository(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -26850,25 +30437,30 @@ public ElasticsearchResponse SnapshotGetRepository(string rep ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotGetRepositoryAsync(string repository, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); var url = "_snapshot/{0}".F(Encoded(repository)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotGetRepositoryQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotGetRepositoryRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -26881,27 +30473,30 @@ public Task> SnapshotGetRepositoryAsync ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotRestoreQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRestoreRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -26914,27 +30509,30 @@ public ElasticsearchResponse SnapshotRestore(string repository, string sna ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotRestoreQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRestoreRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -26948,26 +30546,31 @@ public Task> SnapshotRestoreAsync(string repository, ///A repository name ///A snapshot name ///Details of what to restore - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotRestoreQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRestoreRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -26981,26 +30584,31 @@ public ElasticsearchResponse SnapshotRestore(string repositor ///A repository name ///A snapshot name ///Details of what to restore - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func requestParameters = null) { repository.ThrowIfNullOrEmpty("repository"); snapshot.ThrowIfNullOrEmpty("snapshot"); var url = "_snapshot/{0}/{1}/_restore".F(Encoded(repository), Encoded(snapshot)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SnapshotRestoreQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SnapshotRestoreRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27011,25 +30619,28 @@ public Task> SnapshotRestoreAsync(strin ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Suggest(object body, Func requestParameters = null) { var url = "_suggest".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -27040,25 +30651,28 @@ public ElasticsearchResponse Suggest(object body, FuncSee 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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SuggestAsync(object body, Func requestParameters = null) { var url = "_suggest".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -27070,24 +30684,29 @@ public Task> SuggestAsync(object body, FuncSee 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Suggest(object body, Func requestParameters = null) { var url = "_suggest".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27099,24 +30718,29 @@ public ElasticsearchResponse Suggest(object body, FuncSee 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SuggestAsync(object body, Func requestParameters = null) { var url = "_suggest".F(); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27128,26 +30752,29 @@ public Task> SuggestAsync(object body, /// ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Suggest(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -27159,26 +30786,29 @@ public ElasticsearchResponse Suggest(string index, object body, Func ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SuggestAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -27191,25 +30821,30 @@ public Task> SuggestAsync(string index, object body, /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Suggest(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27222,25 +30857,30 @@ public ElasticsearchResponse Suggest(string index, object bod /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SuggestAsync(string index, object body, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27250,25 +30890,28 @@ public Task> SuggestAsync(string index, /// - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SuggestGet(Func requestParameters = null) { var url = "_suggest"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -27278,25 +30921,28 @@ public ElasticsearchResponse SuggestGet(Func - If 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SuggestGetAsync(Func requestParameters = null) { var url = "_suggest"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -27307,24 +30953,29 @@ public Task> SuggestGetAsync(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SuggestGet(Func requestParameters = null) { var url = "_suggest"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -27335,24 +30986,29 @@ public ElasticsearchResponse SuggestGet(Func - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SuggestGetAsync(Func requestParameters = null) { var url = "_suggest"; - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -27363,26 +31019,29 @@ public Task> SuggestGetAsync(FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse SuggestGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -27393,26 +31052,29 @@ public ElasticsearchResponse SuggestGet(string index, FuncSee 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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> SuggestGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -27424,25 +31086,30 @@ public Task> SuggestGetAsync(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse SuggestGet(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -27454,25 +31121,30 @@ public ElasticsearchResponse SuggestGet(string index, FuncSee 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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> SuggestGetAsync(string index, Func requestParameters = null) { index.ThrowIfNullOrEmpty("index"); var url = "{0}/_suggest".F(Encoded(index)); - NameValueCollection nv = null; - if (queryString != null) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new SuggestQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new SuggestRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -27485,28 +31157,31 @@ public Task> SuggestGetAsync(string ind ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse TermvectorGet(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -27519,28 +31194,31 @@ public ElasticsearchResponse TermvectorGet(string index, string type, stri ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> TermvectorGetAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("GET", url, data: null, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "GET", url, data: null, + requestParameters: requestParams ); } @@ -27554,27 +31232,32 @@ public Task> TermvectorGetAsync(string index, string ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse TermvectorGet(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -27588,27 +31271,32 @@ public ElasticsearchResponse TermvectorGet(string index, stri ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> TermvectorGetAsync(string index, string type, string id, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("GET", url, data: null, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "GET", url, data: null, + requestParameters: requestParams )); } @@ -27622,28 +31310,31 @@ public Task> TermvectorGetAsync(string ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Termvector(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -27657,28 +31348,31 @@ public ElasticsearchResponse Termvector(string index, string type, string ///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. - ///Optional state that will be passed to the deserialization call for the response + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> TermvectorAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -27693,27 +31387,32 @@ public Task> TermvectorAsync(string index, string ty ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Termvector(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27728,27 +31427,32 @@ public ElasticsearchResponse Termvector(string index, string ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> TermvectorAsync(string index, string type, string id, object body, Func requestParameters = null) { 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new TermvectorQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new TermvectorRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27762,28 +31466,31 @@ public Task> TermvectorAsync(string ind ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public ElasticsearchResponse Update(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequest("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequest( + "POST", url, body, + requestParameters: requestParams ); } @@ -27797,28 +31504,31 @@ public ElasticsearchResponse Update(string index, string type, string id, ///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 + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. /// - 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) + public Task> UpdateAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateRequestParameters()); + ToNameValueCollection(requestParams); } - return this.DoRequestAsync("POST", url, body, - queryString: nv - , deserializationState: deserializationState + + return this.DoRequestAsync( + "POST", url, body, + requestParameters: requestParams ); } @@ -27833,27 +31543,32 @@ public Task> UpdateAsync(string index, string type, ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public ElasticsearchResponse Update(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.Wrap(this.DoRequest>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.Wrap(this.DoRequest>( + "POST", url, body, + requestParameters: requestParams )); } @@ -27868,27 +31583,32 @@ public ElasticsearchResponse Update(string index, string type ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e result.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) + public Task> UpdateAsync(string index, string type, string id, object body, Func requestParameters = 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) + BaseRequestParameters requestParams = null; + if (requestParameters != null) { - var qs = queryString(new UpdateQueryString()); - if (qs != null) nv = this.ToNameValueCollection(qs); + requestParams = requestParameters(new UpdateRequestParameters()); + ToNameValueCollection(requestParams); } - return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>("POST", url, body, - queryString: nv + + return ElasticsearchResponse.WrapAsync(this.DoRequestAsync>( + "POST", url, body, + requestParameters: requestParams )); } diff --git a/src/Elasticsearch.Net/ElasticsearchClient.cs b/src/Elasticsearch.Net/ElasticsearchClient.cs index cf1925f317e..cf2fb5e8257 100644 --- a/src/Elasticsearch.Net/ElasticsearchClient.cs +++ b/src/Elasticsearch.Net/ElasticsearchClient.cs @@ -45,25 +45,23 @@ 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) - where TQueryString : FluentQueryString + protected void ToNameValueCollection(BaseRequestParameters requestParameters) { - if (qs == null) - return null; - var dict = qs._QueryStringDictionary; + if (requestParameters == null) + return; + var dict = requestParameters._QueryStringDictionary; if (dict == null || dict.Count < 0) - return null; - + return; + var nv = new NameValueCollection(); foreach (var kv in dict.Where(kv => !kv.Key.IsNullOrEmpty())) { nv.Add(kv.Key, this.Stringifier.Stringify(kv.Value)); } - return nv; + requestParameters._queryString = nv; } public string Encoded(object o) @@ -72,15 +70,15 @@ public string Encoded(object o) } - protected ElasticsearchResponse DoRequest(string method, string path, object data = null, NameValueCollection queryString = null, object deserializationState = null) + protected ElasticsearchResponse DoRequest(string method, string path, object data = null, BaseRequestParameters requestParameters = null) { - return this.Transport.DoRequest(method, path, data, queryString, deserializationState); + return this.Transport.DoRequest(method, path, data, requestParameters); } - protected Task> DoRequestAsync(string method, string path, object data = null, NameValueCollection queryString = null, object deserializationState = null) + protected Task> DoRequestAsync(string method, string path, object data = null, BaseRequestParameters requestParameters = null) { - return this.Transport.DoRequestAsync(method, path, data, queryString, deserializationState); + return this.Transport.DoRequestAsync(method, path, data, requestParameters); } } } diff --git a/src/Elasticsearch.Net/Exceptions/OutOfNodesException.cs b/src/Elasticsearch.Net/Exceptions/MaxRetryException.cs similarity index 78% rename from src/Elasticsearch.Net/Exceptions/OutOfNodesException.cs rename to src/Elasticsearch.Net/Exceptions/MaxRetryException.cs index c9c7f155e8e..ddaba3267f0 100644 --- a/src/Elasticsearch.Net/Exceptions/OutOfNodesException.cs +++ b/src/Elasticsearch.Net/Exceptions/MaxRetryException.cs @@ -5,6 +5,10 @@ namespace Elasticsearch.Net.Exceptions { + + /// + /// Thrown when a request has depleeded its max retry setting + /// public class MaxRetryException : Exception { public MaxRetryException(string message) : base(message) @@ -16,4 +20,6 @@ public MaxRetryException(string message, Exception innerException) : base(messag } } + + } diff --git a/src/Elasticsearch.Net/Extensions/TaskExtensions.cs b/src/Elasticsearch.Net/Extensions/TaskExtensions.cs new file mode 100644 index 00000000000..5cd07fd3dac --- /dev/null +++ b/src/Elasticsearch.Net/Extensions/TaskExtensions.cs @@ -0,0 +1,294 @@ +// Copyright (c) 2012 Rizal Almashoor +// Licensed under the MIT license. +// http://gist.github.com/2818038#file_license.txt + +using System; +using System.Linq; +using System.Threading.Tasks; + +namespace Elasticsearch.Net +{ + internal static class TaskHelper + { + // Inspired by http://blogs.msdn.com/b/pfxteam/archive/2010/11/21/10094564.aspx + + public static Task Then(this Task task, Action next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + next(previousTask); + tcs.TrySetResult(default(AsyncVoid)); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Func next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + next(previousTask).ContinueWith(nextTask => + { + if (nextTask.IsFaulted) tcs.TrySetException(nextTask.Exception); + else if (nextTask.IsCanceled) tcs.TrySetCanceled(); + else tcs.TrySetResult(default(AsyncVoid)); + }); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Func next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + tcs.TrySetResult(next(previousTask)); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Func> next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + next(previousTask).ContinueWith(nextTask => + { + if (nextTask.IsFaulted) tcs.TrySetException(nextTask.Exception); + else if (nextTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + tcs.TrySetResult(nextTask.Result); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Action> next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + next(previousTask); + tcs.TrySetResult(default(AsyncVoid)); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Func, Task> next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + next(previousTask).ContinueWith(nextTask => + { + if (nextTask.IsFaulted) tcs.TrySetException(nextTask.Exception); + else if (nextTask.IsCanceled) tcs.TrySetCanceled(); + else tcs.TrySetResult(default(AsyncVoid)); + }); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Func, TNextResult> next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + tcs.TrySetResult(next(previousTask)); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + public static Task Then(this Task task, Func, Task> next) + { + if (task == null) throw new ArgumentNullException("task"); + if (next == null) throw new ArgumentNullException("next"); + + var tcs = new TaskCompletionSource(); + + task.ContinueWith(previousTask => + { + if (previousTask.IsFaulted) tcs.TrySetException(previousTask.Exception); + else if (previousTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + next(previousTask).ContinueWith(nextTask => + { + if (nextTask.IsFaulted) tcs.TrySetException(nextTask.Exception); + else if (nextTask.IsCanceled) tcs.TrySetCanceled(); + else + { + try + { + tcs.TrySetResult(nextTask.Result); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + } + catch (Exception ex) + { + tcs.TrySetException(ex); + } + } + }); + + return tcs.Task; + } + + /// + /// Analogous to the finally block in a try/finally + /// + public static void Finally(this Task task, Action exceptionHandler, Action finalAction = null) + { + task.ContinueWith(t => + { + if (finalAction != null) finalAction(); + + if (t.IsCanceled || !t.IsFaulted || exceptionHandler == null) return; + var innerException = t.Exception.Flatten().InnerExceptions.FirstOrDefault(); + exceptionHandler(innerException ?? t.Exception); + }); + } + } + + public struct AsyncVoid + { + // Based on Brad Wilson's idea, to simulate a non-generic TaskCompletionSource + // http://bradwilson.typepad.com/blog/2012/04/tpl-and-servers-pt4.html + } +} diff --git a/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs b/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs index 990d37efeb2..eb40acab5b0 100644 --- a/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs +++ b/src/Elasticsearch.Net/IElasticsearchClient.Generated.cs @@ -31,13 +31,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Bulk(object body, Func requestParameters = null); ///Represents a POST on /_bulk ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -46,13 +49,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> BulkAsync(object body, Func requestParameters = null); ///Represents a POST on /_bulk ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -62,14 +68,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Bulk(object body, Func requestParameters = null); ///Represents a POST on /_bulk ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -79,14 +88,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> BulkAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_bulk ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -96,13 +108,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Bulk(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_bulk ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -112,13 +127,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> BulkAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_bulk ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -129,14 +147,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Bulk(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_bulk ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -147,14 +168,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> BulkAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_bulk ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -165,13 +189,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Bulk(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_bulk ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -182,13 +209,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string type, object body, Func queryString = null, object deserializationState = null); + Task> BulkAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_bulk ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -200,14 +230,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Bulk(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_bulk ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -219,14 +252,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> BulkAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /_bulk ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -235,13 +271,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse BulkPut(object body, Func requestParameters = null); ///Represents a PUT on /_bulk ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -250,13 +289,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(object body, Func queryString = null, object deserializationState = null); + Task> BulkPutAsync(object body, Func requestParameters = null); ///Represents a PUT on /_bulk ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -266,14 +308,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse BulkPut(object body, Func requestParameters = null); ///Represents a PUT on /_bulk ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -283,14 +328,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> BulkPutAsync(object body, Func requestParameters = null); ///Represents a PUT on /{index}/_bulk ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -300,13 +348,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse BulkPut(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_bulk ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -316,13 +367,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> BulkPutAsync(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_bulk ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -333,14 +387,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse BulkPut(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_bulk ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -351,14 +408,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> BulkPutAsync(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_bulk ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -369,13 +429,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse BulkPut(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_bulk ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -386,13 +449,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> BulkPutAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_bulk ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -404,14 +470,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse BulkPut(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_bulk ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -423,14 +492,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> BulkPutAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on /_cat/aliases ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -438,13 +510,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatAliases(Func requestParameters = null); ///Represents a GET on /_cat/aliases ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -452,13 +527,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatAliasesAsync(Func requestParameters = null); ///Represents a GET on /_cat/aliases ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -467,14 +545,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatAliases(Func requestParameters = null); ///Represents a GET on /_cat/aliases ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -483,14 +564,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatAliasesAsync(Func requestParameters = null); ///Represents a GET on /_cat/aliases/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -499,13 +583,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CatAliases(string name, Func requestParameters = null); ///Represents a GET on /_cat/aliases/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -514,13 +601,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + Task> CatAliasesAsync(string name, Func requestParameters = null); ///Represents a GET on /_cat/aliases/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -530,14 +620,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatAliases(string name, Func requestParameters = null); ///Represents a GET on /_cat/aliases/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -547,14 +640,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatAliasesAsync(string name, Func requestParameters = null); ///Represents a GET on /_cat/allocation ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -562,13 +658,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatAllocation(Func requestParameters = null); ///Represents a GET on /_cat/allocation ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -576,13 +675,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatAllocationAsync(Func requestParameters = null); ///Represents a GET on /_cat/allocation ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -591,14 +693,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatAllocation(Func requestParameters = null); ///Represents a GET on /_cat/allocation ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -607,14 +712,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatAllocationAsync(Func requestParameters = null); ///Represents a GET on /_cat/allocation/{node_id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -623,13 +731,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string node_id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CatAllocation(string node_id, Func requestParameters = 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. @@ -638,13 +749,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string node_id, Func queryString = null, object deserializationState = null); + Task> CatAllocationAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_cat/allocation/{node_id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -654,14 +768,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatAllocation(string node_id, Func requestParameters = 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 @@ -671,14 +788,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatAllocationAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_cat/count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -686,13 +806,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatCount(Func requestParameters = null); ///Represents a GET on /_cat/count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -700,13 +823,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatCountAsync(Func requestParameters = null); ///Represents a GET on /_cat/count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -715,14 +841,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatCount(Func requestParameters = null); ///Represents a GET on /_cat/count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -731,14 +860,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatCountAsync(Func requestParameters = null); ///Represents a GET on /_cat/count/{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -747,13 +879,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CatCount(string index, Func requestParameters = null); ///Represents a GET on /_cat/count/{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -762,13 +897,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> CatCountAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/count/{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -778,14 +916,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatCount(string index, Func requestParameters = null); ///Represents a GET on /_cat/count/{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -795,14 +936,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatCountAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/health ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -810,13 +954,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatHealth(Func requestParameters = null); ///Represents a GET on /_cat/health ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -824,13 +971,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatHealthAsync(Func requestParameters = null); ///Represents a GET on /_cat/health ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -839,14 +989,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatHealth(Func requestParameters = null); ///Represents a GET on /_cat/health ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -855,14 +1008,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatHealthAsync(Func requestParameters = null); ///Represents a GET on /_cat ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -870,13 +1026,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatHelp(Func requestParameters = null); ///Represents a GET on /_cat ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -884,13 +1043,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatHelpAsync(Func requestParameters = null); ///Represents a GET on /_cat ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -899,14 +1061,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatHelp(Func requestParameters = null); ///Represents a GET on /_cat ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -915,14 +1080,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatHelpAsync(Func requestParameters = null); ///Represents a GET on /_cat/indices ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -930,13 +1098,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatIndices(Func requestParameters = null); ///Represents a GET on /_cat/indices ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -944,13 +1115,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatIndicesAsync(Func requestParameters = null); ///Represents a GET on /_cat/indices ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -959,14 +1133,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatIndices(Func requestParameters = null); ///Represents a GET on /_cat/indices ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -975,14 +1152,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatIndicesAsync(Func requestParameters = null); ///Represents a GET on /_cat/indices/{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -991,13 +1171,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CatIndices(string index, Func requestParameters = null); ///Represents a GET on /_cat/indices/{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1006,13 +1189,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> CatIndicesAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/indices/{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1022,14 +1208,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatIndices(string index, Func requestParameters = null); ///Represents a GET on /_cat/indices/{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1039,14 +1228,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatIndicesAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/master ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1054,13 +1246,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatMaster(Func requestParameters = null); ///Represents a GET on /_cat/master ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1068,13 +1263,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatMasterAsync(Func requestParameters = null); ///Represents a GET on /_cat/master ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1083,14 +1281,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatMaster(Func requestParameters = null); ///Represents a GET on /_cat/master ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1099,14 +1300,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatMasterAsync(Func requestParameters = null); ///Represents a GET on /_cat/nodes ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1114,13 +1318,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatNodes(Func requestParameters = null); ///Represents a GET on /_cat/nodes ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1128,13 +1335,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatNodesAsync(Func requestParameters = null); ///Represents a GET on /_cat/nodes ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1143,14 +1353,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatNodes(Func requestParameters = null); ///Represents a GET on /_cat/nodes ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1159,14 +1372,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatNodesAsync(Func requestParameters = null); ///Represents a GET on /_cat/pending_tasks ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1174,13 +1390,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatPendingTasks(Func requestParameters = null); ///Represents a GET on /_cat/pending_tasks ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1188,13 +1407,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatPendingTasksAsync(Func requestParameters = null); ///Represents a GET on /_cat/pending_tasks ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1203,14 +1425,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatPendingTasks(Func requestParameters = null); ///Represents a GET on /_cat/pending_tasks ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1219,14 +1444,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatPendingTasksAsync(Func requestParameters = null); ///Represents a GET on /_cat/recovery ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1234,13 +1462,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatRecovery(Func requestParameters = null); ///Represents a GET on /_cat/recovery ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1248,13 +1479,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatRecoveryAsync(Func requestParameters = null); ///Represents a GET on /_cat/recovery ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1263,14 +1497,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatRecovery(Func requestParameters = null); ///Represents a GET on /_cat/recovery ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1279,14 +1516,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatRecoveryAsync(Func requestParameters = null); ///Represents a GET on /_cat/recovery/{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1295,13 +1535,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CatRecovery(string index, Func requestParameters = null); ///Represents a GET on /_cat/recovery/{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1310,13 +1553,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> CatRecoveryAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/recovery/{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1326,14 +1572,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatRecovery(string index, Func requestParameters = null); ///Represents a GET on /_cat/recovery/{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1343,14 +1592,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatRecoveryAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/shards ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1358,13 +1610,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatShards(Func requestParameters = null); ///Represents a GET on /_cat/shards ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1372,13 +1627,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatShardsAsync(Func requestParameters = null); ///Represents a GET on /_cat/shards ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1387,14 +1645,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatShards(Func requestParameters = null); ///Represents a GET on /_cat/shards ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1403,14 +1664,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatShardsAsync(Func requestParameters = null); ///Represents a GET on /_cat/shards/{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1419,13 +1683,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CatShards(string index, Func requestParameters = null); ///Represents a GET on /_cat/shards/{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1434,13 +1701,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatShardsAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/shards/{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1450,14 +1720,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatShards(string index, Func requestParameters = null); ///Represents a GET on /_cat/shards/{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1467,14 +1740,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatShardsAsync(string index, Func requestParameters = null); ///Represents a GET on /_cat/thread_pool ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1482,13 +1758,16 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CatThreadPool(Func requestParameters = null); ///Represents a GET on /_cat/thread_pool ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1496,13 +1775,16 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CatThreadPoolAsync(Func requestParameters = null); ///Represents a GET on /_cat/thread_pool ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1511,14 +1793,17 @@ public interface IElasticsearchClient /// - can 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CatThreadPool(Func requestParameters = null); ///Represents a GET on /_cat/thread_pool ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1527,14 +1812,17 @@ public interface IElasticsearchClient /// - can 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CatThreadPoolAsync(Func requestParameters = null); ///Represents a DELETE on /_search/scroll/{scroll_id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1543,13 +1831,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 ClearScroll(string scroll_id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ClearScroll(string scroll_id, Func requestParameters = null); ///Represents a DELETE on /_search/scroll/{scroll_id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1558,13 +1849,16 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> ClearScrollAsync(string scroll_id, Func queryString = null, object deserializationState = null); + Task> ClearScrollAsync(string scroll_id, Func requestParameters = null); ///Represents a DELETE on /_search/scroll/{scroll_id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1574,14 +1868,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClearScroll(string scroll_id, Func requestParameters = 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 @@ -1591,14 +1888,17 @@ public interface IElasticsearchClient ///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 - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClearScrollAsync(string scroll_id, Func requestParameters = null); ///Represents a GET on /_cluster/settings ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1606,13 +1906,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterGetSettings(Func requestParameters = null); ///Represents a GET on /_cluster/settings ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1620,13 +1923,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ClusterGetSettingsAsync(Func requestParameters = null); ///Represents a GET on /_cluster/settings ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1635,14 +1941,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterGetSettings(Func requestParameters = null); ///Represents a GET on /_cluster/settings ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1651,14 +1960,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterGetSettingsAsync(Func requestParameters = null); ///Represents a GET on /_cluster/health ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1666,13 +1978,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterHealth(Func requestParameters = null); ///Represents a GET on /_cluster/health ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1680,13 +1995,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ClusterHealthAsync(Func requestParameters = null); ///Represents a GET on /_cluster/health ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1695,14 +2013,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterHealth(Func requestParameters = null); ///Represents a GET on /_cluster/health ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1711,14 +2032,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterHealthAsync(Func requestParameters = null); ///Represents a GET on /_cluster/health/{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1727,13 +2051,16 @@ public interface IElasticsearchClient ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ClusterHealth(string index, Func requestParameters = null); ///Represents a GET on /_cluster/health/{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1742,13 +2069,16 @@ public interface IElasticsearchClient ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ClusterHealthAsync(string index, Func requestParameters = null); ///Represents a GET on /_cluster/health/{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1758,14 +2088,17 @@ public interface IElasticsearchClient ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///Limit the information returned to a specific index - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterHealth(string index, Func requestParameters = null); ///Represents a GET on /_cluster/health/{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1775,14 +2108,17 @@ public interface IElasticsearchClient ///See also: http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/cluster-health.html /// ///Limit the information returned to a specific index - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterHealthAsync(string index, Func requestParameters = null); ///Represents a GET on /_cluster/pending_tasks ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1790,13 +2126,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterPendingTasks(Func requestParameters = null); ///Represents a GET on /_cluster/pending_tasks ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1804,13 +2143,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ClusterPendingTasksAsync(Func requestParameters = null); ///Represents a GET on /_cluster/pending_tasks ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1819,14 +2161,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterPendingTasks(Func requestParameters = null); ///Represents a GET on /_cluster/pending_tasks ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1835,14 +2180,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterPendingTasksAsync(Func requestParameters = null); ///Represents a PUT on /_cluster/settings ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1851,13 +2199,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 ClusterPutSettings(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ClusterPutSettings(object body, Func requestParameters = null); ///Represents a PUT on /_cluster/settings ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1866,13 +2217,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> ClusterPutSettingsAsync(object body, Func queryString = null, object deserializationState = null); + Task> ClusterPutSettingsAsync(object body, Func requestParameters = null); ///Represents a PUT on /_cluster/settings ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1882,14 +2236,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterPutSettings(object body, Func requestParameters = null); ///Represents a PUT on /_cluster/settings ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1899,14 +2256,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterPutSettingsAsync(object body, Func requestParameters = null); ///Represents a POST on /_cluster/reroute ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1915,13 +2275,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 ClusterReroute(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ClusterReroute(object body, Func requestParameters = null); ///Represents a POST on /_cluster/reroute ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1930,13 +2293,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> ClusterRerouteAsync(object body, Func queryString = null, object deserializationState = null); + Task> ClusterRerouteAsync(object body, Func requestParameters = null); ///Represents a POST on /_cluster/reroute ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -1946,14 +2312,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterReroute(object body, Func requestParameters = null); ///Represents a POST on /_cluster/reroute ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -1963,14 +2332,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterRerouteAsync(object body, Func requestParameters = null); ///Represents a GET on /_cluster/state ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1978,13 +2350,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterState(Func requestParameters = null); ///Represents a GET on /_cluster/state ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -1992,13 +2367,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ClusterStateAsync(Func requestParameters = null); ///Represents a GET on /_cluster/state ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2007,14 +2385,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterState(Func requestParameters = null); ///Represents a GET on /_cluster/state ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2023,14 +2404,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterStateAsync(Func requestParameters = null); ///Represents a GET on /_cluster/state/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2039,13 +2423,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterState(string metric, Func requestParameters = null); ///Represents a GET on /_cluster/state/{metric} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2054,13 +2441,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string metric, Func queryString = null, object deserializationState = null); + Task> ClusterStateAsync(string metric, Func requestParameters = null); ///Represents a GET on /_cluster/state/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2070,14 +2460,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterState(string metric, Func requestParameters = null); ///Represents a GET on /_cluster/state/{metric} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2087,14 +2480,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterStateAsync(string metric, Func requestParameters = null); ///Represents a GET on /_cluster/state/{metric}/{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2104,13 +2500,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ClusterState(string metric, string index, Func requestParameters = 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. @@ -2120,13 +2519,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string metric, string index, Func queryString = null, object deserializationState = null); + Task> ClusterStateAsync(string metric, string index, Func requestParameters = null); ///Represents a GET on /_cluster/state/{metric}/{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2137,14 +2539,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterState(string metric, string index, Func requestParameters = 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 @@ -2155,14 +2560,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterStateAsync(string metric, string index, Func requestParameters = null); ///Represents a GET on /_cluster/stats ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2170,13 +2578,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterStats(Func requestParameters = null); ///Represents a GET on /_cluster/stats ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2184,13 +2595,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ClusterStatsAsync(Func requestParameters = null); ///Represents a GET on /_cluster/stats ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2199,14 +2613,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterStats(Func requestParameters = null); ///Represents a GET on /_cluster/stats ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2215,14 +2632,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterStatsAsync(Func requestParameters = null); ///Represents a GET on /_cluster/stats/nodes/{node_id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2231,13 +2651,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ClusterStats(string node_id, Func requestParameters = null); ///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. @@ -2246,13 +2669,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string node_id, Func queryString = null, object deserializationState = null); + Task> ClusterStatsAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_cluster/stats/nodes/{node_id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2262,14 +2688,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ClusterStats(string node_id, Func requestParameters = 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 @@ -2279,14 +2708,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ClusterStatsAsync(string node_id, Func requestParameters = null); ///Represents a POST on /_count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2295,13 +2727,16 @@ public interface IElasticsearchClient ///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 ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Count(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Count(object body, Func requestParameters = null); ///Represents a POST on /_count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2310,13 +2745,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountAsync(object body, Func requestParameters = null); ///Represents a POST on /_count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2326,14 +2764,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Count(object body, Func requestParameters = null); ///Represents a POST on /_count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2343,14 +2784,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2360,13 +2804,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Count(string index, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Count(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2376,13 +2823,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2393,14 +2843,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Count(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2411,14 +2864,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2429,13 +2885,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Count(string index, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Count(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2446,13 +2905,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2464,14 +2926,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Count(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2483,14 +2948,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on /_count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2498,13 +2966,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CountGet(Func requestParameters = null); ///Represents a GET on /_count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2512,13 +2983,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountGetAsync(Func requestParameters = null); ///Represents a GET on /_count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2527,14 +3001,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountGet(Func requestParameters = null); ///Represents a GET on /_count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2543,14 +3020,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2559,13 +3039,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CountGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2574,13 +3057,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2590,14 +3076,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2607,14 +3096,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, Func queryString = null); + Task> CountGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2624,13 +3116,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string type, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CountGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_count ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2640,13 +3135,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2657,14 +3155,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_count ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -2675,14 +3176,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2692,13 +3196,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CountPercolateGet(string index, string type, Func requestParameters = 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. @@ -2708,13 +3215,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountPercolateGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2725,14 +3235,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountPercolateGet(string index, string type, Func requestParameters = 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 @@ -2743,14 +3256,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountPercolateGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2761,13 +3277,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func requestParameters = null); ///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. @@ -2778,13 +3297,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string id, Func queryString = null, object deserializationState = null); + Task> CountPercolateGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2796,14 +3318,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountPercolateGet(string index, string type, string id, Func requestParameters = 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 @@ -2815,14 +3340,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountPercolateGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2833,13 +3361,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse CountPercolate(string index, string type, object body, Func requestParameters = 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. @@ -2850,13 +3381,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountPercolateAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2868,14 +3402,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountPercolate(string index, string type, object body, Func requestParameters = 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 @@ -2887,14 +3424,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> CountPercolateAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2906,13 +3446,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string id, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func requestParameters = 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. @@ -2924,13 +3467,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> CountPercolateAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_percolate/count ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -2943,14 +3489,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse CountPercolate(string index, string type, string id, object body, Func requestParameters = 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 @@ -2963,14 +3512,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> CountPercolateAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2981,13 +3533,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Delete(string index, string type, string id, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/{id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -2998,13 +3553,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> DeleteAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + Task> DeleteAsync(string index, string type, string id, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3016,14 +3574,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Delete(string index, string type, string id, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/{id} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3035,14 +3596,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> DeleteAsync(string index, string type, string id, Func requestParameters = null); ///Represents a DELETE on /{index}/_query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3052,13 +3616,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse DeleteByQuery(string index, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/_query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3068,13 +3635,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> DeleteByQueryAsync(string index, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/_query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3085,14 +3655,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse DeleteByQuery(string index, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/_query ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3103,14 +3676,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> DeleteByQueryAsync(string index, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3121,13 +3697,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3138,13 +3717,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> DeleteByQueryAsync(string index, string type, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3156,14 +3738,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse DeleteByQuery(string index, string type, object body, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_query ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3175,14 +3760,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> DeleteByQueryAsync(string index, string type, object body, Func requestParameters = null); ///Represents a HEAD on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3193,13 +3781,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Exists(string index, string type, string id, Func requestParameters = null); ///Represents a HEAD on /{index}/{type}/{id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3210,13 +3801,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> ExistsAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + Task> ExistsAsync(string index, string type, string id, Func requestParameters = null); ///Represents a HEAD on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3228,14 +3822,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Exists(string index, string type, string id, Func requestParameters = null); ///Represents a HEAD on /{index}/{type}/{id} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3247,14 +3844,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ExistsAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_explain ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3265,13 +3865,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 ExplainGet(string index, string type, string id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ExplainGet(string index, string type, string id, Func requestParameters = 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. @@ -3282,13 +3885,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ExplainGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_explain ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3300,14 +3906,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ExplainGet(string index, string type, string id, Func requestParameters = 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 @@ -3319,14 +3928,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ExplainGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_explain ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3338,13 +3950,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Explain(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Explain(string index, string type, string id, object body, Func requestParameters = 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. @@ -3356,13 +3971,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ExplainAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_explain ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3375,14 +3993,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Explain(string index, string type, string id, object body, Func requestParameters = 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 @@ -3395,14 +4016,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ExplainAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3413,13 +4037,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Get(string index, string type, string id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Get(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3430,13 +4057,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> GetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3448,14 +4078,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Get(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3467,14 +4100,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> GetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_source ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3485,13 +4121,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse GetSource(string index, string type, string id, Func requestParameters = 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. @@ -3502,13 +4141,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> GetSourceAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_source ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3520,14 +4162,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse GetSource(string index, string type, string id, Func requestParameters = 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 @@ -3539,14 +4184,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> GetSourceAsync(string index, string type, string id, Func requestParameters = null); ///Represents a POST on /{index}/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3557,13 +4205,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Index(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3574,13 +4225,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, object body, Func queryString = null, object deserializationState = null); + Task> IndexAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3592,14 +4246,17 @@ public interface IElasticsearchClient ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Index(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3611,14 +4268,17 @@ public interface IElasticsearchClient ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndexAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3630,13 +4290,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string id, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Index(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3648,13 +4311,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndexAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3667,14 +4333,17 @@ public interface IElasticsearchClient ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Index(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3687,14 +4356,17 @@ public interface IElasticsearchClient ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndexAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3705,13 +4377,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndexPut(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3722,13 +4397,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndexPutAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3740,14 +4418,17 @@ public interface IElasticsearchClient ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndexPut(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3759,14 +4440,17 @@ public interface IElasticsearchClient ///The name of the index ///The type of the document ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> IndexPutAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3778,13 +4462,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/{id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3796,13 +4483,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndexPutAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/{id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3815,14 +4505,17 @@ public interface IElasticsearchClient ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndexPut(string index, string type, string id, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/{id} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3835,14 +4528,17 @@ public interface IElasticsearchClient ///The type of the document ///Document ID ///The document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndexPutAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a GET on /_analyze ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3850,13 +4546,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesAnalyzeGetForAll(Func requestParameters = null); ///Represents a GET on /_analyze ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3864,13 +4563,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesAnalyzeGetForAllAsync(Func requestParameters = null); ///Represents a GET on /_analyze ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3879,14 +4581,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesAnalyzeGetForAll(Func requestParameters = null); ///Represents a GET on /_analyze ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3895,14 +4600,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesAnalyzeGetForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_analyze ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3911,13 +4619,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesAnalyzeGet(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesAnalyzeGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_analyze ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3926,13 +4637,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesAnalyzeGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_analyze ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -3942,14 +4656,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesAnalyzeGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_analyze ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -3959,14 +4676,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesAnalyzeGetAsync(string index, Func requestParameters = null); ///Represents a POST on /_analyze ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3975,13 +4695,16 @@ public interface IElasticsearchClient ///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 ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesAnalyzeForAll(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesAnalyzeForAll(object body, Func requestParameters = null); ///Represents a POST on /_analyze ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -3990,13 +4713,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesAnalyzeForAllAsync(object body, Func requestParameters = null); ///Represents a POST on /_analyze ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4006,14 +4732,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesAnalyzeForAll(object body, Func requestParameters = null); ///Represents a POST on /_analyze ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4023,14 +4752,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesAnalyzeForAllAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_analyze ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4040,13 +4772,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesAnalyze(string index, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesAnalyze(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_analyze ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4056,13 +4791,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesAnalyzeAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_analyze ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4073,14 +4811,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesAnalyze(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_analyze ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4091,14 +4832,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesAnalyzeAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /_cache/clear ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4106,13 +4850,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesClearCacheForAll(Func requestParameters = null); ///Represents a POST on /_cache/clear ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4120,13 +4867,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesClearCacheForAllAsync(Func requestParameters = null); ///Represents a POST on /_cache/clear ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4135,14 +4885,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesClearCacheForAll(Func requestParameters = null); ///Represents a POST on /_cache/clear ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4151,14 +4904,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesClearCacheForAllAsync(Func requestParameters = null); ///Represents a POST on /{index}/_cache/clear ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4167,13 +4923,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesClearCache(string index, Func requestParameters = null); ///Represents a POST on /{index}/_cache/clear ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4182,13 +4941,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesClearCacheAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_cache/clear ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4198,14 +4960,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesClearCache(string index, Func requestParameters = null); ///Represents a POST on /{index}/_cache/clear ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4215,14 +4980,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesClearCacheAsync(string index, Func requestParameters = null); ///Represents a GET on /_cache/clear ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4230,13 +4998,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesClearCacheGetForAll(Func requestParameters = null); ///Represents a GET on /_cache/clear ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4244,13 +5015,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesClearCacheGetForAllAsync(Func requestParameters = null); ///Represents a GET on /_cache/clear ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4259,14 +5033,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesClearCacheGetForAll(Func requestParameters = null); ///Represents a GET on /_cache/clear ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4275,14 +5052,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesClearCacheGetForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_cache/clear ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4291,13 +5071,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesClearCacheGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_cache/clear ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4306,13 +5089,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesClearCacheGetAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesClearCacheGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_cache/clear ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4322,14 +5108,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesClearCacheGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_cache/clear ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4339,14 +5128,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesClearCacheGetAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_close ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4355,13 +5147,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesClose(string index, Func requestParameters = null); ///Represents a POST on /{index}/_close ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4370,13 +5165,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesCloseAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_close ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4386,14 +5184,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesClose(string index, Func requestParameters = null); ///Represents a POST on /{index}/_close ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4403,14 +5204,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesCloseAsync(string index, Func queryString = null); + Task> IndicesCloseAsync(string index, Func requestParameters = null); ///Represents a PUT on /{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4420,13 +5224,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesCreate(string index, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesCreate(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4436,13 +5243,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesCreateAsync(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4453,14 +5263,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesCreate(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4471,14 +5284,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesCreateAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4488,13 +5304,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesCreatePost(string index, object body, Func requestParameters = null); ///Represents a POST on /{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4504,13 +5323,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesCreatePostAsync(string index, object body, Func queryString = null, object deserializationState = null); + Task> IndicesCreatePostAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4521,14 +5343,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesCreatePost(string index, object body, Func requestParameters = null); ///Represents a POST on /{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4539,14 +5364,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesCreatePostAsync(string index, object body, Func requestParameters = null); ///Represents a DELETE on /{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4555,13 +5383,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesDelete(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesDelete(string index, Func requestParameters = null); ///Represents a DELETE on /{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4570,13 +5401,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesDeleteAsync(string index, Func requestParameters = null); ///Represents a DELETE on /{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4586,14 +5420,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesDelete(string index, Func requestParameters = null); ///Represents a DELETE on /{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4603,14 +5440,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesDeleteAsync(string index, Func requestParameters = null); ///Represents a DELETE on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4620,13 +5460,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesDeleteAlias(string index, string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4636,13 +5479,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesDeleteAliasAsync(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4653,14 +5499,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesDeleteAlias(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4671,14 +5520,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesDeleteAliasAsync(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_mapping ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4688,13 +5540,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesDeleteMapping(string index, string type, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_mapping ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4704,13 +5559,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesDeleteMappingAsync(string index, string type, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_mapping ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4721,14 +5579,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesDeleteMapping(string index, string type, Func requestParameters = null); ///Represents a DELETE on /{index}/{type}/_mapping ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4739,14 +5600,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesDeleteMappingAsync(string index, string type, Func requestParameters = null); ///Represents a DELETE on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4755,13 +5619,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func requestParameters = null); ///Represents a DELETE on /_template/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4770,13 +5637,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesDeleteTemplateForAllAsync(string name, Func queryString = null, object deserializationState = null); + Task> IndicesDeleteTemplateForAllAsync(string name, Func requestParameters = null); ///Represents a DELETE on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4786,14 +5656,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesDeleteTemplateForAll(string name, Func requestParameters = null); ///Represents a DELETE on /_template/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4803,14 +5676,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesDeleteTemplateForAllAsync(string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4820,13 +5696,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4836,13 +5715,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesDeleteWarmerAsync(string index, string name, Func queryString = null, object deserializationState = null); + Task> IndicesDeleteWarmerAsync(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4853,14 +5735,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesDeleteWarmer(string index, string name, Func requestParameters = null); ///Represents a DELETE on /{index}/_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4871,14 +5756,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesDeleteWarmerAsync(string index, string name, Func requestParameters = null); ///Represents a HEAD on /{index} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4887,13 +5775,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesExists(string index, Func requestParameters = null); ///Represents a HEAD on /{index} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4902,13 +5793,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesExistsAsync(string index, Func requestParameters = null); ///Represents a HEAD on /{index} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4918,14 +5812,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesExists(string index, Func requestParameters = null); ///Represents a HEAD on /{index} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4935,14 +5832,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesExistsAsync(string index, Func requestParameters = null); ///Represents a HEAD on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4951,13 +5851,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesExistsAliasForAll(string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesExistsAliasForAll(string name, Func requestParameters = null); ///Represents a HEAD on /_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -4966,13 +5869,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesExistsAliasForAllAsync(string name, Func requestParameters = null); ///Represents a HEAD on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -4982,14 +5888,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesExistsAliasForAll(string name, Func requestParameters = null); ///Represents a HEAD on /_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -4999,14 +5908,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesExistsAliasForAllAsync(string name, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5016,13 +5928,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesExistsAlias(string index, string name, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5032,13 +5947,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesExistsAliasAsync(string index, string name, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5049,14 +5967,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesExistsAlias(string index, string name, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5067,14 +5988,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, string name, Func queryString = null); + Task> IndicesExistsAliasAsync(string index, string name, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5083,13 +6007,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesExistsAlias(string index, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5098,13 +6025,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesExistsAliasAsync(string index, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5114,14 +6044,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesExistsAlias(string index, Func requestParameters = null); ///Represents a HEAD on /{index}/_alias ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5131,14 +6064,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesExistsAliasAsync(string index, Func requestParameters = null); ///Represents a HEAD on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5147,13 +6083,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesExistsTemplateForAll(string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func requestParameters = null); ///Represents a HEAD on /_template/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5162,13 +6101,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesExistsTemplateForAllAsync(string name, Func requestParameters = null); ///Represents a HEAD on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5178,14 +6120,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesExistsTemplateForAll(string name, Func requestParameters = null); ///Represents a HEAD on /_template/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5195,14 +6140,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesExistsTemplateForAllAsync(string name, Func requestParameters = null); ///Represents a HEAD on /{index}/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5212,13 +6160,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesExistsType(string index, string type, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesExistsType(string index, string type, Func requestParameters = null); ///Represents a HEAD on /{index}/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5228,13 +6179,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesExistsTypeAsync(string index, string type, Func queryString = null, object deserializationState = null); + Task> IndicesExistsTypeAsync(string index, string type, Func requestParameters = null); ///Represents a HEAD on /{index}/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5245,14 +6199,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesExistsType(string index, string type, Func requestParameters = null); ///Represents a HEAD on /{index}/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5263,14 +6220,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesExistsTypeAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_flush ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5278,13 +6238,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesFlushForAll(Func requestParameters = null); ///Represents a POST on /_flush ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5292,13 +6255,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesFlushForAllAsync(Func requestParameters = null); ///Represents a POST on /_flush ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5307,14 +6273,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesFlushForAll(Func requestParameters = null); ///Represents a POST on /_flush ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5323,14 +6292,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesFlushForAllAsync(Func requestParameters = null); ///Represents a POST on /{index}/_flush ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5339,13 +6311,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesFlush(string index, Func requestParameters = null); ///Represents a POST on /{index}/_flush ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5354,13 +6329,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesFlushAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesFlushAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_flush ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5370,14 +6348,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesFlush(string index, Func requestParameters = null); ///Represents a POST on /{index}/_flush ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5387,14 +6368,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesFlushAsync(string index, Func requestParameters = null); ///Represents a GET on /_flush ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5402,13 +6386,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesFlushGetForAll(Func requestParameters = null); ///Represents a GET on /_flush ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5416,13 +6403,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesFlushGetForAllAsync(Func requestParameters = null); ///Represents a GET on /_flush ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5431,14 +6421,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesFlushGetForAll(Func requestParameters = null); ///Represents a GET on /_flush ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5447,14 +6440,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesFlushGetForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_flush ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5463,13 +6459,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesFlushGet(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesFlushGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_flush ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5478,13 +6477,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesFlushGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_flush ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5494,14 +6496,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesFlushGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_flush ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5511,14 +6516,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesFlushGetAsync(string index, Func requestParameters = null); ///Represents a GET on /_alias ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5526,13 +6534,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetAliasForAll(Func requestParameters = null); ///Represents a GET on /_alias ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5540,13 +6551,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetAliasForAllAsync(Func requestParameters = null); ///Represents a GET on /_alias ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5555,14 +6569,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAliasForAll(Func requestParameters = null); ///Represents a GET on /_alias ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5571,14 +6588,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetAliasForAllAsync(Func requestParameters = null); ///Represents a GET on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5587,13 +6607,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetAliasForAll(string name, Func requestParameters = null); ///Represents a GET on /_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5602,13 +6625,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + Task> IndicesGetAliasForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5618,14 +6644,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAliasForAll(string name, Func requestParameters = null); ///Represents a GET on /_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5635,14 +6664,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetAliasForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5652,13 +6684,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetAlias(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5668,13 +6703,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetAliasAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5685,14 +6723,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAlias(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5703,14 +6744,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetAliasAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_alias ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5719,13 +6763,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetAlias(string index, Func requestParameters = null); ///Represents a GET on /{index}/_alias ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5734,13 +6781,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetAliasAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_alias ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5750,14 +6800,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAlias(string index, Func requestParameters = null); ///Represents a GET on /{index}/_alias ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5767,14 +6820,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetAliasAsync(string index, Func requestParameters = null); ///Represents a GET on /_aliases ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5782,13 +6838,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetAliasesForAll(Func requestParameters = null); ///Represents a GET on /_aliases ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5796,13 +6855,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetAliasesForAllAsync(Func requestParameters = null); ///Represents a GET on /_aliases ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5811,14 +6873,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAliasesForAll(Func requestParameters = null); ///Represents a GET on /_aliases ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5827,14 +6892,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetAliasesForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_aliases ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5843,13 +6911,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetAliases(string index, Func requestParameters = null); ///Represents a GET on /{index}/_aliases ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5858,13 +6929,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + Task> IndicesGetAliasesAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_aliases ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5874,14 +6948,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAliases(string index, Func requestParameters = null); ///Represents a GET on /{index}/_aliases ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5891,14 +6968,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesGetAliasesAsync(string index, Func queryString = null); + Task> IndicesGetAliasesAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_aliases/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5908,13 +6988,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetAliases(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_aliases/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5924,13 +7007,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetAliasesAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_aliases/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -5941,14 +7027,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAliases(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_aliases/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -5959,14 +7048,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesGetAliasesAsync(string index, string name, Func queryString = null); + Task> IndicesGetAliasesAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /_aliases/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5975,13 +7067,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetAliasesForAll(string name, Func requestParameters = null); ///Represents a GET on /_aliases/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -5990,13 +7085,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetAliasesForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_aliases/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6006,14 +7104,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetAliasesForAll(string name, Func requestParameters = null); ///Represents a GET on /_aliases/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6023,14 +7124,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetAliasesForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_mapping/field/{field} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6039,13 +7143,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func requestParameters = null); ///Represents a GET on /_mapping/field/{field} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6054,13 +7161,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesGetFieldMappingForAllAsync(string field, Func queryString = null, object deserializationState = null); + Task> IndicesGetFieldMappingForAllAsync(string field, Func requestParameters = null); ///Represents a GET on /_mapping/field/{field} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6070,14 +7180,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetFieldMappingForAll(string field, Func requestParameters = null); ///Represents a GET on /_mapping/field/{field} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6087,14 +7200,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetFieldMappingForAllAsync(string field, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/field/{field} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6104,13 +7220,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/field/{field} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6120,13 +7239,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesGetFieldMappingAsync(string index, string field, Func queryString = null, object deserializationState = null); + Task> IndicesGetFieldMappingAsync(string index, string field, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/field/{field} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6137,14 +7259,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetFieldMapping(string index, string field, Func requestParameters = 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 @@ -6155,14 +7280,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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 field, Func queryString = null); + Task> IndicesGetFieldMappingAsync(string index, string field, Func requestParameters = null); ///Represents a GET on /_mapping/{type}/field/{field} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6172,13 +7300,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func requestParameters = null); ///Represents a GET on /_mapping/{type}/field/{field} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6188,13 +7319,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesGetFieldMappingForAllAsync(string type, string field, Func queryString = null, object deserializationState = null); + Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func requestParameters = null); ///Represents a GET on /_mapping/{type}/field/{field} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6205,14 +7339,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetFieldMappingForAll(string type, string field, Func requestParameters = 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 @@ -6223,14 +7360,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetFieldMappingForAllAsync(string type, string field, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/{type}/field/{field} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6241,13 +7381,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 type, string field, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func requestParameters = 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. @@ -6258,13 +7401,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesGetFieldMappingAsync(string index, string type, string field, Func queryString = null, object deserializationState = null); + Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/{type}/field/{field} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6276,14 +7422,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetFieldMapping(string index, string type, string field, Func requestParameters = 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 @@ -6295,14 +7444,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetFieldMappingAsync(string index, string type, string field, Func requestParameters = null); ///Represents a GET on /_mapping ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6310,13 +7462,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetMappingForAll(Func requestParameters = null); ///Represents a GET on /_mapping ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6324,13 +7479,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetMappingForAllAsync(Func requestParameters = null); ///Represents a GET on /_mapping ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6339,14 +7497,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetMappingForAll(Func requestParameters = null); ///Represents a GET on /_mapping ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6355,14 +7516,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetMappingForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_mapping ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6371,13 +7535,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetMapping(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mapping ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6386,13 +7553,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetMappingAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mapping ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6402,14 +7572,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetMapping(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mapping ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6419,14 +7592,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, Func queryString = null); + Task> IndicesGetMappingAsync(string index, Func requestParameters = null); ///Represents a GET on /_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6435,13 +7611,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetMappingForAll(string type, Func requestParameters = null); ///Represents a GET on /_mapping/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6450,13 +7629,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string type, Func queryString = null, object deserializationState = null); + Task> IndicesGetMappingForAllAsync(string type, Func requestParameters = null); ///Represents a GET on /_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6466,14 +7648,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetMappingForAll(string type, Func requestParameters = null); ///Represents a GET on /_mapping/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6483,14 +7668,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(string type, Func queryString = null); + Task> IndicesGetMappingForAllAsync(string type, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6500,13 +7688,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetMapping(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6516,13 +7707,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string type, Func queryString = null, object deserializationState = null); + Task> IndicesGetMappingAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6533,14 +7727,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetMapping(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/_mapping/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6551,14 +7748,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetMappingAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /_settings ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6566,13 +7766,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetSettingsForAll(Func requestParameters = null); ///Represents a GET on /_settings ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6580,13 +7783,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetSettingsForAllAsync(Func requestParameters = null); ///Represents a GET on /_settings ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6595,14 +7801,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetSettingsForAll(Func requestParameters = null); ///Represents a GET on /_settings ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6611,14 +7820,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetSettingsForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_settings ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6627,13 +7839,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetSettings(string index, Func requestParameters = null); ///Represents a GET on /{index}/_settings ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6642,13 +7857,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetSettingsAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_settings ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6658,14 +7876,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetSettings(string index, Func requestParameters = null); ///Represents a GET on /{index}/_settings ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6675,14 +7896,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesGetSettingsAsync(string index, Func queryString = null); + Task> IndicesGetSettingsAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_settings/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6692,13 +7916,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetSettings(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_settings/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6708,13 +7935,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string name, Func queryString = null, object deserializationState = null); + Task> IndicesGetSettingsAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_settings/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6725,14 +7955,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetSettings(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_settings/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6743,14 +7976,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesGetSettingsAsync(string index, string name, Func queryString = null); + Task> IndicesGetSettingsAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /_settings/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6759,13 +7995,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetSettingsForAll(string name, Func requestParameters = null); ///Represents a GET on /_settings/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6774,13 +8013,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + Task> IndicesGetSettingsForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_settings/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6790,14 +8032,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetSettingsForAll(string name, Func requestParameters = null); ///Represents a GET on /_settings/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6807,14 +8052,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetSettingsForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_template ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6822,13 +8070,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetTemplateForAll(Func requestParameters = null); ///Represents a GET on /_template ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6836,13 +8087,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetTemplateForAllAsync(Func requestParameters = null); ///Represents a GET on /_template ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6851,14 +8105,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetTemplateForAll(Func requestParameters = null); ///Represents a GET on /_template ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6867,14 +8124,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetTemplateForAllAsync(Func requestParameters = null); ///Represents a GET on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6883,13 +8143,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetTemplateForAll(string name, Func requestParameters = null); ///Represents a GET on /_template/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6898,13 +8161,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + Task> IndicesGetTemplateForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6914,14 +8180,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetTemplateForAll(string name, Func requestParameters = null); ///Represents a GET on /_template/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6931,14 +8200,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetTemplateForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_warmer ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6946,13 +8218,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetWarmerForAll(Func requestParameters = null); ///Represents a GET on /_warmer ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -6960,13 +8235,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetWarmerForAllAsync(Func requestParameters = null); ///Represents a GET on /_warmer ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -6975,14 +8253,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetWarmerForAll(Func requestParameters = null); ///Represents a GET on /_warmer ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -6991,14 +8272,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetWarmerForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_warmer ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7007,13 +8291,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetWarmer(string index, Func requestParameters = null); ///Represents a GET on /{index}/_warmer ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7022,13 +8309,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + Task> IndicesGetWarmerAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_warmer ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7038,14 +8328,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetWarmer(string index, Func requestParameters = null); ///Represents a GET on /{index}/_warmer ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7055,14 +8348,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetWarmerAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7072,13 +8368,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetWarmer(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7088,13 +8387,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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 name, Func queryString = null, object deserializationState = null); + Task> IndicesGetWarmerAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7105,14 +8407,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetWarmer(string index, string name, Func requestParameters = null); ///Represents a GET on /{index}/_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7123,14 +8428,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetWarmerAsync(string index, string name, Func requestParameters = null); ///Represents a GET on /_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7139,13 +8447,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesGetWarmerForAll(string name, Func requestParameters = null); ///Represents a GET on /_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7154,13 +8465,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string name, Func queryString = null, object deserializationState = null); + Task> IndicesGetWarmerForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7170,14 +8484,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetWarmerForAll(string name, Func requestParameters = null); ///Represents a GET on /_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7187,14 +8504,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesGetWarmerForAllAsync(string name, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7205,13 +8525,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 type, string name, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func requestParameters = 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. @@ -7222,13 +8545,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesGetWarmerAsync(string index, string type, string name, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7240,14 +8566,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesGetWarmer(string index, string type, string name, Func requestParameters = 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 @@ -7259,14 +8588,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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 type, string name, Func queryString = null); + Task> IndicesGetWarmerAsync(string index, string type, string name, Func requestParameters = null); ///Represents a POST on /{index}/_open ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7275,13 +8607,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesOpen(string index, Func requestParameters = null); ///Represents a POST on /{index}/_open ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7290,13 +8625,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesOpenAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesOpenAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_open ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7306,14 +8644,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesOpen(string index, Func requestParameters = null); ///Represents a POST on /{index}/_open ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7323,14 +8664,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesOpenAsync(string index, Func requestParameters = null); ///Represents a POST on /_optimize ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7338,13 +8682,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesOptimizeForAll(Func requestParameters = null); ///Represents a POST on /_optimize ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7352,13 +8699,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesOptimizeForAllAsync(Func requestParameters = null); ///Represents a POST on /_optimize ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7367,14 +8717,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesOptimizeForAll(Func requestParameters = null); ///Represents a POST on /_optimize ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7383,14 +8736,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesOptimizeForAllAsync(Func requestParameters = null); ///Represents a POST on /{index}/_optimize ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7399,13 +8755,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesOptimize(string index, Func requestParameters = null); ///Represents a POST on /{index}/_optimize ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7414,13 +8773,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesOptimizeAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesOptimizeAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_optimize ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7430,14 +8792,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesOptimize(string index, Func requestParameters = null); ///Represents a POST on /{index}/_optimize ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7447,14 +8812,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesOptimizeAsync(string index, Func requestParameters = null); ///Represents a GET on /_optimize ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7462,13 +8830,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesOptimizeGetForAll(Func requestParameters = null); ///Represents a GET on /_optimize ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7476,13 +8847,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesOptimizeGetForAllAsync(Func requestParameters = null); ///Represents a GET on /_optimize ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7491,14 +8865,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesOptimizeGetForAll(Func requestParameters = null); ///Represents a GET on /_optimize ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7507,14 +8884,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesOptimizeGetForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_optimize ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7523,13 +8903,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesOptimizeGet(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesOptimizeGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_optimize ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7538,13 +8921,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesOptimizeGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_optimize ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7554,14 +8940,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesOptimizeGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_optimize ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7571,14 +8960,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesOptimizeGetAsync(string index, Func queryString = null); + Task> IndicesOptimizeGetAsync(string index, Func requestParameters = null); ///Represents a PUT on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7589,13 +8981,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7606,13 +9001,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesPutAliasAsync(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7624,14 +9022,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutAlias(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7643,14 +9044,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutAliasAsync(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7660,13 +9064,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func requestParameters = null); ///Represents a PUT on /_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7676,13 +9083,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutAliasForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutAliasForAllAsync(string name, object body, Func requestParameters = null); ///Represents a PUT on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7693,14 +9103,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutAliasForAll(string name, object body, Func requestParameters = null); ///Represents a PUT on /_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7711,14 +9124,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesPutAliasForAllAsync(string name, object body, Func queryString = null); + Task> IndicesPutAliasForAllAsync(string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7729,13 +9145,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesPutAliasPost(string index, string name, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7746,13 +9165,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesPutAliasPostAsync(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7764,14 +9186,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutAliasPost(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7783,14 +9208,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutAliasPostAsync(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7800,13 +9228,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func requestParameters = null); ///Represents a POST on /_alias/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7816,13 +9247,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutAliasPostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutAliasPostForAllAsync(string name, object body, Func requestParameters = null); ///Represents a POST on /_alias/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7833,14 +9267,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutAliasPostForAll(string name, object body, Func requestParameters = null); ///Represents a POST on /_alias/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7851,14 +9288,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutAliasPostForAllAsync(string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_mapping ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7869,13 +9309,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesPutMapping(string index, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_mapping ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7886,13 +9329,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesPutMappingAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_mapping ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7904,14 +9350,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutMapping(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_mapping ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7923,14 +9372,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutMappingAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7940,13 +9392,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func requestParameters = null); ///Represents a PUT on /_mapping/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -7956,13 +9411,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutMappingForAllAsync(string type, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutMappingForAllAsync(string type, object body, Func requestParameters = null); ///Represents a PUT on /_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -7973,14 +9431,17 @@ public interface IElasticsearchClient /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutMappingForAll(string type, object body, Func requestParameters = null); ///Represents a PUT on /_mapping/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -7991,14 +9452,17 @@ public interface IElasticsearchClient /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesPutMappingForAllAsync(string type, object body, Func queryString = null); + Task> IndicesPutMappingForAllAsync(string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mapping ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8009,13 +9473,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesPutMappingPost(string index, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mapping ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8026,13 +9493,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesPutMappingPostAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mapping ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8044,14 +9514,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutMappingPost(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mapping ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8063,14 +9536,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutMappingPostAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8080,13 +9556,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func requestParameters = null); ///Represents a POST on /_mapping/{type} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8096,13 +9575,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesPutMappingPostForAllAsync(string type, object body, Func requestParameters = null); ///Represents a POST on /_mapping/{type} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8113,14 +9595,17 @@ public interface IElasticsearchClient /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutMappingPostForAll(string type, object body, Func requestParameters = null); ///Represents a POST on /_mapping/{type} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8131,14 +9616,17 @@ public interface IElasticsearchClient /// ///The name of the document type ///The mapping definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesPutMappingPostForAllAsync(string type, object body, Func queryString = null); + Task> IndicesPutMappingPostForAllAsync(string type, object body, Func requestParameters = null); ///Represents a PUT on /_settings ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8147,13 +9635,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesPutSettingsForAll(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesPutSettingsForAll(object body, Func requestParameters = null); ///Represents a PUT on /_settings ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8162,13 +9653,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutSettingsForAllAsync(object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutSettingsForAllAsync(object body, Func requestParameters = null); ///Represents a PUT on /_settings ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8178,14 +9672,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutSettingsForAll(object body, Func requestParameters = null); ///Represents a PUT on /_settings ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8195,14 +9692,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutSettingsForAllAsync(object body, Func requestParameters = null); ///Represents a PUT on /{index}/_settings ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8212,13 +9712,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutSettings(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_settings ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8228,13 +9731,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutSettingsAsync(string index, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutSettingsAsync(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_settings ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8245,14 +9751,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutSettings(string index, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_settings ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8263,14 +9772,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutSettingsAsync(string index, object body, Func requestParameters = null); ///Represents a PUT on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8280,13 +9792,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func requestParameters = null); ///Represents a PUT on /_template/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8296,13 +9811,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesPutTemplateForAllAsync(string name, object body, Func requestParameters = null); ///Represents a PUT on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8313,14 +9831,17 @@ public interface IElasticsearchClient /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutTemplateForAll(string name, object body, Func requestParameters = null); ///Represents a PUT on /_template/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8331,14 +9852,17 @@ public interface IElasticsearchClient /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesPutTemplateForAllAsync(string name, object body, Func queryString = null); + Task> IndicesPutTemplateForAllAsync(string name, object body, Func requestParameters = null); ///Represents a POST on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8348,13 +9872,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func requestParameters = null); ///Represents a POST on /_template/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8364,13 +9891,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutTemplatePostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func requestParameters = null); ///Represents a POST on /_template/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8381,14 +9911,17 @@ public interface IElasticsearchClient /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutTemplatePostForAll(string name, object body, Func requestParameters = null); ///Represents a POST on /_template/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8399,14 +9932,17 @@ public interface IElasticsearchClient /// ///The name of the template ///The template definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutTemplatePostForAllAsync(string name, object body, Func requestParameters = null); ///Represents a PUT on /_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8416,13 +9952,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func requestParameters = null); ///Represents a PUT on /_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8432,13 +9971,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutWarmerForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutWarmerForAllAsync(string name, object body, Func requestParameters = null); ///Represents a PUT on /_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8449,14 +9991,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutWarmerForAll(string name, object body, Func requestParameters = null); ///Represents a PUT on /_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8467,14 +10012,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutWarmerForAllAsync(string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8485,13 +10033,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 name, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8502,13 +10053,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutWarmerAsync(string index, string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutWarmerAsync(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8520,14 +10074,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutWarmer(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8539,14 +10096,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutWarmerAsync(string index, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8558,13 +10118,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8576,13 +10139,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutWarmerAsync(string index, string type, string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func requestParameters = null); ///Represents a PUT on /{index}/{type}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8595,14 +10161,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutWarmer(string index, string type, string name, object body, Func requestParameters = 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 @@ -8615,14 +10184,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutWarmerAsync(string index, string type, string name, object body, Func requestParameters = null); ///Represents a POST on /_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8632,13 +10204,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func requestParameters = null); ///Represents a POST on /_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8648,13 +10223,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func requestParameters = null); ///Represents a POST on /_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8665,14 +10243,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutWarmerPostForAll(string name, object body, Func requestParameters = null); ///Represents a POST on /_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8683,14 +10264,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesPutWarmerPostForAllAsync(string name, object body, Func queryString = null); + Task> IndicesPutWarmerPostForAllAsync(string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8701,13 +10285,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8718,13 +10305,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutWarmerPostAsync(string index, string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8736,14 +10326,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutWarmerPost(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/_warmer/{name} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8755,14 +10348,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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 name, object body, Func queryString = null); + Task> IndicesPutWarmerPostAsync(string index, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8774,13 +10370,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 type, string name, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_warmer/{name} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8792,13 +10391,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func queryString = null, object deserializationState = null); + Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_warmer/{name} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8811,14 +10413,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesPutWarmerPost(string index, string type, string name, object body, Func requestParameters = 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 @@ -8831,14 +10436,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesPutWarmerPostAsync(string index, string type, string name, object body, Func requestParameters = null); ///Represents a POST on /_refresh ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8846,13 +10454,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesRefreshForAll(Func requestParameters = null); ///Represents a POST on /_refresh ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8860,13 +10471,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesRefreshForAllAsync(Func requestParameters = null); ///Represents a POST on /_refresh ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8875,14 +10489,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesRefreshForAll(Func requestParameters = null); ///Represents a POST on /_refresh ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8891,14 +10508,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesRefreshForAllAsync(Func requestParameters = null); ///Represents a POST on /{index}/_refresh ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8907,13 +10527,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesRefresh(string index, Func requestParameters = null); ///Represents a POST on /{index}/_refresh ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8922,13 +10545,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesRefreshAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesRefreshAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_refresh ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8938,14 +10564,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesRefresh(string index, Func requestParameters = null); ///Represents a POST on /{index}/_refresh ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -8955,14 +10584,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesRefreshAsync(string index, Func requestParameters = null); ///Represents a GET on /_refresh ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8970,13 +10602,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesRefreshGetForAll(Func requestParameters = null); ///Represents a GET on /_refresh ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -8984,13 +10619,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesRefreshGetForAllAsync(Func requestParameters = null); ///Represents a GET on /_refresh ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -8999,14 +10637,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesRefreshGetForAll(Func requestParameters = null); ///Represents a GET on /_refresh ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9015,14 +10656,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesRefreshGetForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_refresh ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9031,13 +10675,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesRefreshGet(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesRefreshGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_refresh ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9046,13 +10693,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesRefreshGetAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesRefreshGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_refresh ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9062,14 +10712,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesRefreshGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_refresh ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9079,14 +10732,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesRefreshGetAsync(string index, Func requestParameters = null); ///Represents a GET on /_segments ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9094,13 +10750,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesSegmentsForAll(Func requestParameters = null); ///Represents a GET on /_segments ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9108,13 +10767,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesSegmentsForAllAsync(Func requestParameters = null); ///Represents a GET on /_segments ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9123,14 +10785,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesSegmentsForAll(Func requestParameters = null); ///Represents a GET on /_segments ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9139,14 +10804,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesSegmentsForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_segments ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9155,13 +10823,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesSegments(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesSegments(string index, Func requestParameters = null); ///Represents a GET on /{index}/_segments ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9170,13 +10841,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesSegmentsAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesSegmentsAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_segments ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9186,14 +10860,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesSegments(string index, Func requestParameters = null); ///Represents a GET on /{index}/_segments ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9203,14 +10880,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesSegmentsAsync(string index, Func requestParameters = null); ///Represents a POST on /_gateway/snapshot ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9218,13 +10898,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesSnapshotIndexForAll(Func requestParameters = null); ///Represents a POST on /_gateway/snapshot ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9232,13 +10915,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesSnapshotIndexForAllAsync(Func requestParameters = null); ///Represents a POST on /_gateway/snapshot ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9247,14 +10933,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesSnapshotIndexForAll(Func requestParameters = null); ///Represents a POST on /_gateway/snapshot ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9263,14 +10952,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesSnapshotIndexForAllAsync(Func requestParameters = null); ///Represents a POST on /{index}/_gateway/snapshot ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9279,13 +10971,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesSnapshotIndex(string index, Func requestParameters = null); ///Represents a POST on /{index}/_gateway/snapshot ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9294,13 +10989,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesSnapshotIndexAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesSnapshotIndexAsync(string index, Func requestParameters = null); ///Represents a POST on /{index}/_gateway/snapshot ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9310,14 +11008,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesSnapshotIndex(string index, Func requestParameters = null); ///Represents a POST on /{index}/_gateway/snapshot ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9327,14 +11028,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesSnapshotIndexAsync(string index, Func requestParameters = null); ///Represents a GET on /_stats ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9342,13 +11046,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesStatsForAll(Func requestParameters = null); ///Represents a GET on /_stats ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9356,13 +11063,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesStatsForAllAsync(Func requestParameters = null); ///Represents a GET on /_stats ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9371,14 +11081,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesStatsForAll(Func requestParameters = null); ///Represents a GET on /_stats ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9387,14 +11100,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesStatsForAllAsync(Func requestParameters = null); ///Represents a GET on /_stats/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9403,13 +11119,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string metric, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesStatsForAll(string metric, Func requestParameters = null); ///Represents a GET on /_stats/{metric} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9418,13 +11137,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesStatsForAllAsync(string metric, Func requestParameters = null); ///Represents a GET on /_stats/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9434,14 +11156,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesStatsForAll(string metric, Func requestParameters = null); ///Represents a GET on /_stats/{metric} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9451,14 +11176,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(string metric, Func queryString = null); + Task> IndicesStatsForAllAsync(string metric, Func requestParameters = null); ///Represents a GET on /{index}/_stats ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9467,13 +11195,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesStats(string index, Func requestParameters = null); ///Represents a GET on /{index}/_stats ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9482,13 +11213,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesStatsAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesStatsAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_stats ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9498,14 +11232,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesStats(string index, Func requestParameters = null); ///Represents a GET on /{index}/_stats ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9515,14 +11252,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, Func queryString = null); + Task> IndicesStatsAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_stats/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9532,13 +11272,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesStats(string index, string metric, Func requestParameters = null); ///Represents a GET on /{index}/_stats/{metric} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9548,13 +11291,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesStatsAsync(string index, string metric, Func queryString = null, object deserializationState = null); + Task> IndicesStatsAsync(string index, string metric, Func requestParameters = null); ///Represents a GET on /{index}/_stats/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9565,14 +11311,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesStats(string index, string metric, Func requestParameters = null); ///Represents a GET on /{index}/_stats/{metric} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9583,14 +11332,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesStatsAsync(string index, string metric, Func requestParameters = null); ///Represents a GET on /_status ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9598,13 +11350,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesStatusForAll(Func requestParameters = null); ///Represents a GET on /_status ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9612,13 +11367,16 @@ public interface IElasticsearchClient /// - If T 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesStatusForAllAsync(Func requestParameters = null); ///Represents a GET on /_status ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9627,14 +11385,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesStatusForAll(Func requestParameters = null); ///Represents a GET on /_status ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9643,14 +11404,17 @@ public interface IElasticsearchClient /// - can be safely dispatched 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesStatusForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_status ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9659,13 +11423,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesStatus(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesStatus(string index, Func requestParameters = null); ///Represents a GET on /{index}/_status ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9674,13 +11441,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesStatusAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_status ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9690,14 +11460,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesStatus(string index, Func requestParameters = null); ///Represents a GET on /{index}/_status ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9707,14 +11480,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesStatusAsync(string index, Func queryString = null); + Task> IndicesStatusAsync(string index, Func requestParameters = null); ///Represents a POST on /_aliases ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9723,13 +11499,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func requestParameters = null); ///Represents a POST on /_aliases ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9738,13 +11517,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesUpdateAliasesForAllAsync(object body, Func queryString = null, object deserializationState = null); + Task> IndicesUpdateAliasesForAllAsync(object body, Func requestParameters = null); ///Represents a POST on /_aliases ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9754,14 +11536,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesUpdateAliasesForAll(object body, Func requestParameters = null); ///Represents a POST on /_aliases ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9771,14 +11556,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesUpdateAliasesForAllAsync(object body, Func requestParameters = null); ///Represents a GET on /_validate/query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9786,13 +11574,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesValidateQueryGetForAll(Func requestParameters = null); ///Represents a GET on /_validate/query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9800,13 +11591,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesValidateQueryGetForAllAsync(Func requestParameters = null); ///Represents a GET on /_validate/query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9815,14 +11609,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesValidateQueryGetForAll(Func requestParameters = null); ///Represents a GET on /_validate/query ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9831,14 +11628,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesValidateQueryGetForAllAsync(Func requestParameters = null); ///Represents a GET on /{index}/_validate/query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9847,13 +11647,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesValidateQueryGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_validate/query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9862,13 +11665,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesValidateQueryGetAsync(string index, Func queryString = null, object deserializationState = null); + Task> IndicesValidateQueryGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_validate/query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9878,14 +11684,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesValidateQueryGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_validate/query ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -9895,14 +11704,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesValidateQueryGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_validate/query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9912,13 +11724,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_validate/query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9928,13 +11743,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesValidateQueryGetAsync(string index, string type, Func queryString = null, object deserializationState = null); + Task> IndicesValidateQueryGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_validate/query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -9945,14 +11763,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesValidateQueryGet(string index, string type, Func requestParameters = 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 @@ -9963,14 +11784,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesValidateQueryGetAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_validate/query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9979,13 +11803,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 IndicesValidateQueryForAll(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesValidateQueryForAll(object body, Func requestParameters = null); ///Represents a POST on /_validate/query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -9994,13 +11821,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> IndicesValidateQueryForAllAsync(object body, Func requestParameters = null); ///Represents a POST on /_validate/query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10010,14 +11840,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesValidateQueryForAll(object body, Func requestParameters = null); ///Represents a POST on /_validate/query ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10027,14 +11860,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> IndicesValidateQueryForAllAsync(object body, Func queryString = null); + Task> IndicesValidateQueryForAllAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_validate/query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10044,13 +11880,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse IndicesValidateQuery(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_validate/query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10060,13 +11899,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesValidateQueryAsync(string index, object body, Func queryString = null, object deserializationState = null); + Task> IndicesValidateQueryAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_validate/query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10077,14 +11919,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesValidateQuery(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_validate/query ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10095,14 +11940,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesValidateQueryAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_validate/query ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10113,13 +11961,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_validate/query ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10130,13 +11981,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> IndicesValidateQueryAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + Task> IndicesValidateQueryAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_validate/query ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10148,14 +12002,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse IndicesValidateQuery(string index, string type, object body, Func requestParameters = 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 @@ -10167,14 +12024,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> IndicesValidateQueryAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on / ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10182,13 +12042,16 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Info(Func requestParameters = null); ///Represents a GET on / ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10196,13 +12059,16 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> InfoAsync(Func requestParameters = null); ///Represents a GET on / ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10211,14 +12077,17 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Info(Func requestParameters = null); ///Represents a GET on / ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10227,14 +12096,17 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> InfoAsync(Func requestParameters = null); ///Represents a GET on /_mget ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10242,13 +12114,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MgetGet(Func requestParameters = null); ///Represents a GET on /_mget ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10256,13 +12131,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MgetGetAsync(Func requestParameters = null); ///Represents a GET on /_mget ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10271,14 +12149,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MgetGet(Func requestParameters = null); ///Represents a GET on /_mget ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10287,14 +12168,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MgetGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_mget ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10303,13 +12187,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse MgetGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mget ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10318,13 +12205,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> MgetGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mget ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10334,14 +12224,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MgetGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mget ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10351,14 +12244,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MgetGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mget ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10368,13 +12264,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MgetGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mget ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10384,13 +12283,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, Func queryString = null, object deserializationState = null); + Task> MgetGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mget ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10401,14 +12303,17 @@ public interface IElasticsearchClient /// ///The name of the index ///The type of the document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MgetGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mget ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10419,14 +12324,17 @@ public interface IElasticsearchClient /// ///The name of the index ///The type of the document - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MgetGetAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_mget ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10435,13 +12343,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mget(object body, Func requestParameters = null); ///Represents a POST on /_mget ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10450,13 +12361,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MgetAsync(object body, Func requestParameters = null); ///Represents a POST on /_mget ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10466,14 +12380,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mget(object body, Func requestParameters = null); ///Represents a POST on /_mget ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10483,14 +12400,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MgetAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_mget ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10500,13 +12420,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mget(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mget ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10516,13 +12439,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, object body, Func queryString = null, object deserializationState = null); + Task> MgetAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mget ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10533,14 +12459,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mget(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mget ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10551,14 +12480,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MgetAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mget ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10569,13 +12501,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Mget(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mget ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10586,13 +12521,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, object body, Func queryString = null, object deserializationState = null); + Task> MgetAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mget ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10604,14 +12542,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mget(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mget ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10623,14 +12564,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MgetAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_mlt ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10641,13 +12585,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 MltGet(string index, string type, string id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse MltGet(string index, string type, string id, Func requestParameters = 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. @@ -10658,13 +12605,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MltGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_mlt ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10676,14 +12626,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MltGet(string index, string type, string id, Func requestParameters = 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 @@ -10695,14 +12648,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> MltGetAsync(string index, string type, string id, Func queryString = null); + Task> MltGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_mlt ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10714,13 +12670,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mlt(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_mlt ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10732,13 +12691,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MltAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + Task> MltAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_mlt ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10751,14 +12713,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mlt(string index, string type, string id, object body, Func requestParameters = 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 @@ -10771,14 +12736,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MltAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a GET on /_mpercolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10786,13 +12754,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MpercolateGet(Func requestParameters = null); ///Represents a GET on /_mpercolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10800,13 +12771,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MpercolateGetAsync(Func requestParameters = null); ///Represents a GET on /_mpercolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10815,14 +12789,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MpercolateGet(Func requestParameters = null); ///Represents a GET on /_mpercolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10831,14 +12808,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MpercolateGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10847,13 +12827,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse MpercolateGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mpercolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10862,13 +12845,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> MpercolateGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10878,14 +12864,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MpercolateGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mpercolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10895,14 +12884,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MpercolateGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10912,13 +12904,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MpercolateGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mpercolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10928,13 +12923,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, Func queryString = null, object deserializationState = null); + Task> MpercolateGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -10945,14 +12943,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MpercolateGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mpercolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -10963,14 +12964,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MpercolateGetAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_mpercolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10979,13 +12983,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mpercolate(object body, Func requestParameters = null); ///Represents a POST on /_mpercolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -10994,13 +13001,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MpercolateAsync(object body, Func queryString = null, object deserializationState = null); + Task> MpercolateAsync(object body, Func requestParameters = null); ///Represents a POST on /_mpercolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11010,14 +13020,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mpercolate(object body, Func requestParameters = null); ///Represents a POST on /_mpercolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11027,14 +13040,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MpercolateAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11044,13 +13060,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mpercolate(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mpercolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11060,13 +13079,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MpercolateAsync(string index, object body, Func queryString = null, object deserializationState = null); + Task> MpercolateAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11077,14 +13099,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mpercolate(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mpercolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11095,14 +13120,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> MpercolateAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11113,13 +13141,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mpercolate(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mpercolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11130,13 +13161,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MpercolateAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + Task> MpercolateAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mpercolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11148,14 +13182,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mpercolate(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mpercolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11167,14 +13204,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MpercolateAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on /_msearch ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11182,13 +13222,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MsearchGet(Func requestParameters = null); ///Represents a GET on /_msearch ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11196,13 +13239,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MsearchGetAsync(Func requestParameters = null); ///Represents a GET on /_msearch ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11211,14 +13257,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MsearchGet(Func requestParameters = null); ///Represents a GET on /_msearch ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11227,14 +13276,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MsearchGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_msearch ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11243,13 +13295,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse MsearchGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_msearch ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11258,13 +13313,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> MsearchGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_msearch ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11274,14 +13332,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MsearchGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_msearch ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11291,14 +13352,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MsearchGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_msearch ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11308,13 +13372,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MsearchGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_msearch ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11324,13 +13391,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, Func queryString = null, object deserializationState = null); + Task> MsearchGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_msearch ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11341,14 +13411,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MsearchGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_msearch ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11359,14 +13432,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MsearchGetAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_msearch ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11375,13 +13451,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Msearch(object body, Func requestParameters = null); ///Represents a POST on /_msearch ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11390,13 +13469,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MsearchAsync(object body, Func queryString = null, object deserializationState = null); + Task> MsearchAsync(object body, Func requestParameters = null); ///Represents a POST on /_msearch ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11406,14 +13488,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Msearch(object body, Func requestParameters = null); ///Represents a POST on /_msearch ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11423,14 +13508,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MsearchAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_msearch ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11440,13 +13528,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Msearch(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_msearch ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11456,13 +13547,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MsearchAsync(string index, object body, Func queryString = null, object deserializationState = null); + Task> MsearchAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_msearch ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11473,14 +13567,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Msearch(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_msearch ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11491,14 +13588,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> MsearchAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_msearch ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11509,13 +13609,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Msearch(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_msearch ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11526,13 +13629,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> MsearchAsync(string index, string type, object body, Func queryString = null, object deserializationState = null); + Task> MsearchAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_msearch ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11544,14 +13650,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Msearch(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_msearch ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11563,14 +13672,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MsearchAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on /_mtermvectors ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11578,13 +13690,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MtermvectorsGet(Func requestParameters = null); ///Represents a GET on /_mtermvectors ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11592,13 +13707,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MtermvectorsGetAsync(Func requestParameters = null); ///Represents a GET on /_mtermvectors ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11607,14 +13725,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MtermvectorsGet(Func requestParameters = null); ///Represents a GET on /_mtermvectors ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11623,14 +13744,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MtermvectorsGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11639,13 +13763,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse MtermvectorsGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mtermvectors ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11654,13 +13781,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> MtermvectorsGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11670,14 +13800,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MtermvectorsGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_mtermvectors ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11687,14 +13820,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MtermvectorsGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11704,13 +13840,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse MtermvectorsGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mtermvectors ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11720,13 +13859,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, Func queryString = null, object deserializationState = null); + Task> MtermvectorsGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11737,14 +13879,17 @@ public interface IElasticsearchClient /// ///The index in which the document resides. ///The type of the document. - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse MtermvectorsGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_mtermvectors ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11755,14 +13900,17 @@ public interface IElasticsearchClient /// ///The index in which the document resides. ///The type of the document. - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MtermvectorsGetAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_mtermvectors ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11771,13 +13919,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Mtermvectors(object body, Func requestParameters = null); ///Represents a POST on /_mtermvectors ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11786,13 +13937,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> MtermvectorsAsync(object body, Func requestParameters = null); ///Represents a POST on /_mtermvectors ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11802,14 +13956,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mtermvectors(object body, Func requestParameters = null); ///Represents a POST on /_mtermvectors ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11819,14 +13976,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(object body, Func queryString = null); + Task> MtermvectorsAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11836,13 +13996,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Mtermvectors(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mtermvectors ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11852,13 +14015,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, object body, Func queryString = null, object deserializationState = null); + Task> MtermvectorsAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11869,14 +14035,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mtermvectors(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_mtermvectors ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11887,14 +14056,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MtermvectorsAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11905,13 +14077,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Mtermvectors(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mtermvectors ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11922,13 +14097,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, object body, Func queryString = null, object deserializationState = null); + Task> MtermvectorsAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mtermvectors ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -11940,14 +14118,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Mtermvectors(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_mtermvectors ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -11959,14 +14140,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> MtermvectorsAsync(string index, string type, object body, Func requestParameters = null); ///Represents a GET on /_cluster/nodes/hotthreads ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11974,13 +14158,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesHotThreadsForAll(Func requestParameters = null); ///Represents a GET on /_cluster/nodes/hotthreads ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -11988,13 +14175,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesHotThreadsForAllAsync(Func requestParameters = null); ///Represents a GET on /_cluster/nodes/hotthreads ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12003,14 +14193,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesHotThreadsForAll(Func requestParameters = null); ///Represents a GET on /_cluster/nodes/hotthreads ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12019,14 +14212,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesHotThreadsForAllAsync(Func requestParameters = null); ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12035,13 +14231,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesHotThreads(string node_id, Func requestParameters = null); ///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. @@ -12050,13 +14249,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> NodesHotThreadsAsync(string node_id, Func queryString = null, object deserializationState = null); + Task> NodesHotThreadsAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_cluster/nodes/{node_id}/hotthreads ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12066,14 +14268,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesHotThreads(string node_id, Func requestParameters = 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 @@ -12083,14 +14288,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesHotThreadsAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12098,13 +14306,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesInfoForAll(Func requestParameters = null); ///Represents a GET on /_nodes ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12112,13 +14323,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesInfoForAllAsync(Func requestParameters = null); ///Represents a GET on /_nodes ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12127,14 +14341,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesInfoForAll(Func requestParameters = null); ///Represents a GET on /_nodes ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12143,14 +14360,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesInfoForAllAsync(Func requestParameters = null); ///Represents a GET on /_nodes/{node_id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12159,13 +14379,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse NodesInfo(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12174,13 +14397,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesInfoAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12190,14 +14416,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesInfo(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12207,14 +14436,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, Func queryString = null); + Task> NodesInfoAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12223,13 +14455,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesInfoForAll(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{metric} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12238,13 +14473,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string metric, Func queryString = null, object deserializationState = null); + Task> NodesInfoForAllAsync(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12254,14 +14492,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesInfoForAll(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{metric} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12271,14 +14512,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(string metric, Func queryString = null); + Task> NodesInfoForAllAsync(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12288,13 +14532,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesInfo(string node_id, string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/{metric} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12304,13 +14551,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string metric, Func queryString = null, object deserializationState = null); + Task> NodesInfoAsync(string node_id, string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12321,14 +14571,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesInfo(string node_id, string metric, Func requestParameters = 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 @@ -12339,14 +14592,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesInfoAsync(string node_id, string metric, Func requestParameters = null); ///Represents a POST on /_shutdown ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12354,13 +14610,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesShutdownForAll(Func requestParameters = null); ///Represents a POST on /_shutdown ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12368,13 +14627,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesShutdownForAllAsync(Func requestParameters = null); ///Represents a POST on /_shutdown ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12383,14 +14645,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesShutdownForAll(Func requestParameters = null); ///Represents a POST on /_shutdown ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12399,14 +14664,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesShutdownForAllAsync(Func requestParameters = null); ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12415,13 +14683,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 NodesShutdown(string node_id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse NodesShutdown(string node_id, Func requestParameters = 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. @@ -12430,13 +14701,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesShutdownAsync(string node_id, Func requestParameters = null); ///Represents a POST on /_cluster/nodes/{node_id}/_shutdown ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12446,14 +14720,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesShutdown(string node_id, Func requestParameters = 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 @@ -12463,14 +14740,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesShutdownAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/stats ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12478,13 +14758,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesStatsForAll(Func requestParameters = null); ///Represents a GET on /_nodes/stats ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12492,13 +14775,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesStatsForAllAsync(Func requestParameters = null); ///Represents a GET on /_nodes/stats ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12507,14 +14793,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesStatsForAll(Func requestParameters = null); ///Represents a GET on /_nodes/stats ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12523,14 +14812,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesStatsForAllAsync(Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/stats ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12539,13 +14831,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesStats(string node_id, Func requestParameters = 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. @@ -12554,13 +14849,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + Task> NodesStatsAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/stats ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12570,14 +14868,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesStats(string node_id, Func requestParameters = 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 @@ -12587,14 +14888,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesStatsAsync(string node_id, Func requestParameters = null); ///Represents a GET on /_nodes/stats/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12603,13 +14907,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesStatsForAll(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/stats/{metric} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12618,13 +14925,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesStatsForAllAsync(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/stats/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12634,14 +14944,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesStatsForAll(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/stats/{metric} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12651,14 +14964,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(string metric, Func queryString = null); + Task> NodesStatsForAllAsync(string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/stats/{metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12668,13 +14984,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesStats(string node_id, string metric, Func requestParameters = null); ///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. @@ -12684,13 +15003,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesStatsAsync(string node_id, string metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/stats/{metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12701,14 +15023,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesStats(string node_id, string metric, Func requestParameters = 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 @@ -12719,14 +15044,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesStatsAsync(string node_id, string metric, Func requestParameters = null); ///Represents a GET on /_nodes/stats/{metric}/{index_metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12736,13 +15064,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func requestParameters = null); ///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. @@ -12752,13 +15083,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> NodesStatsForAllAsync(string metric, string index_metric, Func requestParameters = null); ///Represents a GET on /_nodes/stats/{metric}/{index_metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12769,14 +15103,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesStatsForAll(string metric, string index_metric, Func requestParameters = 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 @@ -12787,14 +15124,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(string metric, string index_metric, Func queryString = null); + Task> NodesStatsForAllAsync(string metric, string index_metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12805,13 +15145,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string index_metric, Func queryString = null, object deserializationState = null); + ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func requestParameters = 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. @@ -12822,13 +15165,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string index_metric, Func queryString = null, object deserializationState = null); + Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func requestParameters = null); ///Represents a GET on /_nodes/{node_id}/stats/{metric}/{index_metric} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12840,14 +15186,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse NodesStats(string node_id, string metric, string index_metric, Func requestParameters = 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 @@ -12859,14 +15208,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> NodesStatsAsync(string node_id, string metric, string index_metric, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_percolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12876,13 +15228,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse PercolateGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_percolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12892,13 +15247,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> PercolateGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_percolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12909,14 +15267,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse PercolateGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_percolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -12927,14 +15288,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, Func queryString = null); + Task> PercolateGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_percolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -12945,13 +15309,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, string id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse PercolateGet(string index, string type, string id, Func requestParameters = 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. @@ -12962,13 +15329,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string id, Func queryString = null, object deserializationState = null); + Task> PercolateGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_percolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -12980,14 +15350,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse PercolateGet(string index, string type, string id, Func requestParameters = 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 @@ -12999,14 +15372,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> PercolateGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_percolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13017,13 +15393,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Percolate(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_percolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13034,13 +15413,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> PercolateAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_percolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13052,14 +15434,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Percolate(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_percolate ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13071,14 +15456,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> PercolateAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_percolate ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13090,13 +15478,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Percolate(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_percolate ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13108,13 +15499,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, string id, object body, Func queryString = null, object deserializationState = null); + Task> PercolateAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_percolate ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13127,14 +15521,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Percolate(string index, string type, string id, object body, Func requestParameters = 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 @@ -13147,14 +15544,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> PercolateAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a HEAD on / ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13162,13 +15562,16 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Ping(Func requestParameters = null); ///Represents a HEAD on / ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13176,13 +15579,16 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> PingAsync(Func requestParameters = null); ///Represents a HEAD on / ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13191,14 +15597,17 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Ping(Func requestParameters = null); ///Represents a HEAD on / ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13207,14 +15616,17 @@ public interface IElasticsearchClient /// - 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> PingAsync(Func requestParameters = null); ///Represents a GET on /_search/scroll ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13222,13 +15634,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse ScrollGet(Func requestParameters = null); ///Represents a GET on /_search/scroll ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13236,13 +15651,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ScrollGetAsync(Func requestParameters = null); ///Represents a GET on /_search/scroll ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13251,14 +15669,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ScrollGet(Func requestParameters = null); ///Represents a GET on /_search/scroll ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13267,14 +15688,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ScrollGetAsync(Func requestParameters = null); ///Represents a GET on /_search/scroll/{scroll_id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13283,13 +15707,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string scroll_id, Func queryString = null, object deserializationState = null); + ElasticsearchResponse ScrollGet(string scroll_id, Func requestParameters = 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. @@ -13298,13 +15725,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ScrollGetAsync(string scroll_id, Func requestParameters = null); ///Represents a GET on /_search/scroll/{scroll_id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13314,14 +15744,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse ScrollGet(string scroll_id, Func requestParameters = 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 @@ -13331,14 +15764,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ScrollGetAsync(string scroll_id, Func requestParameters = null); ///Represents a POST on /_search/scroll ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13347,13 +15783,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Scroll(object body, Func requestParameters = null); ///Represents a POST on /_search/scroll ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13362,13 +15801,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> ScrollAsync(object body, Func requestParameters = null); ///Represents a POST on /_search/scroll ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13378,14 +15820,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Scroll(object body, Func requestParameters = null); ///Represents a POST on /_search/scroll ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13395,14 +15840,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(object body, Func queryString = null); + Task> ScrollAsync(object body, Func requestParameters = null); ///Represents a POST on /_search/scroll/{scroll_id} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13412,13 +15860,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Scroll(string scroll_id, object body, Func requestParameters = null); ///Represents a POST on /_search/scroll/{scroll_id} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13428,13 +15879,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string scroll_id, object body, Func queryString = null, object deserializationState = null); + Task> ScrollAsync(string scroll_id, object body, Func requestParameters = null); ///Represents a POST on /_search/scroll/{scroll_id} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13445,14 +15899,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Scroll(string scroll_id, object body, Func requestParameters = 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 @@ -13463,14 +15920,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> ScrollAsync(string scroll_id, object body, Func requestParameters = null); ///Represents a GET on /_search ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13478,13 +15938,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SearchGet(Func requestParameters = null); ///Represents a GET on /_search ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13492,13 +15955,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SearchGetAsync(Func requestParameters = null); ///Represents a GET on /_search ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13507,14 +15973,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SearchGet(Func requestParameters = null); ///Represents a GET on /_search ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13523,14 +15992,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SearchGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_search ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13539,13 +16011,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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, Func queryString = null, object deserializationState = null); + ElasticsearchResponse SearchGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_search ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13554,13 +16029,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + Task> SearchGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_search ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13570,14 +16048,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SearchGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_search ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13587,14 +16068,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SearchGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_search ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13604,13 +16088,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SearchGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_search ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13620,13 +16107,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, string type, Func queryString = null, object deserializationState = null); + Task> SearchGetAsync(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_search ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13637,14 +16127,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SearchGet(string index, string type, Func requestParameters = null); ///Represents a GET on /{index}/{type}/_search ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13655,14 +16148,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SearchGetAsync(string index, string type, Func requestParameters = null); ///Represents a POST on /_search ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13671,13 +16167,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Search(object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Search(object body, Func requestParameters = null); ///Represents a POST on /_search ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13686,13 +16185,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SearchAsync(object body, Func requestParameters = null); ///Represents a POST on /_search ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13702,14 +16204,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Search(object body, Func requestParameters = null); ///Represents a POST on /_search ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13719,14 +16224,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SearchAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_search ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13736,13 +16244,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Search(string index, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Search(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_search ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13752,13 +16263,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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, object body, Func queryString = null, object deserializationState = null); + Task> SearchAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_search ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13769,14 +16283,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Search(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_search ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13787,14 +16304,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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, object body, Func queryString = null); + Task> SearchAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_search ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13805,13 +16325,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 Search(string index, string type, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse Search(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_search ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13822,13 +16345,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SearchAsync(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_search ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13840,14 +16366,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Search(string index, string type, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/_search ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13859,14 +16388,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SearchAsync(string index, string type, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13877,13 +16409,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 SnapshotCreate(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository}/{snapshot} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13894,13 +16429,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13912,14 +16450,17 @@ public interface IElasticsearchClient ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotCreate(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository}/{snapshot} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -13931,14 +16472,17 @@ public interface IElasticsearchClient ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SnapshotCreateAsync(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13949,13 +16493,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 SnapshotCreatePost(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository}/{snapshot} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -13966,13 +16513,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -13984,14 +16534,17 @@ public interface IElasticsearchClient ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotCreatePost(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository}/{snapshot} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14003,14 +16556,17 @@ public interface IElasticsearchClient ///A repository name ///A snapshot name ///The snapshot definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SnapshotCreatePostAsync(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14020,13 +16576,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14036,13 +16595,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotCreateRepositoryAsync(string repository, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14053,14 +16615,17 @@ public interface IElasticsearchClient /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotCreateRepository(string repository, object body, Func requestParameters = null); ///Represents a PUT on /_snapshot/{repository} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14071,14 +16636,17 @@ public interface IElasticsearchClient /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> SnapshotCreateRepositoryAsync(string repository, object body, Func queryString = null); + Task> SnapshotCreateRepositoryAsync(string repository, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14088,13 +16656,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14104,13 +16675,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> SnapshotCreateRepositoryPostAsync(string repository, object body, Func queryString = null, object deserializationState = null); + Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14121,14 +16695,17 @@ public interface IElasticsearchClient /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotCreateRepositoryPost(string repository, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14139,14 +16716,17 @@ public interface IElasticsearchClient /// ///A repository name ///The repository definition - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SnapshotCreateRepositoryPostAsync(string repository, object body, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14156,13 +16736,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository}/{snapshot} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14172,13 +16755,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null, object deserializationState = null); + Task> SnapshotDeleteAsync(string repository, string snapshot, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14189,14 +16775,17 @@ public interface IElasticsearchClient /// ///A repository name ///A snapshot name - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotDelete(string repository, string snapshot, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository}/{snapshot} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14207,14 +16796,17 @@ public interface IElasticsearchClient /// ///A repository name ///A snapshot name - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> SnapshotDeleteAsync(string repository, string snapshot, Func queryString = null); + Task> SnapshotDeleteAsync(string repository, string snapshot, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14223,13 +16815,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SnapshotDeleteRepository(string repository, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14238,13 +16833,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotDeleteRepositoryAsync(string repository, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14254,14 +16852,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotDeleteRepository(string repository, Func requestParameters = null); ///Represents a DELETE on /_snapshot/{repository} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14271,14 +16872,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> SnapshotDeleteRepositoryAsync(string repository, Func queryString = null); + Task> SnapshotDeleteRepositoryAsync(string repository, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14288,13 +16892,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository}/{snapshot} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14304,13 +16911,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> SnapshotGetAsync(string repository, string snapshot, Func queryString = null, object deserializationState = null); + Task> SnapshotGetAsync(string repository, string snapshot, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository}/{snapshot} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14321,14 +16931,17 @@ public interface IElasticsearchClient /// ///A repository name ///A comma-separated list of snapshot names - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotGet(string repository, string snapshot, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository}/{snapshot} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14339,14 +16952,17 @@ public interface IElasticsearchClient /// ///A repository name ///A comma-separated list of snapshot names - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SnapshotGetAsync(string repository, string snapshot, Func requestParameters = null); ///Represents a GET on /_snapshot ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14354,13 +16970,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SnapshotGetRepository(Func requestParameters = null); ///Represents a GET on /_snapshot ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14368,13 +16987,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotGetRepositoryAsync(Func requestParameters = null); ///Represents a GET on /_snapshot ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14383,14 +17005,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotGetRepository(Func requestParameters = null); ///Represents a GET on /_snapshot ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14399,14 +17024,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SnapshotGetRepositoryAsync(Func requestParameters = null); ///Represents a GET on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14415,13 +17043,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string repository, Func queryString = null, object deserializationState = null); + ElasticsearchResponse SnapshotGetRepository(string repository, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository} ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14430,13 +17061,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotGetRepositoryAsync(string repository, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository} ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14446,14 +17080,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotGetRepository(string repository, Func requestParameters = null); ///Represents a GET on /_snapshot/{repository} ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14463,14 +17100,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SnapshotGetRepositoryAsync(string repository, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14481,13 +17121,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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 SnapshotRestore(string repository, string snapshot, object body, Func queryString = null, object deserializationState = null); + ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func requestParameters = 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. @@ -14498,13 +17141,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a POST on /_snapshot/{repository}/{snapshot}/_restore ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14516,14 +17162,17 @@ public interface IElasticsearchClient ///A repository name ///A snapshot name ///Details of what to restore - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SnapshotRestore(string repository, string snapshot, object body, Func requestParameters = 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 @@ -14535,14 +17184,17 @@ public interface IElasticsearchClient ///A repository name ///A snapshot name ///Details of what to restore - ///Optional function to specify any additional querystring parameters for the request. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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> SnapshotRestoreAsync(string repository, string snapshot, object body, Func queryString = null); + Task> SnapshotRestoreAsync(string repository, string snapshot, object body, Func requestParameters = null); ///Represents a POST on /_suggest ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14551,13 +17203,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Suggest(object body, Func requestParameters = null); ///Represents a POST on /_suggest ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14566,13 +17221,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> SuggestAsync(object body, Func queryString = null, object deserializationState = null); + Task> SuggestAsync(object body, Func requestParameters = null); ///Represents a POST on /_suggest ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14582,14 +17240,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Suggest(object body, Func requestParameters = null); ///Represents a POST on /_suggest ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14599,14 +17260,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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(object body, Func queryString = null); + Task> SuggestAsync(object body, Func requestParameters = null); ///Represents a POST on /{index}/_suggest ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14616,13 +17280,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Suggest(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_suggest ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14632,13 +17299,16 @@ public interface IElasticsearchClient /// ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> SuggestAsync(string index, object body, Func queryString = null, object deserializationState = null); + Task> SuggestAsync(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_suggest ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14649,14 +17319,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Suggest(string index, object body, Func requestParameters = null); ///Represents a POST on /{index}/_suggest ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14667,14 +17340,17 @@ public interface IElasticsearchClient /// ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SuggestAsync(string index, object body, Func requestParameters = null); ///Represents a GET on /_suggest ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14682,13 +17358,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse SuggestGet(Func requestParameters = null); ///Represents a GET on /_suggest ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14696,13 +17375,16 @@ public interface IElasticsearchClient /// - If 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SuggestGetAsync(Func requestParameters = null); ///Represents a GET on /_suggest ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14711,14 +17393,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SuggestGet(Func requestParameters = null); ///Represents a GET on /_suggest ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14727,14 +17412,17 @@ public interface IElasticsearchClient /// - can be safely 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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SuggestGetAsync(Func requestParameters = null); ///Represents a GET on /{index}/_suggest ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14743,13 +17431,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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(string index, Func queryString = null, object deserializationState = null); + ElasticsearchResponse SuggestGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_suggest ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14758,13 +17449,16 @@ public interface IElasticsearchClient ///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 ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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); + Task> SuggestGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/_suggest ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14774,14 +17468,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse SuggestGet(string index, Func requestParameters = null); ///Represents a GET on /{index}/_suggest ///Returns: Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary @@ -14791,14 +17488,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> SuggestGetAsync(string index, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_termvector ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14809,13 +17509,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse TermvectorGet(string index, string type, string id, Func requestParameters = 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. @@ -14826,13 +17529,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> TermvectorGetAsync(string index, string type, string id, Func queryString = null, object deserializationState = null); + Task> TermvectorGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a GET on /{index}/{type}/{id}/_termvector ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14844,14 +17550,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse TermvectorGet(string index, string type, string id, Func requestParameters = 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 @@ -14863,14 +17572,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> TermvectorGetAsync(string index, string type, string id, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_termvector ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14882,13 +17594,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Termvector(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_termvector ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14900,13 +17615,16 @@ public interface IElasticsearchClient ///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. -///Optional state that will be passed to the deserialization call for the response ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> TermvectorAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + Task> TermvectorAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_termvector ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14919,14 +17637,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Termvector(string index, string type, string id, object body, Func requestParameters = 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 @@ -14939,14 +17660,17 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> TermvectorAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_update ///Returns: ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14958,13 +17682,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///ElasticsearchResponse<T> holding the reponse body deserialized as 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); + ElasticsearchResponse Update(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_update ///Returns: A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as T. @@ -14976,13 +17703,16 @@ public interface IElasticsearchClient ///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. + /// + ///Optional function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// + ///A task that'll return an ElasticsearchResponse<T> holding the reponse body deserialized as 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> UpdateAsync(string index, string type, string id, object body, Func queryString = null, object deserializationState = null); + Task> UpdateAsync(string index, string type, string id, object body, Func requestParameters = null); ///Represents a POST on /{index}/{type}/{id}/_update ///Returns: ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary @@ -14995,14 +17725,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///ElasticsearchResponse<T> holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + ElasticsearchResponse Update(string index, string type, string id, object body, Func requestParameters = 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 @@ -15015,14 +17748,17 @@ public interface IElasticsearchClient ///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 function to specify any additional request parameters + ///Querystring values, connection configuration specific to this request, deserialization state. + /// ///Task that'll return an ElasticsearchResponse<T$gt; holding the response body deserialized as DynamicDictionary /// - Dynamic dictionary is a special dynamic type that allows json to be traversed safely /// - i.e 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); + Task> UpdateAsync(string index, string type, string id, object body, Func requestParameters = null); } } \ No newline at end of file diff --git a/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs b/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs index 03192c8cd5e..11cac3d65f4 100644 --- a/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs +++ b/src/Elasticsearch.Net/Serialization/ElasticsearchDefaultSerializer.cs @@ -23,7 +23,7 @@ public T Deserialize(IElasticsearchResponse response, Stream stream, object d { stream.CopyTo(ms); byte[] buffer = ms.ToArray(); - if (buffer.Length == 0) + if (buffer.Length <= 1) return default(T); return SimpleJson.DeserializeObject(buffer.Utf8String()); } diff --git a/src/Elasticsearch.sln b/src/Elasticsearch.sln index e704682f680..e2726eddda8 100644 --- a/src/Elasticsearch.sln +++ b/src/Elasticsearch.sln @@ -260,6 +260,7 @@ 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|Any CPU.ActiveCfg = Debug|Any CPU {E97CCF40-0BA6-43FE-9F2D-58D454134088}.Debug|Any CPU.Build.0 = Debug|Any CPU diff --git a/src/Nest/DSL/AliasDescriptor.cs b/src/Nest/DSL/AliasDescriptor.cs index 7a06b48caf3..4a9e8be0d12 100644 --- a/src/Nest/DSL/AliasDescriptor.cs +++ b/src/Nest/DSL/AliasDescriptor.cs @@ -14,7 +14,7 @@ namespace Nest { [DescriptorFor("IndicesUpdateAliases")] public partial class AliasDescriptor : - IPathInfo + IPathInfo { public AliasDescriptor() { @@ -41,10 +41,10 @@ public AliasDescriptor Remove(Func return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = new ElasticsearchPathInfo(); - pathInfo.QueryString = this._QueryString; + var pathInfo = new ElasticsearchPathInfo(); + pathInfo.RequestParameters = this._QueryString; pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/AnalyzeDescriptor.cs b/src/Nest/DSL/AnalyzeDescriptor.cs index d956da21e4b..02be27b603c 100644 --- a/src/Nest/DSL/AnalyzeDescriptor.cs +++ b/src/Nest/DSL/AnalyzeDescriptor.cs @@ -13,13 +13,13 @@ namespace Nest { [DescriptorFor("IndicesAnalyze")] public partial class AnalyzeDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/BulkDescriptor.cs b/src/Nest/DSL/BulkDescriptor.cs index 0f5ae1bead6..0d5dab0b0f2 100644 --- a/src/Nest/DSL/BulkDescriptor.cs +++ b/src/Nest/DSL/BulkDescriptor.cs @@ -15,8 +15,8 @@ namespace Nest { public partial class BulkDescriptor : - FixedIndexTypePathDescriptor - , IPathInfo + FixedIndexTypePathDescriptor + , IPathInfo { internal IList _Operations = new SynchronizedCollection(); @@ -128,9 +128,9 @@ public BulkDescriptor Update(Func, BulkUpdateDe return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = this.ToPathInfo(settings, this._QueryString); + var pathInfo = this.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; } diff --git a/src/Nest/DSL/ClearCacheDescriptor.cs b/src/Nest/DSL/ClearCacheDescriptor.cs index aa2263283d1..03822b8c01f 100644 --- a/src/Nest/DSL/ClearCacheDescriptor.cs +++ b/src/Nest/DSL/ClearCacheDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesClearCache")] public partial class ClearCacheDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/CloseIndexDescriptor.cs b/src/Nest/DSL/CloseIndexDescriptor.cs index 49556b58696..c42b28d42d7 100644 --- a/src/Nest/DSL/CloseIndexDescriptor.cs +++ b/src/Nest/DSL/CloseIndexDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesClose")] - public partial class CloseIndexDescriptor : IndexPathDescriptorBase - , IPathInfo + public partial class CloseIndexDescriptor : IndexPathDescriptorBase + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/ClusterHealthDescriptor.cs b/src/Nest/DSL/ClusterHealthDescriptor.cs index dad03698f8c..3641e17cba1 100644 --- a/src/Nest/DSL/ClusterHealthDescriptor.cs +++ b/src/Nest/DSL/ClusterHealthDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { public partial class ClusterHealthDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/ClusterStateDescriptor.cs b/src/Nest/DSL/ClusterStateDescriptor.cs index ed48d38fc84..822b3bae42d 100644 --- a/src/Nest/DSL/ClusterStateDescriptor.cs +++ b/src/Nest/DSL/ClusterStateDescriptor.cs @@ -13,8 +13,8 @@ namespace Nest { public partial class ClusterStateDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { private IEnumerable _Metrics { get; set; } @@ -23,9 +23,9 @@ public ClusterStateDescriptor Metrics(params ClusterStateMetric[] metrics) this._Metrics = metrics; return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; if (this._Metrics != null) pathInfo.Metric = this._Metrics.Cast().GetStringValue(); diff --git a/src/Nest/DSL/CountDescriptor.cs b/src/Nest/DSL/CountDescriptor.cs index 5f212b47a55..b9b44369454 100644 --- a/src/Nest/DSL/CountDescriptor.cs +++ b/src/Nest/DSL/CountDescriptor.cs @@ -7,8 +7,8 @@ namespace Nest { [DescriptorFor("Count")] public partial class CountDescriptor - : QueryPathDescriptorBase, T, CountQueryString> - , IPathInfo + : QueryPathDescriptorBase, T, CountRequestParameters> + , IPathInfo where T : class { [JsonProperty("query")] @@ -20,9 +20,9 @@ public CountDescriptor Query(Func, BaseQuery> querySelecto return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); var qs = this._QueryString; pathInfo.HttpMethod = !qs._source.IsNullOrEmpty() ? PathInfoHttpMethod.GET diff --git a/src/Nest/DSL/CreateIndexDescriptor.cs b/src/Nest/DSL/CreateIndexDescriptor.cs index f94320e59fa..06737de8aec 100644 --- a/src/Nest/DSL/CreateIndexDescriptor.cs +++ b/src/Nest/DSL/CreateIndexDescriptor.cs @@ -11,7 +11,7 @@ namespace Nest { [DescriptorFor("IndicesCreate")] - public partial class CreateIndexDescriptor : IPathInfo + public partial class CreateIndexDescriptor : IPathInfo { internal string _Index { get; set; } internal IndexSettings _IndexSettings = new IndexSettings(); @@ -150,12 +150,12 @@ public CreateIndexDescriptor Analysis(Func IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = new ElasticsearchPathInfo(); + var pathInfo = new ElasticsearchPathInfo(); pathInfo.HttpMethod = PathInfoHttpMethod.POST; pathInfo.Index = this._Index; - pathInfo.QueryString = this._QueryString; + pathInfo.RequestParameters = this._QueryString; return pathInfo; } diff --git a/src/Nest/DSL/DeleteByQueryDescriptor.cs b/src/Nest/DSL/DeleteByQueryDescriptor.cs index bbea563ac52..083eb0ad2d1 100644 --- a/src/Nest/DSL/DeleteByQueryDescriptor.cs +++ b/src/Nest/DSL/DeleteByQueryDescriptor.cs @@ -12,8 +12,8 @@ namespace Nest { public partial class DeleteByQueryDescriptor - : QueryPathDescriptorBase, T, DeleteByQueryQueryString> - , IPathInfo + : QueryPathDescriptorBase, T, DeleteByQueryRequestParameters> + , IPathInfo where T : class { [JsonProperty("query")] @@ -31,9 +31,9 @@ public DeleteByQueryDescriptor Query(Func, BaseQuery> quer return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = this.ToPathInfo(settings, this._QueryString); + var pathInfo = this.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.DELETE; return pathInfo; } diff --git a/src/Nest/DSL/DeleteDescriptor.cs b/src/Nest/DSL/DeleteDescriptor.cs index debcf670b6a..cf97e564a3f 100644 --- a/src/Nest/DSL/DeleteDescriptor.cs +++ b/src/Nest/DSL/DeleteDescriptor.cs @@ -13,13 +13,13 @@ namespace Nest { [DescriptorFor("Delete")] - public partial class DeleteDescriptor : DocumentPathDescriptorBase, T, DeleteQueryString> - , IPathInfo + public partial class DeleteDescriptor : DocumentPathDescriptorBase, T, DeleteRequestParameters> + , IPathInfo where T : class { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.DELETE; return pathInfo; } diff --git a/src/Nest/DSL/DeleteIndexDescriptor.cs b/src/Nest/DSL/DeleteIndexDescriptor.cs index 22173a7f5ce..3f3b48c3581 100644 --- a/src/Nest/DSL/DeleteIndexDescriptor.cs +++ b/src/Nest/DSL/DeleteIndexDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesDelete")] public partial class DeleteIndexDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.DELETE; return pathInfo; diff --git a/src/Nest/DSL/DeleteMappingDescriptor.cs b/src/Nest/DSL/DeleteMappingDescriptor.cs index 090dd334512..c2354c8b461 100644 --- a/src/Nest/DSL/DeleteMappingDescriptor.cs +++ b/src/Nest/DSL/DeleteMappingDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesDeleteMapping")] public partial class DeleteMappingDescriptor : - IndexTypePathDescriptor - , IPathInfo + IndexTypePathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.DELETE; return pathInfo; diff --git a/src/Nest/DSL/DeleteTemplateDescriptor.cs b/src/Nest/DSL/DeleteTemplateDescriptor.cs index 28cdf765ef0..759992c7c65 100644 --- a/src/Nest/DSL/DeleteTemplateDescriptor.cs +++ b/src/Nest/DSL/DeleteTemplateDescriptor.cs @@ -14,12 +14,12 @@ namespace Nest { [DescriptorFor("IndicesDeleteTemplate")] public partial class DeleteTemplateDescriptor : - NamePathDescriptor - , IPathInfo + NamePathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.DELETE; return pathInfo; diff --git a/src/Nest/DSL/DeleteWarmerDescriptor.cs b/src/Nest/DSL/DeleteWarmerDescriptor.cs index f1eab49080d..b76eca1018a 100644 --- a/src/Nest/DSL/DeleteWarmerDescriptor.cs +++ b/src/Nest/DSL/DeleteWarmerDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesDeleteWarmer")] public partial class DeleteWarmerDescriptor : - IndicesOptionalTypesNamePathDecriptor - , IPathInfo + IndicesOptionalTypesNamePathDecriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.DELETE; return pathInfo; diff --git a/src/Nest/DSL/FlushDescriptor.cs b/src/Nest/DSL/FlushDescriptor.cs index 140a73286fc..ab5011cc7fe 100644 --- a/src/Nest/DSL/FlushDescriptor.cs +++ b/src/Nest/DSL/FlushDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesFlush")] public partial class FlushDescriptor : - IndicesOptionalExplicitAllPathDescriptor - , IPathInfo + IndicesOptionalExplicitAllPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/GetAliasesDescriptor.cs b/src/Nest/DSL/GetAliasesDescriptor.cs index 064a4dd6fed..076c54dcfeb 100644 --- a/src/Nest/DSL/GetAliasesDescriptor.cs +++ b/src/Nest/DSL/GetAliasesDescriptor.cs @@ -13,8 +13,8 @@ namespace Nest { [DescriptorFor("IndicesGetAlias")] public partial class GetAliasesDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { internal string _Alias { get; set; } @@ -24,9 +24,9 @@ public GetAliasesDescriptor Alias(string alias) return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; pathInfo.Name = _Alias ?? "*"; return pathInfo; diff --git a/src/Nest/DSL/GetDescriptor.cs b/src/Nest/DSL/GetDescriptor.cs index a4be3ebab8c..2fc5adad6be 100644 --- a/src/Nest/DSL/GetDescriptor.cs +++ b/src/Nest/DSL/GetDescriptor.cs @@ -10,8 +10,8 @@ namespace Nest { - public partial class GetDescriptor : DocumentPathDescriptorBase,T, GetQueryString> - , IPathInfo + public partial class GetDescriptor : DocumentPathDescriptorBase,T, GetRequestParameters> + , IPathInfo where T : class { @@ -25,9 +25,9 @@ public GetDescriptor ExecuteOnLocalShard() return this.Preference("_local"); } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = this.ToPathInfo(settings, this._QueryString); + var pathInfo = this.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/GetIndexSettingsDescriptor.cs b/src/Nest/DSL/GetIndexSettingsDescriptor.cs index ad486fb3895..9ebea5a0ddf 100644 --- a/src/Nest/DSL/GetIndexSettingsDescriptor.cs +++ b/src/Nest/DSL/GetIndexSettingsDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesGetSettings")] public partial class GetIndexSettingsDescriptor : - IndexPathDescriptorBase - , IPathInfo + IndexPathDescriptorBase + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/GetMappingDescriptor.cs b/src/Nest/DSL/GetMappingDescriptor.cs index 7ec68eef906..5e9bc6b09c7 100644 --- a/src/Nest/DSL/GetMappingDescriptor.cs +++ b/src/Nest/DSL/GetMappingDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesGetMapping")] public partial class GetMappingDescriptor : - IndexTypePathDescriptor - , IPathInfo + IndexTypePathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/GetTemplateDescriptor.cs b/src/Nest/DSL/GetTemplateDescriptor.cs index 16baaf66896..44708ef4ee2 100644 --- a/src/Nest/DSL/GetTemplateDescriptor.cs +++ b/src/Nest/DSL/GetTemplateDescriptor.cs @@ -14,12 +14,12 @@ namespace Nest { [DescriptorFor("IndicesGetTemplate")] public partial class GetTemplateDescriptor : - NamePathDescriptor - , IPathInfo + NamePathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/GetWarmerDescriptor.cs b/src/Nest/DSL/GetWarmerDescriptor.cs index 75535ef8190..a2797188932 100644 --- a/src/Nest/DSL/GetWarmerDescriptor.cs +++ b/src/Nest/DSL/GetWarmerDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesGetWarmer")] public partial class GetWarmerDescriptor : - IndicesOptionalTypesNamePathDecriptor - , IPathInfo + IndicesOptionalTypesNamePathDecriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/IndexDescriptor.cs b/src/Nest/DSL/IndexDescriptor.cs index dca9ce390cd..6f68f71aa33 100644 --- a/src/Nest/DSL/IndexDescriptor.cs +++ b/src/Nest/DSL/IndexDescriptor.cs @@ -13,13 +13,13 @@ namespace Nest { [DescriptorFor("Index")] - public partial class IndexDescriptor : DocumentPathDescriptorBase, T, IndexQueryString> - , IPathInfo + public partial class IndexDescriptor : DocumentPathDescriptorBase, T, IndexRequestParameters> + , IPathInfo where T : class { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = this._Id.IsNullOrEmpty() ? PathInfoHttpMethod.POST : PathInfoHttpMethod.PUT; return pathInfo; } diff --git a/src/Nest/DSL/IndexExistsDescriptor.cs b/src/Nest/DSL/IndexExistsDescriptor.cs index 8f149932685..1651f4a8b9f 100644 --- a/src/Nest/DSL/IndexExistsDescriptor.cs +++ b/src/Nest/DSL/IndexExistsDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesExists")] - public partial class IndexExistsDescriptor : IndexPathDescriptorBase - , IPathInfo + public partial class IndexExistsDescriptor : IndexPathDescriptorBase + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.HEAD; return pathInfo; diff --git a/src/Nest/DSL/IndicesStatsDescriptor.cs b/src/Nest/DSL/IndicesStatsDescriptor.cs index a35edaa8415..eaa36f4b68c 100644 --- a/src/Nest/DSL/IndicesStatsDescriptor.cs +++ b/src/Nest/DSL/IndicesStatsDescriptor.cs @@ -13,8 +13,8 @@ namespace Nest { [DescriptorFor("IndicesStats")] public partial class IndicesStatsDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { private IEnumerable _Types { get; set; } private IEnumerable _Metrics { get; set; } @@ -32,9 +32,9 @@ public IndicesStatsDescriptor Metrics(params IndicesStatsMetric[] metrics) return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); if (this._Types.HasAny()) { var inferrer = new ElasticInferrer(settings); diff --git a/src/Nest/DSL/IndicesStatusDescriptor.cs b/src/Nest/DSL/IndicesStatusDescriptor.cs index 72c64fa86b7..459c15c20bd 100644 --- a/src/Nest/DSL/IndicesStatusDescriptor.cs +++ b/src/Nest/DSL/IndicesStatusDescriptor.cs @@ -13,13 +13,13 @@ namespace Nest { [DescriptorFor("IndicesStatus")] public partial class IndicesStatusDescriptor : - IndicesOptionalPathDescriptor - , IPathInfo + IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/InfoDescriptor.cs b/src/Nest/DSL/InfoDescriptor.cs index 405cdf12223..0fe92fbbe56 100644 --- a/src/Nest/DSL/InfoDescriptor.cs +++ b/src/Nest/DSL/InfoDescriptor.cs @@ -13,13 +13,13 @@ namespace Nest { [DescriptorFor("Info")] public partial class InfoDescriptor : - IPathInfo + IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = new ElasticsearchPathInfo(); + var pathInfo = new ElasticsearchPathInfo(); pathInfo.HttpMethod = PathInfoHttpMethod.GET; - pathInfo.QueryString = this._QueryString; + pathInfo.RequestParameters = this._QueryString; return pathInfo; } diff --git a/src/Nest/DSL/MoreLikeThisDescriptor.cs b/src/Nest/DSL/MoreLikeThisDescriptor.cs index fca80ef07b1..cacc08d1e75 100644 --- a/src/Nest/DSL/MoreLikeThisDescriptor.cs +++ b/src/Nest/DSL/MoreLikeThisDescriptor.cs @@ -13,8 +13,8 @@ namespace Nest { [DescriptorFor("Mlt")] public partial class MoreLikeThisDescriptor - : DocumentPathDescriptorBase, T, MoreLikeThisQueryString> - , IPathInfo + : DocumentPathDescriptorBase, T, MoreLikeThisRequestParameters> + , IPathInfo where T : class { internal SearchDescriptor _Search { get; set; } @@ -30,9 +30,9 @@ public MoreLikeThisDescriptor Search(Func, SearchDescript return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = this._Search == null ? PathInfoHttpMethod.GET : PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/MultiGetDescriptor.cs b/src/Nest/DSL/MultiGetDescriptor.cs index 576c2146b2b..9b640b4203a 100644 --- a/src/Nest/DSL/MultiGetDescriptor.cs +++ b/src/Nest/DSL/MultiGetDescriptor.cs @@ -13,8 +13,8 @@ namespace Nest { [DescriptorFor("Mget")] - public partial class MultiGetDescriptor : FixedIndexTypePathDescriptor - , IPathInfo + public partial class MultiGetDescriptor : FixedIndexTypePathDescriptor + , IPathInfo { internal readonly IList _GetOperations = new List(); private readonly IConnectionSettingsValues _settings; @@ -69,9 +69,9 @@ public MultiGetDescriptor GetMany(IEnumerable ids, Func IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = this.ToPathInfo(settings, this._QueryString); + var pathInfo = this.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; // no data in GETS in the .net world return pathInfo; } diff --git a/src/Nest/DSL/MultiSearchDescriptor.cs b/src/Nest/DSL/MultiSearchDescriptor.cs index 220e792d442..8d728cdc4e6 100644 --- a/src/Nest/DSL/MultiSearchDescriptor.cs +++ b/src/Nest/DSL/MultiSearchDescriptor.cs @@ -13,8 +13,8 @@ namespace Nest { [DescriptorFor("Msearch")] public partial class MultiSearchDescriptor - : FixedIndexTypePathDescriptor - , IPathInfo + : FixedIndexTypePathDescriptor + , IPathInfo { [JsonConverter(typeof(DictionaryKeysAreNotPropertyNamesJsonConverter))] @@ -36,9 +36,9 @@ public MultiSearchDescriptor Search(Func, SearchDescripto return this.Search(Guid.NewGuid().ToString(), searchSelector); } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; } diff --git a/src/Nest/DSL/NodesInfoDescriptor.cs b/src/Nest/DSL/NodesInfoDescriptor.cs index 07b0fc5262c..fdc4cb8f58e 100644 --- a/src/Nest/DSL/NodesInfoDescriptor.cs +++ b/src/Nest/DSL/NodesInfoDescriptor.cs @@ -11,8 +11,8 @@ namespace Nest { [DescriptorFor("NodesInfo")] - public partial class NodesInfoDescriptor : NodeIdOptionalDescriptor - , IPathInfo + public partial class NodesInfoDescriptor : NodeIdOptionalDescriptor + , IPathInfo { private IEnumerable _Metrics { get; set; } public NodesInfoDescriptor Metrics(params NodesInfoMetric[] metrics) @@ -20,9 +20,9 @@ public NodesInfoDescriptor Metrics(params NodesInfoMetric[] metrics) this._Metrics = metrics; return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); if (this._Metrics != null) pathInfo.Metric = this._Metrics.Cast().GetStringValue(); pathInfo.HttpMethod = PathInfoHttpMethod.GET; diff --git a/src/Nest/DSL/NodesStatsDescriptor.cs b/src/Nest/DSL/NodesStatsDescriptor.cs index 67f437a8247..b7c4e794e04 100644 --- a/src/Nest/DSL/NodesStatsDescriptor.cs +++ b/src/Nest/DSL/NodesStatsDescriptor.cs @@ -11,8 +11,8 @@ namespace Nest { [DescriptorFor("NodesStats")] - public partial class NodesStatsDescriptor : NodeIdOptionalDescriptor - , IPathInfo + public partial class NodesStatsDescriptor : NodeIdOptionalDescriptor + , IPathInfo { private IEnumerable _Metrics { get; set; } private IEnumerable _IndexMetrics { get; set; } @@ -28,9 +28,9 @@ public NodesStatsDescriptor IndexMetrics(params NodesStatsIndexMetric[] metrics) return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; if (this._Metrics != null) pathInfo.Metric = this._Metrics.Cast().GetStringValue(); diff --git a/src/Nest/DSL/OpenIndexDescriptor.cs b/src/Nest/DSL/OpenIndexDescriptor.cs index dc7d9fc1f2b..dc8ffa12973 100644 --- a/src/Nest/DSL/OpenIndexDescriptor.cs +++ b/src/Nest/DSL/OpenIndexDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesOpen")] - public partial class OpenIndexDescriptor : IndexPathDescriptorBase - , IPathInfo + public partial class OpenIndexDescriptor : IndexPathDescriptorBase + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/OptimizeDescriptor.cs b/src/Nest/DSL/OptimizeDescriptor.cs index 78952d09df4..72e7713674a 100644 --- a/src/Nest/DSL/OptimizeDescriptor.cs +++ b/src/Nest/DSL/OptimizeDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesOptimize")] - public partial class OptimizeDescriptor : IndicesOptionalPathDescriptor - , IPathInfo + public partial class OptimizeDescriptor : IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/Paths/BasePathDescriptor.cs b/src/Nest/DSL/Paths/BasePathDescriptor.cs new file mode 100644 index 00000000000..695481db2e5 --- /dev/null +++ b/src/Nest/DSL/Paths/BasePathDescriptor.cs @@ -0,0 +1,22 @@ +using System; +using Elasticsearch.Net; +using Elasticsearch.Net.Connection; + +namespace Nest +{ + public class BasePathDescriptor + where T : BasePathDescriptor + { + internal RequestConfiguration _RequestConfiguration { get; set; } + + /// + /// Specify settings for this request alone, handy if you need a custom timeout or want to bypass sniffing, retries + /// + public T RequestConfiguration(Func configurationSelector) + { + configurationSelector.ThrowIfNull("configurationSelector"); + this._RequestConfiguration = configurationSelector(new RequestConfiguration()); + return (T)this; + } + } +} \ No newline at end of file diff --git a/src/Nest/DSL/Paths/DocumentPathDescriptor.cs b/src/Nest/DSL/Paths/DocumentPathDescriptor.cs index c6c7f8e6305..e89e27b22c8 100644 --- a/src/Nest/DSL/Paths/DocumentPathDescriptor.cs +++ b/src/Nest/DSL/Paths/DocumentPathDescriptor.cs @@ -18,10 +18,10 @@ namespace Nest /// /// if one of the parameters is not explicitly specified this will fall back to the defaults for type T /// - public class DocumentPathDescriptorBase + public class DocumentPathDescriptorBase : BasePathDescriptor

where P : DocumentPathDescriptorBase, new() where T : class - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IndexNameMarker _Index { get; set; } @@ -77,7 +77,7 @@ public P Object(T @object) return (P)this; } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); var index = this._Index != null ? inferrer.IndexName(this._Index) : inferrer.IndexName(); @@ -89,7 +89,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Type = type, Id = id }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/FixedIndexTypePathDescriptor.cs b/src/Nest/DSL/Paths/FixedIndexTypePathDescriptor.cs index de31d5a7d05..954b9100fef 100644 --- a/src/Nest/DSL/Paths/FixedIndexTypePathDescriptor.cs +++ b/src/Nest/DSL/Paths/FixedIndexTypePathDescriptor.cs @@ -19,9 +19,9 @@ namespace Nest /// {index} is optional and so is {type} and will NOT fallback to the defaults of T /// type can only be specified in conjuction with index. ///

- public class FixedIndexTypePathDescriptor + public class FixedIndexTypePathDescriptor : BasePathDescriptor

where P : FixedIndexTypePathDescriptor - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IndexNameMarker _Index { get; set; } internal TypeNameMarker _Type { get; set; } @@ -53,8 +53,7 @@ public P FixedPath() return (P) this; } - internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) { var inferrer = new ElasticInferrer(settings); @@ -66,7 +65,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Index = index, Type = type }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndexNamePathDescriptor.cs b/src/Nest/DSL/Paths/IndexNamePathDescriptor.cs index 8f650c1a0f4..8fd31e224b1 100644 --- a/src/Nest/DSL/Paths/IndexNamePathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndexNamePathDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// neither parameter is optional ///

- public class IndexNamePathDescriptor + public class IndexNamePathDescriptor : BasePathDescriptor

where P : IndexNamePathDescriptor, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IndexNameMarker _Index { get; set; } internal string _Name { get; set; } @@ -50,7 +50,7 @@ public P Name(string name) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { if (this._Name == null) throw new DslException("missing Name()"); @@ -61,7 +61,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Index = index, Name = this._Name }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndexOptionalPathDescriptor.cs b/src/Nest/DSL/Paths/IndexOptionalPathDescriptor.cs index 22be0696dce..4cea99668e6 100644 --- a/src/Nest/DSL/Paths/IndexOptionalPathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndexOptionalPathDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// index is optional but AllIndices() needs to be explicitly specified for it to be optional ///

- public class IndexOptionalPathDescriptorBase + public class IndexOptionalPathDescriptorBase : BasePathDescriptor

where P : IndexOptionalPathDescriptorBase, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IndexNameMarker _Index { get; set; } @@ -51,7 +51,7 @@ public P Index(Type indexType) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); if (!this._AllIndices.HasValue && this._Index == null) @@ -65,7 +65,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue { Index = index, }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndexPathDescriptor.cs b/src/Nest/DSL/Paths/IndexPathDescriptor.cs index fb01cb83c9d..cb508399aec 100644 --- a/src/Nest/DSL/Paths/IndexPathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndexPathDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// index is not optional ///

- public class IndexPathDescriptorBase + public class IndexPathDescriptorBase : BasePathDescriptor

where P : IndexPathDescriptorBase, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IndexNameMarker _Index { get; set; } @@ -43,7 +43,7 @@ public P Index(Type indexType) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { if (this._Index == null) throw new DslException("missing call to Index()"); @@ -53,7 +53,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue { Index = index, }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndexTypePathDescriptor.cs b/src/Nest/DSL/Paths/IndexTypePathDescriptor.cs index 97a0c3d3b45..87bc81880ef 100644 --- a/src/Nest/DSL/Paths/IndexTypePathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndexTypePathDescriptor.cs @@ -19,9 +19,9 @@ namespace Nest /// /// Where neither parameter is optional ///

- public class IndexTypePathDescriptor + public class IndexTypePathDescriptor : BasePathDescriptor

where P : IndexTypePathDescriptor, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IndexNameMarker _Index { get; set; } internal TypeNameMarker _Type { get; set; } @@ -63,7 +63,7 @@ public P Type(Type type) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); if (this._Index == null) @@ -78,7 +78,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Index = index, Type = type }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndexTypePathTypedDescriptor.cs b/src/Nest/DSL/Paths/IndexTypePathTypedDescriptor.cs index 889e211d5ed..1fa1a1c4701 100644 --- a/src/Nest/DSL/Paths/IndexTypePathTypedDescriptor.cs +++ b/src/Nest/DSL/Paths/IndexTypePathTypedDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// if one of the parameters is not explicitly specified this will fall back to the defaults for type T ///

- public class IndexTypePathTypedDescriptor + public class IndexTypePathTypedDescriptor : BasePathDescriptor

where P : IndexTypePathTypedDescriptor, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() where T : class { internal IndexNameMarker _Index { get; set; } @@ -63,7 +63,7 @@ public P Type(Type type) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); if (this._Index == null) @@ -78,7 +78,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Index = index, Type = type }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndicesOptionalExplicitAllPathDescriptor.cs b/src/Nest/DSL/Paths/IndicesOptionalExplicitAllPathDescriptor.cs index 8a7c85acfb7..e984953c041 100644 --- a/src/Nest/DSL/Paths/IndicesOptionalExplicitAllPathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndicesOptionalExplicitAllPathDescriptor.cs @@ -19,9 +19,9 @@ namespace Nest /// /// {indices} is optional but AllIndices() needs to be explicitly called. ///

- public class IndicesOptionalExplicitAllPathDescriptor + public class IndicesOptionalExplicitAllPathDescriptor : BasePathDescriptor

where P : IndicesOptionalExplicitAllPathDescriptor, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IEnumerable _Indices { get; set; } @@ -56,7 +56,7 @@ public P Indices(params Type[] indicesTypes) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); if (!this._AllIndices.HasValue && this._Indices == null) @@ -70,7 +70,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue { Index = index, }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndicesOptionalPathDescriptor.cs b/src/Nest/DSL/Paths/IndicesOptionalPathDescriptor.cs index 753e09c4728..c1bf2f33be4 100644 --- a/src/Nest/DSL/Paths/IndicesOptionalPathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndicesOptionalPathDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// {indices} is optional ///

- public class IndicesOptionalPathDescriptor + public class IndicesOptionalPathDescriptor : BasePathDescriptor

where P : IndicesOptionalPathDescriptor, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IEnumerable _Indices { get; set; } @@ -47,7 +47,7 @@ public P Indices(params Type[] indicesTypes) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var index = this._Indices == null ? null : string.Join(",", this._Indices.Select(i => new ElasticInferrer(settings).IndexName(i))); @@ -55,7 +55,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue { Index = index, }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndicesOptionalTypesNamePathDecriptor.cs b/src/Nest/DSL/Paths/IndicesOptionalTypesNamePathDecriptor.cs index a865e45f0c8..ddf4faccd6f 100644 --- a/src/Nest/DSL/Paths/IndicesOptionalTypesNamePathDecriptor.cs +++ b/src/Nest/DSL/Paths/IndicesOptionalTypesNamePathDecriptor.cs @@ -20,9 +20,9 @@ namespace Nest /// /// {types} is optional, {indices} is too but needs an explicit AllIndices(). ///

- public class IndicesOptionalTypesNamePathDecriptor + public class IndicesOptionalTypesNamePathDecriptor : BasePathDescriptor

where P : IndicesOptionalTypesNamePathDecriptor, new() - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal bool? _AllIndices { get; set; } @@ -115,7 +115,7 @@ public P Name(string name) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); if (!this._AllIndices.HasValue && this._Indices == null) @@ -139,7 +139,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Type = types, Name = this._Name }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/IndicesTypePathDescriptor.cs b/src/Nest/DSL/Paths/IndicesTypePathDescriptor.cs index d889d6abc59..f58120fd2cb 100644 --- a/src/Nest/DSL/Paths/IndicesTypePathDescriptor.cs +++ b/src/Nest/DSL/Paths/IndicesTypePathDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// {indices} is optional and so is {type} and will fallback to default of T ///

- public class IndicesTypePathDescriptor + public class IndicesTypePathDescriptor : BasePathDescriptor

where P : IndicesTypePathDescriptor - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() where T : class { internal bool? _AllIndices { get; set; } @@ -71,7 +71,7 @@ public P Type(Type type) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var inferrer = new ElasticInferrer(settings); if (this._Type == null) @@ -89,7 +89,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue Index = index, Type = type }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/NamePathDescriptor.cs b/src/Nest/DSL/Paths/NamePathDescriptor.cs index 1a2dae25dd8..b4d65fb696b 100644 --- a/src/Nest/DSL/Paths/NamePathDescriptor.cs +++ b/src/Nest/DSL/Paths/NamePathDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// name is mandatory. ///

- public class NamePathDescriptor + public class NamePathDescriptor : BasePathDescriptor

where P : NamePathDescriptor - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal string _Name { get; set; } @@ -34,7 +34,7 @@ public P Name(string name) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { if (this._Name.IsNullOrEmpty()) throw new DslException("missing Name()"); @@ -43,7 +43,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue { Name = this._Name }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/NodeIdOptionalDescriptor.cs b/src/Nest/DSL/Paths/NodeIdOptionalDescriptor.cs index 959fc311932..56c8d17ea88 100644 --- a/src/Nest/DSL/Paths/NodeIdOptionalDescriptor.cs +++ b/src/Nest/DSL/Paths/NodeIdOptionalDescriptor.cs @@ -18,9 +18,9 @@ namespace Nest /// /// node id is optional ///

- public class NodeIdOptionalDescriptor + public class NodeIdOptionalDescriptor : BasePathDescriptor

where P : NodeIdOptionalDescriptor - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal string _NodeId { get; set; } @@ -34,13 +34,14 @@ public P NodeId(string nodeId) } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { var pathInfo = new ElasticsearchPathInfo() { NodeId = this._NodeId }; - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/Paths/QueryPathDescriptor.cs b/src/Nest/DSL/Paths/QueryPathDescriptor.cs index b5c0bef2cad..a67ebe76a4d 100644 --- a/src/Nest/DSL/Paths/QueryPathDescriptor.cs +++ b/src/Nest/DSL/Paths/QueryPathDescriptor.cs @@ -11,13 +11,6 @@ namespace Nest { - - public class QueryPathDescriptor : QueryPathDescriptorBase, T, BulkQueryString> - where T : class - { - - } - ///

/// Provides a base for descriptors that need to describe a path in the form of ///
@@ -25,10 +18,10 @@ public class QueryPathDescriptor : QueryPathDescriptorBase
 	/// all parameters are optional and will default to the defaults for T
 	/// 
- public class QueryPathDescriptorBase + public class QueryPathDescriptorBase : BasePathDescriptor

where P : QueryPathDescriptorBase, new() where T : class - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { internal IEnumerable _Indices { get; set; } internal IEnumerable _Types { get; set; } @@ -118,7 +111,7 @@ public P AllTypes() } internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings, K queryString) - where K : FluentQueryString, new() + where K : FluentRequestParameters, new() { //start out with defaults var inferrer = new ElasticInferrer(settings); @@ -145,7 +138,8 @@ internal virtual ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValue - pathInfo.QueryString = queryString ?? new K(); + pathInfo.RequestParameters = queryString ?? new K(); + pathInfo.RequestParameters.RequestConfiguration(r=>this._RequestConfiguration); return pathInfo; } diff --git a/src/Nest/DSL/PercolateDescriptor.cs b/src/Nest/DSL/PercolateDescriptor.cs index d999c0ad5b0..80d430f9b65 100644 --- a/src/Nest/DSL/PercolateDescriptor.cs +++ b/src/Nest/DSL/PercolateDescriptor.cs @@ -11,8 +11,8 @@ namespace Nest { - public partial class PercolateDescriptor : IndexTypePathTypedDescriptor, PercolateQueryString, T> - , IPathInfo + public partial class PercolateDescriptor : IndexTypePathTypedDescriptor, PercolateRequestParameters, T> + , IPathInfo where T : class where K : class { @@ -42,9 +42,9 @@ public PercolateDescriptor Query(Func, BaseQuery> query return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); //.NET does not like sending data using get so we use POST pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/PutMappingDescriptor.cs b/src/Nest/DSL/PutMappingDescriptor.cs index 6d78ba1f926..2589ba2b682 100644 --- a/src/Nest/DSL/PutMappingDescriptor.cs +++ b/src/Nest/DSL/PutMappingDescriptor.cs @@ -9,8 +9,8 @@ namespace Nest { [DescriptorFor("IndicesPutMapping")] public partial class PutMappingDescriptor - : IndicesTypePathDescriptor, PutMappingQueryString, T> - , IPathInfo + : IndicesTypePathDescriptor, PutMappingRequestParameters, T> + , IPathInfo where T : class { private readonly IConnectionSettingsValues _connectionSettings; @@ -231,9 +231,9 @@ public PutMappingDescriptor DynamicTemplates(Func IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.PUT; return pathInfo; diff --git a/src/Nest/DSL/PutTemplateDescriptor.cs b/src/Nest/DSL/PutTemplateDescriptor.cs index bf863d2bd8e..377391da6a2 100644 --- a/src/Nest/DSL/PutTemplateDescriptor.cs +++ b/src/Nest/DSL/PutTemplateDescriptor.cs @@ -7,8 +7,8 @@ namespace Nest { [DescriptorFor("IndicesPutTemplate")] - public partial class PutTemplateDescriptor : NamePathDescriptor - , IPathInfo + public partial class PutTemplateDescriptor : NamePathDescriptor + , IPathInfo { private readonly IConnectionSettingsValues _connectionSettings; @@ -86,9 +86,9 @@ public PutTemplateDescriptor AddWarmer(Func IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.PUT; pathInfo.Name = this._Name; return pathInfo; diff --git a/src/Nest/DSL/PutWarmerDescriptor.cs b/src/Nest/DSL/PutWarmerDescriptor.cs index 135e512edce..58f59abfdbb 100644 --- a/src/Nest/DSL/PutWarmerDescriptor.cs +++ b/src/Nest/DSL/PutWarmerDescriptor.cs @@ -15,8 +15,8 @@ namespace Nest [DescriptorFor("IndicesPutWarmer")] [JsonConverter(typeof(CustomJsonConverter))] public partial class PutWarmerDescriptor : - IndicesOptionalTypesNamePathDecriptor - , IPathInfo + IndicesOptionalTypesNamePathDecriptor + , IPathInfo , IActAsSearchDescriptor , ICustomJson { @@ -29,9 +29,9 @@ public PutWarmerDescriptor Search(Func, SearchDescriptor< return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.PUT; return pathInfo; diff --git a/src/Nest/DSL/RefreshDescriptor.cs b/src/Nest/DSL/RefreshDescriptor.cs index c35bcb40118..12c0ebc6dd1 100644 --- a/src/Nest/DSL/RefreshDescriptor.cs +++ b/src/Nest/DSL/RefreshDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesRefresh")] - public partial class RefreshDescriptor : IndicesOptionalPathDescriptor - , IPathInfo + public partial class RefreshDescriptor : IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/RegisterPercolatorDescriptor.cs b/src/Nest/DSL/RegisterPercolatorDescriptor.cs index 12c79574501..b7f3e3b87a5 100644 --- a/src/Nest/DSL/RegisterPercolatorDescriptor.cs +++ b/src/Nest/DSL/RegisterPercolatorDescriptor.cs @@ -12,8 +12,8 @@ namespace Nest { - public class RegisterPercolatorDescriptor : IndexNamePathDescriptor, IndexQueryString> - , IPathInfo + public class RegisterPercolatorDescriptor : IndexNamePathDescriptor, IndexRequestParameters> + , IPathInfo where T : class { internal FluentDictionary _RequestBody @@ -52,13 +52,13 @@ public RegisterPercolatorDescriptor Query(Func, BaseQuery> return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { //registering a percolator in elasticsearch < 1.0 is actually indexing a document in a //special _percolator index where the passed index is actually a type //the name is actually the id, we rectify that here - var pathInfo = base.ToPathInfo(settings, new IndexQueryString()); + var pathInfo = base.ToPathInfo(settings, new IndexRequestParameters()); pathInfo.HttpMethod = PathInfoHttpMethod.POST; pathInfo.Index = pathInfo.Index; pathInfo.Id = pathInfo.Name; diff --git a/src/Nest/DSL/ScrollDescriptor.cs b/src/Nest/DSL/ScrollDescriptor.cs index 24f4dcc11c9..d4d5d01a56f 100644 --- a/src/Nest/DSL/ScrollDescriptor.cs +++ b/src/Nest/DSL/ScrollDescriptor.cs @@ -14,19 +14,19 @@ namespace Nest { public partial class ScrollDescriptor : - IPathInfo, + IPathInfo, IHideObjectMembers where T : class { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = new ElasticsearchPathInfo(); + var pathInfo = new ElasticsearchPathInfo(); // force POST scrollId can be quite big pathInfo.HttpMethod = PathInfoHttpMethod.POST; pathInfo.ScrollId = this._QueryString._scroll_id; - // force scroll id out of querystring (potentially very large) + // force scroll id out of RequestParameters (potentially very large) this._QueryString._QueryStringDictionary.Remove("scroll_id"); - pathInfo.QueryString = this._QueryString; + pathInfo.RequestParameters = this._QueryString; return pathInfo; } } diff --git a/src/Nest/DSL/SearchDescriptor.cs b/src/Nest/DSL/SearchDescriptor.cs index b82868edc63..5391fcf4218 100644 --- a/src/Nest/DSL/SearchDescriptor.cs +++ b/src/Nest/DSL/SearchDescriptor.cs @@ -22,7 +22,7 @@ namespace Nest [JsonObject(MemberSerialization = MemberSerialization.OptIn)] public partial class SearchDescriptor : SearchDescriptorBase - , IPathInfo + , IPathInfo where T : class { internal override SearchTypeOptions? _SearchType @@ -1057,14 +1057,14 @@ public SearchDescriptor ConcreteTypeSelector(Func, Type return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = new ElasticsearchPathInfo(); + var pathInfo = new ElasticsearchPathInfo(); pathInfo.HttpMethod = this._QueryString.ContainsKey("source") ? PathInfoHttpMethod.GET : PathInfoHttpMethod.POST; - pathInfo.QueryString = this._QueryString; + pathInfo.RequestParameters = this._QueryString; var inferrer = new ElasticInferrer(settings); string indices; diff --git a/src/Nest/DSL/SegmentsDescriptor.cs b/src/Nest/DSL/SegmentsDescriptor.cs index 3c9986fbb00..288618ded14 100644 --- a/src/Nest/DSL/SegmentsDescriptor.cs +++ b/src/Nest/DSL/SegmentsDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesSegments")] - public partial class SegmentsDescriptor : IndicesOptionalPathDescriptor - , IPathInfo + public partial class SegmentsDescriptor : IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/SnapshotDescriptor.cs b/src/Nest/DSL/SnapshotDescriptor.cs index ed640f7654a..05d2792406d 100644 --- a/src/Nest/DSL/SnapshotDescriptor.cs +++ b/src/Nest/DSL/SnapshotDescriptor.cs @@ -13,12 +13,12 @@ namespace Nest { [DescriptorFor("IndicesSnapshotIndex")] - public partial class SnapshotDescriptor : IndicesOptionalPathDescriptor - , IPathInfo + public partial class SnapshotDescriptor : IndicesOptionalPathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); + var pathInfo = base.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/SourceDescriptor.cs b/src/Nest/DSL/SourceDescriptor.cs index f91a226996f..80a45f2c28f 100644 --- a/src/Nest/DSL/SourceDescriptor.cs +++ b/src/Nest/DSL/SourceDescriptor.cs @@ -11,8 +11,8 @@ namespace Nest { [DescriptorFor("GetSource")] - public partial class SourceDescriptor : DocumentPathDescriptorBase,T, SourceQueryString> - , IPathInfo + public partial class SourceDescriptor : DocumentPathDescriptorBase,T, SourceRequestParameters> + , IPathInfo where T : class { @@ -27,9 +27,9 @@ public SourceDescriptor ExecuteOnLocalShard() } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = this.ToPathInfo(settings, this._QueryString); + var pathInfo = this.ToPathInfo(settings, this._QueryString); pathInfo.HttpMethod = PathInfoHttpMethod.GET; return pathInfo; diff --git a/src/Nest/DSL/UnregisterPercolatorDescriptor.cs b/src/Nest/DSL/UnregisterPercolatorDescriptor.cs index 3c4d15b86dd..68813cd37a5 100644 --- a/src/Nest/DSL/UnregisterPercolatorDescriptor.cs +++ b/src/Nest/DSL/UnregisterPercolatorDescriptor.cs @@ -13,16 +13,16 @@ namespace Nest { public partial class UnregisterPercolatorDescriptor - : IndexNamePathDescriptor - , IPathInfo + : IndexNamePathDescriptor + , IPathInfo { - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { //deleting a percolator in elasticsearch < 1.0 is actually deleting a document in a //special _percolator index where the passed index is actually a type //the name is actually the id, we rectify that here - var pathInfo = base.ToPathInfo(settings, new DeleteQueryString()); + var pathInfo = base.ToPathInfo(settings, new DeleteRequestParameters()); pathInfo.Index = pathInfo.Index; pathInfo.Id = pathInfo.Name; pathInfo.Type = ".percolator"; diff --git a/src/Nest/DSL/UpdateDescriptor.cs b/src/Nest/DSL/UpdateDescriptor.cs index 5708df3c1ff..70f347db05c 100644 --- a/src/Nest/DSL/UpdateDescriptor.cs +++ b/src/Nest/DSL/UpdateDescriptor.cs @@ -9,8 +9,8 @@ namespace Nest { - public partial class UpdateDescriptor : DocumentPathDescriptorBase, T, UpdateQueryString> - , IPathInfo + public partial class UpdateDescriptor : DocumentPathDescriptorBase, T, UpdateRequestParameters> + , IPathInfo where T : class where K : class { @@ -80,10 +80,10 @@ public UpdateDescriptor DocAsUpsert(bool docAsUpsert = true) return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); - pathInfo.QueryString = this._QueryString; + var pathInfo = base.ToPathInfo(settings, this._QueryString); + pathInfo.RequestParameters = this._QueryString; pathInfo.HttpMethod = PathInfoHttpMethod.POST; return pathInfo; diff --git a/src/Nest/DSL/UpdateSettingsDescriptor.cs b/src/Nest/DSL/UpdateSettingsDescriptor.cs index fd1aa6880e5..8ee59d505af 100644 --- a/src/Nest/DSL/UpdateSettingsDescriptor.cs +++ b/src/Nest/DSL/UpdateSettingsDescriptor.cs @@ -12,8 +12,8 @@ namespace Nest { [DescriptorFor("IndicesPutSettings")] public partial class UpdateSettingsDescriptor - : IndexOptionalPathDescriptorBase - , IPathInfo + : IndexOptionalPathDescriptorBase + , IPathInfo { [JsonProperty("index.number_of_replicas")] internal int? _NumberOfReplicas { get; set; } @@ -396,10 +396,10 @@ public UpdateSettingsDescriptor Analysis(Func IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); - pathInfo.QueryString = this._QueryString; + var pathInfo = base.ToPathInfo(settings, this._QueryString); + pathInfo.RequestParameters = this._QueryString; pathInfo.HttpMethod = PathInfoHttpMethod.PUT; return pathInfo; diff --git a/src/Nest/DSL/ValidateQueryDescriptor.cs b/src/Nest/DSL/ValidateQueryDescriptor.cs index 4d056971d46..35c95ca569c 100644 --- a/src/Nest/DSL/ValidateQueryDescriptor.cs +++ b/src/Nest/DSL/ValidateQueryDescriptor.cs @@ -7,8 +7,8 @@ namespace Nest { [DescriptorFor("IndicesValidateQuery")] public partial class ValidateQueryDescriptor - : QueryPathDescriptorBase, T, ValidateQueryQueryString> - , IPathInfo + : QueryPathDescriptorBase, T, ValidateQueryRequestParameters> + , IPathInfo where T : class { [JsonProperty("query")] @@ -20,10 +20,10 @@ public ValidateQueryDescriptor Query(Func, BaseQuery> quer return this; } - ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) + ElasticsearchPathInfo IPathInfo.ToPathInfo(IConnectionSettingsValues settings) { - var pathInfo = base.ToPathInfo(settings, this._QueryString); - pathInfo.QueryString = this._QueryString; + var pathInfo = base.ToPathInfo(settings, this._QueryString); + pathInfo.RequestParameters = this._QueryString; var qs = this._QueryString; pathInfo.HttpMethod = (!qs._source.IsNullOrEmpty() || !qs._q.IsNullOrEmpty()) ? PathInfoHttpMethod.GET diff --git a/src/Nest/DSL/_Descriptors.generated.cs b/src/Nest/DSL/_Descriptors.generated.cs index f968ee8b20b..7ef8573adc5 100644 --- a/src/Nest/DSL/_Descriptors.generated.cs +++ b/src/Nest/DSL/_Descriptors.generated.cs @@ -7,7 +7,6 @@ ///This file lays the base for all the descriptors based on the query string parameters in the spec for IElasticClient. ///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec ///Generated of commit -using Nest.Domain; namespace Nest { @@ -19,7 +18,7 @@ namespace Nest ///

public partial class BulkDescriptor { - internal BulkQueryString _QueryString = new BulkQueryString(); + internal BulkRequestParameters _QueryString = new BulkRequestParameters(); ///Explicit write consistency setting for the operation @@ -80,7 +79,7 @@ public BulkDescriptor TypeQueryString(string type) ///
public partial class CatAliasesDescriptor { - internal CatAliasesQueryString _QueryString = new CatAliasesQueryString(); + internal CatAliasesRequestParameters _QueryString = new CatAliasesRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -133,7 +132,7 @@ public CatAliasesDescriptor V(bool v = true) ///
public partial class CatAllocationDescriptor { - internal CatAllocationQueryString _QueryString = new CatAllocationQueryString(); + internal CatAllocationRequestParameters _QueryString = new CatAllocationRequestParameters(); ///The unit in which to display byte values @@ -194,7 +193,7 @@ public CatAllocationDescriptor V(bool v = true) ///
public partial class CatCountDescriptor { - internal CatCountQueryString _QueryString = new CatCountQueryString(); + internal CatCountRequestParameters _QueryString = new CatCountRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -247,7 +246,7 @@ public CatCountDescriptor V(bool v = true) ///
public partial class CatHealthDescriptor { - internal CatHealthQueryString _QueryString = new CatHealthQueryString(); + internal CatHealthRequestParameters _QueryString = new CatHealthRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -308,7 +307,7 @@ public CatHealthDescriptor V(bool v = true) ///
public partial class CatHelpDescriptor { - internal CatHelpQueryString _QueryString = new CatHelpQueryString(); + internal CatHelpRequestParameters _QueryString = new CatHelpRequestParameters(); ///Return help information @@ -329,7 +328,7 @@ public CatHelpDescriptor Help(bool help = true) ///
public partial class CatIndicesDescriptor { - internal CatIndicesQueryString _QueryString = new CatIndicesQueryString(); + internal CatIndicesRequestParameters _QueryString = new CatIndicesRequestParameters(); ///The unit in which to display byte values @@ -398,7 +397,7 @@ public CatIndicesDescriptor V(bool v = true) ///
public partial class CatMasterDescriptor { - internal CatMasterQueryString _QueryString = new CatMasterQueryString(); + internal CatMasterRequestParameters _QueryString = new CatMasterRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -451,7 +450,7 @@ public CatMasterDescriptor V(bool v = true) ///
public partial class CatNodesDescriptor { - internal CatNodesQueryString _QueryString = new CatNodesQueryString(); + internal CatNodesRequestParameters _QueryString = new CatNodesRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -504,7 +503,7 @@ public CatNodesDescriptor V(bool v = true) ///
public partial class CatPendingTasksDescriptor { - internal CatPendingTasksQueryString _QueryString = new CatPendingTasksQueryString(); + internal CatPendingTasksRequestParameters _QueryString = new CatPendingTasksRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -557,7 +556,7 @@ public CatPendingTasksDescriptor V(bool v = true) ///
public partial class CatRecoveryDescriptor { - internal CatRecoveryQueryString _QueryString = new CatRecoveryQueryString(); + internal CatRecoveryRequestParameters _QueryString = new CatRecoveryRequestParameters(); ///The unit in which to display byte values @@ -618,7 +617,7 @@ public CatRecoveryDescriptor V(bool v = true) ///
public partial class CatShardsDescriptor { - internal CatShardsQueryString _QueryString = new CatShardsQueryString(); + internal CatShardsRequestParameters _QueryString = new CatShardsRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -671,7 +670,7 @@ public CatShardsDescriptor V(bool v = true) ///
public partial class CatThreadPoolDescriptor { - internal CatThreadPoolQueryString _QueryString = new CatThreadPoolQueryString(); + internal CatThreadPoolRequestParameters _QueryString = new CatThreadPoolRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -732,7 +731,7 @@ public CatThreadPoolDescriptor FullId(bool full_id = true) ///
public partial class ClearScrollDescriptor { - internal ClearScrollQueryString _QueryString = new ClearScrollQueryString(); + internal ClearScrollRequestParameters _QueryString = new ClearScrollRequestParameters(); } @@ -745,7 +744,7 @@ public partial class ClearScrollDescriptor ///
public partial class ClusterGetSettingsDescriptor { - internal ClusterGetSettingsQueryString _QueryString = new ClusterGetSettingsQueryString(); + internal ClusterGetSettingsRequestParameters _QueryString = new ClusterGetSettingsRequestParameters(); ///Return settings in flat format (default: false) @@ -782,7 +781,7 @@ public ClusterGetSettingsDescriptor Timeout(string timeout) ///
public partial class ClusterHealthDescriptor { - internal ClusterHealthQueryString _QueryString = new ClusterHealthQueryString(); + internal ClusterHealthRequestParameters _QueryString = new ClusterHealthRequestParameters(); ///Specify the level of detail for returned information @@ -859,7 +858,7 @@ public ClusterHealthDescriptor WaitForStatus(WaitForStatusOptions wait_for_statu ///
public partial class ClusterPendingTasksDescriptor { - internal ClusterPendingTasksQueryString _QueryString = new ClusterPendingTasksQueryString(); + internal ClusterPendingTasksRequestParameters _QueryString = new ClusterPendingTasksRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -888,7 +887,7 @@ public ClusterPendingTasksDescriptor MasterTimeout(string master_timeout) ///
public partial class ClusterPutSettingsDescriptor { - internal ClusterPutSettingsQueryString _QueryString = new ClusterPutSettingsQueryString(); + internal ClusterPutSettingsRequestParameters _QueryString = new ClusterPutSettingsRequestParameters(); ///Return settings in flat format (default: false) @@ -909,7 +908,7 @@ public ClusterPutSettingsDescriptor FlatSettings(bool flat_settings = true) ///
public partial class ClusterRerouteDescriptor { - internal ClusterRerouteQueryString _QueryString = new ClusterRerouteQueryString(); + internal ClusterRerouteRequestParameters _QueryString = new ClusterRerouteRequestParameters(); ///Simulate the operation only and return the resulting state @@ -954,7 +953,7 @@ public ClusterRerouteDescriptor Timeout(string timeout) ///
public partial class ClusterStateDescriptor { - internal ClusterStateQueryString _QueryString = new ClusterStateQueryString(); + internal ClusterStateRequestParameters _QueryString = new ClusterStateRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -999,7 +998,7 @@ public ClusterStateDescriptor FlatSettings(bool flat_settings = true) ///
public partial class ClusterStatsDescriptor { - internal ClusterStatsQueryString _QueryString = new ClusterStatsQueryString(); + internal ClusterStatsRequestParameters _QueryString = new ClusterStatsRequestParameters(); ///Return settings in flat format (default: false) @@ -1028,7 +1027,7 @@ public ClusterStatsDescriptor Human(bool human = true) ///
public partial class CountDescriptor { - internal CountQueryString _QueryString = new CountQueryString(); + internal CountRequestParameters _QueryString = new CountRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -1097,7 +1096,7 @@ public CountDescriptor Source(string source) ///
public partial class CountPercolateDescriptor { - internal CountPercolateQueryString _QueryString = new CountPercolateQueryString(); + internal CountPercolateRequestParameters _QueryString = new CountPercolateRequestParameters(); ///A comma-separated list of specific routing values @@ -1182,7 +1181,7 @@ public CountPercolateDescriptor VersionType(VersionTypeOptions version_type) ///
public partial class DeleteDescriptor { - internal DeleteQueryString _QueryString = new DeleteQueryString(); + internal DeleteRequestParameters _QueryString = new DeleteRequestParameters(); ///Specific write consistency setting for the operation @@ -1259,7 +1258,7 @@ public DeleteDescriptor VersionType(VersionTypeOptions version_type) ///
public partial class DeleteByQueryDescriptor { - internal DeleteByQueryQueryString _QueryString = new DeleteByQueryQueryString(); + internal DeleteByQueryRequestParameters _QueryString = new DeleteByQueryRequestParameters(); ///The analyzer to use for the query string @@ -1368,7 +1367,7 @@ public DeleteByQueryDescriptor Timeout(string timeout) ///
public partial class ExistsDescriptor { - internal ExistsQueryString _QueryString = new ExistsQueryString(); + internal ExistsRequestParameters _QueryString = new ExistsRequestParameters(); ///The ID of the parent document @@ -1421,7 +1420,7 @@ public ExistsDescriptor Routing(string routing) ///
public partial class ExplainDescriptor { - internal ExplainQueryString _QueryString = new ExplainQueryString(); + internal ExplainRequestParameters _QueryString = new ExplainRequestParameters(); ///Specify whether wildcards and prefix queries in the query string query should be analyzed (default: false) @@ -1587,7 +1586,7 @@ public ExplainDescriptor SourceInclude(params Expression>[] t ///
public partial class GetDescriptor { - internal GetQueryString _QueryString = new GetQueryString(); + internal GetRequestParameters _QueryString = new GetRequestParameters(); ///A comma-separated list of fields to return in the response @@ -1721,7 +1720,7 @@ public GetDescriptor VersionType(VersionTypeOptions version_type) ///
public partial class SourceDescriptor { - internal SourceQueryString _QueryString = new SourceQueryString(); + internal SourceRequestParameters _QueryString = new SourceRequestParameters(); ///The ID of the parent document @@ -1836,7 +1835,7 @@ public SourceDescriptor VersionType(VersionTypeOptions version_type) ///
public partial class IndexDescriptor { - internal IndexQueryString _QueryString = new IndexQueryString(); + internal IndexRequestParameters _QueryString = new IndexRequestParameters(); ///Explicit write consistency setting for the operation @@ -1937,7 +1936,7 @@ public IndexDescriptor VersionType(VersionTypeOptions version_type) ///
public partial class AnalyzeDescriptor { - internal AnalyzeQueryString _QueryString = new AnalyzeQueryString(); + internal AnalyzeRequestParameters _QueryString = new AnalyzeRequestParameters(); ///The name of the analyzer to use @@ -2023,7 +2022,7 @@ public AnalyzeDescriptor Format(FormatOptions format) ///
public partial class ClearCacheDescriptor { - internal ClearCacheQueryString _QueryString = new ClearCacheQueryString(); + internal ClearCacheRequestParameters _QueryString = new ClearCacheRequestParameters(); ///Clear field data @@ -2151,7 +2150,7 @@ public ClearCacheDescriptor Recycler(bool recycler = true) ///
public partial class CloseIndexDescriptor { - internal CloseIndexQueryString _QueryString = new CloseIndexQueryString(); + internal CloseIndexRequestParameters _QueryString = new CloseIndexRequestParameters(); ///Explicit operation timeout @@ -2204,7 +2203,7 @@ public CloseIndexDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wildca ///
public partial class CreateIndexDescriptor { - internal CreateIndexQueryString _QueryString = new CreateIndexQueryString(); + internal CreateIndexRequestParameters _QueryString = new CreateIndexRequestParameters(); ///Explicit operation timeout @@ -2233,7 +2232,7 @@ public CreateIndexDescriptor MasterTimeout(string master_timeout) ///
public partial class DeleteIndexDescriptor { - internal DeleteIndexQueryString _QueryString = new DeleteIndexQueryString(); + internal DeleteIndexRequestParameters _QueryString = new DeleteIndexRequestParameters(); ///Explicit operation timeout @@ -2262,7 +2261,7 @@ public DeleteIndexDescriptor MasterTimeout(string master_timeout) ///
public partial class IndicesDeleteAliasDescriptor { - internal IndicesDeleteAliasQueryString _QueryString = new IndicesDeleteAliasQueryString(); + internal IndicesDeleteAliasRequestParameters _QueryString = new IndicesDeleteAliasRequestParameters(); ///Explicit timestamp for the document @@ -2291,7 +2290,7 @@ public IndicesDeleteAliasDescriptor MasterTimeout(string master_timeout) ///
public partial class DeleteMappingDescriptor { - internal DeleteMappingQueryString _QueryString = new DeleteMappingQueryString(); + internal DeleteMappingRequestParameters _QueryString = new DeleteMappingRequestParameters(); ///Specify timeout for connection to master @@ -2312,7 +2311,7 @@ public DeleteMappingDescriptor MasterTimeout(string master_timeout) ///
public partial class DeleteTemplateDescriptor { - internal DeleteTemplateQueryString _QueryString = new DeleteTemplateQueryString(); + internal DeleteTemplateRequestParameters _QueryString = new DeleteTemplateRequestParameters(); ///Explicit operation timeout @@ -2341,7 +2340,7 @@ public DeleteTemplateDescriptor MasterTimeout(string master_timeout) ///
public partial class DeleteWarmerDescriptor { - internal DeleteWarmerQueryString _QueryString = new DeleteWarmerQueryString(); + internal DeleteWarmerRequestParameters _QueryString = new DeleteWarmerRequestParameters(); ///Specify timeout for connection to master @@ -2362,7 +2361,7 @@ public DeleteWarmerDescriptor MasterTimeout(string master_timeout) ///
public partial class IndexExistsDescriptor { - internal IndexExistsQueryString _QueryString = new IndexExistsQueryString(); + internal IndexExistsRequestParameters _QueryString = new IndexExistsRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2407,7 +2406,7 @@ public IndexExistsDescriptor Local(bool local = true) ///
public partial class IndicesExistsAliasDescriptor { - internal IndicesExistsAliasQueryString _QueryString = new IndicesExistsAliasQueryString(); + internal IndicesExistsAliasRequestParameters _QueryString = new IndicesExistsAliasRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2452,7 +2451,7 @@ public IndicesExistsAliasDescriptor Local(bool local = true) ///
public partial class IndicesExistsTemplateDescriptor { - internal IndicesExistsTemplateQueryString _QueryString = new IndicesExistsTemplateQueryString(); + internal IndicesExistsTemplateRequestParameters _QueryString = new IndicesExistsTemplateRequestParameters(); ///Return local information, do not retrieve the state from master node (default: false) @@ -2473,7 +2472,7 @@ public IndicesExistsTemplateDescriptor Local(bool local = true) ///
public partial class IndicesExistsTypeDescriptor { - internal IndicesExistsTypeQueryString _QueryString = new IndicesExistsTypeQueryString(); + internal IndicesExistsTypeRequestParameters _QueryString = new IndicesExistsTypeRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2518,7 +2517,7 @@ public IndicesExistsTypeDescriptor Local(bool local = true) ///
public partial class FlushDescriptor { - internal FlushQueryString _QueryString = new FlushQueryString(); + internal FlushRequestParameters _QueryString = new FlushRequestParameters(); ///Whether a flush should be forced even if it is not necessarily needed ie. if no changes will be committed to the index. This is useful if transaction log IDs should be incremented even if no uncommitted changes are present. (This setting can be considered as internal) @@ -2571,7 +2570,7 @@ public FlushDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wildcards) ///
public partial class GetAliasesDescriptor { - internal GetAliasesQueryString _QueryString = new GetAliasesQueryString(); + internal GetAliasesRequestParameters _QueryString = new GetAliasesRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2616,7 +2615,7 @@ public GetAliasesDescriptor Local(bool local = true) ///
public partial class IndicesGetAliasesDescriptor { - internal IndicesGetAliasesQueryString _QueryString = new IndicesGetAliasesQueryString(); + internal IndicesGetAliasesRequestParameters _QueryString = new IndicesGetAliasesRequestParameters(); ///Explicit operation timeout @@ -2645,7 +2644,7 @@ public IndicesGetAliasesDescriptor Local(bool local = true) ///
public partial class IndicesGetFieldMappingDescriptor { - internal IndicesGetFieldMappingQueryString _QueryString = new IndicesGetFieldMappingQueryString(); + internal IndicesGetFieldMappingRequestParameters _QueryString = new IndicesGetFieldMappingRequestParameters(); ///Whether the default mapping values should be returned as well @@ -2698,7 +2697,7 @@ public IndicesGetFieldMappingDescriptor Local(bool local = true) ///
public partial class GetMappingDescriptor { - internal GetMappingQueryString _QueryString = new GetMappingQueryString(); + internal GetMappingRequestParameters _QueryString = new GetMappingRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2743,7 +2742,7 @@ public GetMappingDescriptor Local(bool local = true) ///
public partial class GetIndexSettingsDescriptor { - internal GetIndexSettingsQueryString _QueryString = new GetIndexSettingsQueryString(); + internal GetIndexSettingsRequestParameters _QueryString = new GetIndexSettingsRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2796,7 +2795,7 @@ public GetIndexSettingsDescriptor Local(bool local = true) ///
public partial class GetTemplateDescriptor { - internal GetTemplateQueryString _QueryString = new GetTemplateQueryString(); + internal GetTemplateRequestParameters _QueryString = new GetTemplateRequestParameters(); ///Return settings in flat format (default: false) @@ -2825,7 +2824,7 @@ public GetTemplateDescriptor Local(bool local = true) ///
public partial class GetWarmerDescriptor { - internal GetWarmerQueryString _QueryString = new GetWarmerQueryString(); + internal GetWarmerRequestParameters _QueryString = new GetWarmerRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -2870,7 +2869,7 @@ public GetWarmerDescriptor Local(bool local = true) ///
public partial class OpenIndexDescriptor { - internal OpenIndexQueryString _QueryString = new OpenIndexQueryString(); + internal OpenIndexRequestParameters _QueryString = new OpenIndexRequestParameters(); ///Explicit operation timeout @@ -2923,7 +2922,7 @@ public OpenIndexDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wildcar ///
public partial class OptimizeDescriptor { - internal OptimizeQueryString _QueryString = new OptimizeQueryString(); + internal OptimizeRequestParameters _QueryString = new OptimizeRequestParameters(); ///Specify whether the index should be flushed after performing the operation (default: true) @@ -3000,7 +2999,7 @@ public OptimizeDescriptor WaitForMerge(bool wait_for_merge = true) ///
public partial class IndicesPutAliasDescriptor { - internal IndicesPutAliasQueryString _QueryString = new IndicesPutAliasQueryString(); + internal IndicesPutAliasRequestParameters _QueryString = new IndicesPutAliasRequestParameters(); ///Explicit timestamp for the document @@ -3029,7 +3028,7 @@ public IndicesPutAliasDescriptor MasterTimeout(string master_timeout) ///
public partial class PutMappingDescriptor { - internal PutMappingQueryString _QueryString = new PutMappingQueryString(); + internal PutMappingRequestParameters _QueryString = new PutMappingRequestParameters(); ///Specify whether to ignore conflicts while updating the mapping (default: false) @@ -3090,7 +3089,7 @@ public PutMappingDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wil ///
public partial class UpdateSettingsDescriptor { - internal UpdateSettingsQueryString _QueryString = new UpdateSettingsQueryString(); + internal UpdateSettingsRequestParameters _QueryString = new UpdateSettingsRequestParameters(); ///Specify timeout for connection to master @@ -3143,7 +3142,7 @@ public UpdateSettingsDescriptor FlatSettings(bool flat_settings = true) ///
public partial class PutTemplateDescriptor { - internal PutTemplateQueryString _QueryString = new PutTemplateQueryString(); + internal PutTemplateRequestParameters _QueryString = new PutTemplateRequestParameters(); ///Explicit operation timeout @@ -3180,7 +3179,7 @@ public PutTemplateDescriptor FlatSettings(bool flat_settings = true) ///
public partial class PutWarmerDescriptor { - internal PutWarmerQueryString _QueryString = new PutWarmerQueryString(); + internal PutWarmerRequestParameters _QueryString = new PutWarmerRequestParameters(); ///Specify timeout for connection to master @@ -3225,7 +3224,7 @@ public PutWarmerDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wildcar ///
public partial class RefreshDescriptor { - internal RefreshQueryString _QueryString = new RefreshQueryString(); + internal RefreshRequestParameters _QueryString = new RefreshRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -3278,7 +3277,7 @@ public RefreshDescriptor OperationThreading(string operation_threading) ///
public partial class SegmentsDescriptor { - internal SegmentsQueryString _QueryString = new SegmentsQueryString(); + internal SegmentsRequestParameters _QueryString = new SegmentsRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -3331,7 +3330,7 @@ public SegmentsDescriptor OperationThreading(string operation_threading) ///
public partial class SnapshotDescriptor { - internal SnapshotQueryString _QueryString = new SnapshotQueryString(); + internal SnapshotRequestParameters _QueryString = new SnapshotRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -3368,7 +3367,7 @@ public SnapshotDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wildcard ///
public partial class IndicesStatsDescriptor { - internal IndicesStatsQueryString _QueryString = new IndicesStatsQueryString(); + internal IndicesStatsRequestParameters _QueryString = new IndicesStatsRequestParameters(); ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) @@ -3470,7 +3469,7 @@ public IndicesStatsDescriptor Types(params string[] types) ///
public partial class IndicesStatusDescriptor { - internal IndicesStatusQueryString _QueryString = new IndicesStatusQueryString(); + internal IndicesStatusRequestParameters _QueryString = new IndicesStatusRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -3539,7 +3538,7 @@ public IndicesStatusDescriptor Snapshot(bool snapshot = true) ///
public partial class AliasDescriptor { - internal AliasQueryString _QueryString = new AliasQueryString(); + internal AliasRequestParameters _QueryString = new AliasRequestParameters(); ///Request timeout @@ -3568,7 +3567,7 @@ public AliasDescriptor MasterTimeout(string master_timeout) ///
public partial class ValidateQueryDescriptor { - internal ValidateQueryQueryString _QueryString = new ValidateQueryQueryString(); + internal ValidateQueryRequestParameters _QueryString = new ValidateQueryRequestParameters(); ///Return detailed information about the error @@ -3637,7 +3636,7 @@ public ValidateQueryDescriptor Q(string q) ///
public partial class InfoDescriptor { - internal InfoQueryString _QueryString = new InfoQueryString(); + internal InfoRequestParameters _QueryString = new InfoRequestParameters(); } @@ -3650,7 +3649,7 @@ public partial class InfoDescriptor ///
public partial class MultiGetDescriptor { - internal MultiGetQueryString _QueryString = new MultiGetQueryString(); + internal MultiGetRequestParameters _QueryString = new MultiGetRequestParameters(); ///A comma-separated list of fields to return in the response @@ -3752,7 +3751,7 @@ public MultiGetDescriptor SourceInclude(params Expression>[] ///
public partial class MoreLikeThisDescriptor { - internal MoreLikeThisQueryString _QueryString = new MoreLikeThisQueryString(); + internal MoreLikeThisRequestParameters _QueryString = new MoreLikeThisRequestParameters(); ///The boost factor @@ -3928,7 +3927,7 @@ public MoreLikeThisDescriptor StopWords(params string[] stop_words) ///
public partial class MpercolateDescriptor { - internal MpercolateQueryString _QueryString = new MpercolateQueryString(); + internal MpercolateRequestParameters _QueryString = new MpercolateRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -3965,7 +3964,7 @@ public MpercolateDescriptor ExpandWildcards(ExpandWildcardsOptions expand_wildca ///
public partial class MultiSearchDescriptor { - internal MultiSearchQueryString _QueryString = new MultiSearchQueryString(); + internal MultiSearchRequestParameters _QueryString = new MultiSearchRequestParameters(); ///Search operation type @@ -3986,7 +3985,7 @@ public MultiSearchDescriptor SearchType(SearchTypeOptions search_type) ///
public partial class MtermvectorsDescriptor { - internal MtermvectorsQueryString _QueryString = new MtermvectorsQueryString(); + internal MtermvectorsRequestParameters _QueryString = new MtermvectorsRequestParameters(); ///A comma-separated list of documents ids. You must define ids as parameter or set "ids" or "docs" in the request body @@ -4090,7 +4089,7 @@ public MtermvectorsDescriptor Parent(string parent) ///
public partial class NodesHotThreadsDescriptor { - internal NodesHotThreadsQueryString _QueryString = new NodesHotThreadsQueryString(); + internal NodesHotThreadsRequestParameters _QueryString = new NodesHotThreadsRequestParameters(); ///The interval for the second sampling of threads @@ -4135,7 +4134,7 @@ public NodesHotThreadsDescriptor TypeQueryString(TypeOptions type) ///
public partial class NodesInfoDescriptor { - internal NodesInfoQueryString _QueryString = new NodesInfoQueryString(); + internal NodesInfoRequestParameters _QueryString = new NodesInfoRequestParameters(); ///Return settings in flat format (default: false) @@ -4164,7 +4163,7 @@ public NodesInfoDescriptor Human(bool human = true) ///
public partial class NodesShutdownDescriptor { - internal NodesShutdownQueryString _QueryString = new NodesShutdownQueryString(); + internal NodesShutdownRequestParameters _QueryString = new NodesShutdownRequestParameters(); ///Set the delay for the operation (default: 1s) @@ -4193,7 +4192,7 @@ public NodesShutdownDescriptor Exit(bool exit = true) ///
public partial class NodesStatsDescriptor { - internal NodesStatsQueryString _QueryString = new NodesStatsQueryString(); + internal NodesStatsRequestParameters _QueryString = new NodesStatsRequestParameters(); ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) @@ -4295,7 +4294,7 @@ public NodesStatsDescriptor Types(params string[] types) ///
public partial class PercolateDescriptor { - internal PercolateQueryString _QueryString = new PercolateQueryString(); + internal PercolateRequestParameters _QueryString = new PercolateRequestParameters(); ///A comma-separated list of specific routing values @@ -4380,7 +4379,7 @@ public PercolateDescriptor VersionType(VersionTypeOptions version_type) ///
public partial class PingDescriptor { - internal PingQueryString _QueryString = new PingQueryString(); + internal PingRequestParameters _QueryString = new PingRequestParameters(); } @@ -4391,9 +4390,9 @@ public partial class PingDescriptor ///http://www.elasticsearch.org/guide/en/elasticsearch/reference/1.x/search-request-scroll.html /// ///
- public partial class ScrollDescriptor : IHideObjectMembers + public partial class ScrollDescriptor { - internal ScrollQueryString _QueryString = new ScrollQueryString(); + internal ScrollRequestParameters _QueryString = new ScrollRequestParameters(); ///Specify how long a consistent view of the index should be maintained for scrolled search @@ -4422,7 +4421,7 @@ public ScrollDescriptor ScrollId(string scroll_id) ///
public partial class SearchDescriptor { - internal SearchQueryString _QueryString = new SearchQueryString(); + internal SearchRequestParameters _QueryString = new SearchRequestParameters(); ///The analyzer to use for the query string @@ -4604,7 +4603,7 @@ public SearchDescriptor SuggestText(string suggest_text) ///
public partial class SnapshotCreateDescriptor { - internal SnapshotCreateQueryString _QueryString = new SnapshotCreateQueryString(); + internal SnapshotCreateRequestParameters _QueryString = new SnapshotCreateRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4633,7 +4632,7 @@ public SnapshotCreateDescriptor WaitForCompletion(bool wait_for_completion = tru ///
public partial class SnapshotCreateRepositoryDescriptor { - internal SnapshotCreateRepositoryQueryString _QueryString = new SnapshotCreateRepositoryQueryString(); + internal SnapshotCreateRepositoryRequestParameters _QueryString = new SnapshotCreateRepositoryRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4662,7 +4661,7 @@ public SnapshotCreateRepositoryDescriptor Timeout(string timeout) ///
public partial class SnapshotDeleteDescriptor { - internal SnapshotDeleteQueryString _QueryString = new SnapshotDeleteQueryString(); + internal SnapshotDeleteRequestParameters _QueryString = new SnapshotDeleteRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4683,7 +4682,7 @@ public SnapshotDeleteDescriptor MasterTimeout(string master_timeout) ///
public partial class SnapshotDeleteRepositoryDescriptor { - internal SnapshotDeleteRepositoryQueryString _QueryString = new SnapshotDeleteRepositoryQueryString(); + internal SnapshotDeleteRepositoryRequestParameters _QueryString = new SnapshotDeleteRepositoryRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4712,7 +4711,7 @@ public SnapshotDeleteRepositoryDescriptor Timeout(string timeout) ///
public partial class SnapshotGetDescriptor { - internal SnapshotGetQueryString _QueryString = new SnapshotGetQueryString(); + internal SnapshotGetRequestParameters _QueryString = new SnapshotGetRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4733,7 +4732,7 @@ public SnapshotGetDescriptor MasterTimeout(string master_timeout) ///
public partial class SnapshotGetRepositoryDescriptor { - internal SnapshotGetRepositoryQueryString _QueryString = new SnapshotGetRepositoryQueryString(); + internal SnapshotGetRepositoryRequestParameters _QueryString = new SnapshotGetRepositoryRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4762,7 +4761,7 @@ public SnapshotGetRepositoryDescriptor Local(bool local = true) ///
public partial class SnapshotRestoreDescriptor { - internal SnapshotRestoreQueryString _QueryString = new SnapshotRestoreQueryString(); + internal SnapshotRestoreRequestParameters _QueryString = new SnapshotRestoreRequestParameters(); ///Explicit operation timeout for connection to master node @@ -4791,7 +4790,7 @@ public SnapshotRestoreDescriptor WaitForCompletion(bool wait_for_completion = tr ///
public partial class SuggestDescriptor { - internal SuggestQueryString _QueryString = new SuggestQueryString(); + internal SuggestRequestParameters _QueryString = new SuggestRequestParameters(); ///Whether specified concrete indices should be ignored when unavailable (missing or closed) @@ -4852,7 +4851,7 @@ public SuggestDescriptor Source(string source) ///
public partial class TermvectorDescriptor { - internal TermvectorQueryString _QueryString = new TermvectorQueryString(); + internal TermvectorRequestParameters _QueryString = new TermvectorRequestParameters(); ///Specifies if total term frequency and document frequency should be returned. @@ -4948,7 +4947,7 @@ public TermvectorDescriptor Parent(string parent) ///
public partial class UpdateDescriptor { - internal UpdateQueryString _QueryString = new UpdateQueryString(); + internal UpdateRequestParameters _QueryString = new UpdateRequestParameters(); ///Explicit write consistency setting for the operation diff --git a/src/Nest/Domain/DSL/IPathInfo.cs b/src/Nest/Domain/DSL/IPathInfo.cs index 3a38928fa51..d961e84f103 100644 --- a/src/Nest/Domain/DSL/IPathInfo.cs +++ b/src/Nest/Domain/DSL/IPathInfo.cs @@ -2,7 +2,7 @@ namespace Nest { - interface IPathInfo where K : FluentQueryString, new() + interface IPathInfo where K : FluentRequestParameters, new() { ElasticsearchPathInfo ToPathInfo(IConnectionSettingsValues settings); } diff --git a/src/Nest/Domain/Paths/ElasticSearchPathInfo.cs b/src/Nest/Domain/Paths/ElasticSearchPathInfo.cs index c22f47885bf..eae3de19640 100644 --- a/src/Nest/Domain/Paths/ElasticSearchPathInfo.cs +++ b/src/Nest/Domain/Paths/ElasticSearchPathInfo.cs @@ -2,13 +2,13 @@ namespace Nest { - internal class ElasticsearchPathInfo where T : FluentQueryString, new() + internal class ElasticsearchPathInfo where T : FluentRequestParameters, new() { public PathInfoHttpMethod HttpMethod { get; set; } public string Index { get; set; } public string Type { get; set; } public string Id { get; set; } - public T QueryString { get; set; } + public T RequestParameters { get; set; } public string Name { get; set; } public string Field { get; set; } public string ScrollId { get; set; } @@ -24,7 +24,13 @@ namespace Nest public ElasticsearchPathInfo() { - this.QueryString = new T(); + this.RequestParameters = new T(); + } + + public ElasticsearchPathInfo DeserializationState(object deserializationState) + { + this.RequestParameters.DeserializationState(deserializationState); + return this; } } } \ No newline at end of file diff --git a/src/Nest/Domain/QueryStringParametersExtensions.Generated.cs b/src/Nest/Domain/RequestParametersExtensions.Generated.cs similarity index 75% rename from src/Nest/Domain/QueryStringParametersExtensions.Generated.cs rename to src/Nest/Domain/RequestParametersExtensions.Generated.cs index 9f5ea8cfa4a..1917eb40bcf 100644 --- a/src/Nest/Domain/QueryStringParametersExtensions.Generated.cs +++ b/src/Nest/Domain/RequestParametersExtensions.Generated.cs @@ -7,18 +7,18 @@ using Elasticsearch.Net; using Nest.Resolvers; -///This file contains all the typed querystring parameters that are generated of the client spec. +///This file contains all the typed request parameters that are generated of the client spec. ///This file is automatically generated from https://github.com/elasticsearch/elasticsearch-rest-api-spec ///Generated of commit namespace Nest { - public static class QueryStringPameterExtensions + public static class RequestPameterExtensions { ///A comma-separated list of fields to return in the response - internal static ExplainQueryString _Fields( - this ExplainQueryString qs, + internal static ExplainRequestParameters _Fields( + this ExplainRequestParameters qs, IEnumerable>> fields) where T : class { @@ -29,8 +29,8 @@ internal static ExplainQueryString _Fields( ///A list of fields to exclude from the returned _source field - internal static ExplainQueryString _SourceExclude( - this ExplainQueryString qs, + internal static ExplainRequestParameters _SourceExclude( + this ExplainRequestParameters qs, IEnumerable>> _source_exclude) where T : class { @@ -41,8 +41,8 @@ internal static ExplainQueryString _SourceExclude( ///A list of fields to extract and return from the _source field - internal static ExplainQueryString _SourceInclude( - this ExplainQueryString qs, + internal static ExplainRequestParameters _SourceInclude( + this ExplainRequestParameters qs, IEnumerable>> _source_include) where T : class { @@ -53,8 +53,8 @@ internal static ExplainQueryString _SourceInclude( ///A comma-separated list of fields to return in the response - internal static GetQueryString _Fields( - this GetQueryString qs, + internal static GetRequestParameters _Fields( + this GetRequestParameters qs, IEnumerable>> fields) where T : class { @@ -65,8 +65,8 @@ internal static GetQueryString _Fields( ///A list of fields to exclude from the returned _source field - internal static GetQueryString _SourceExclude( - this GetQueryString qs, + internal static GetRequestParameters _SourceExclude( + this GetRequestParameters qs, IEnumerable>> _source_exclude) where T : class { @@ -77,8 +77,8 @@ internal static GetQueryString _SourceExclude( ///A list of fields to extract and return from the _source field - internal static GetQueryString _SourceInclude( - this GetQueryString qs, + internal static GetRequestParameters _SourceInclude( + this GetRequestParameters qs, IEnumerable>> _source_include) where T : class { @@ -89,8 +89,8 @@ internal static GetQueryString _SourceInclude( ///A list of fields to exclude from the returned _source field - internal static SourceQueryString _SourceExclude( - this SourceQueryString qs, + internal static SourceRequestParameters _SourceExclude( + this SourceRequestParameters qs, IEnumerable>> _source_exclude) where T : class { @@ -101,8 +101,8 @@ internal static SourceQueryString _SourceExclude( ///A list of fields to extract and return from the _source field - internal static SourceQueryString _SourceInclude( - this SourceQueryString qs, + internal static SourceRequestParameters _SourceInclude( + this SourceRequestParameters qs, IEnumerable>> _source_include) where T : class { @@ -113,8 +113,8 @@ internal static SourceQueryString _SourceInclude( ///Use the analyzer configured for this field (instead of passing the analyzer name) - internal static AnalyzeQueryString _Field( - this AnalyzeQueryString qs, + internal static AnalyzeRequestParameters _Field( + this AnalyzeRequestParameters qs, Expression> field) where T : class { @@ -126,8 +126,8 @@ internal static AnalyzeQueryString _Field( ///A comma-separated list of fields to clear when using the `field_data` parameter (default: all) - internal static ClearCacheQueryString _Fields( - this ClearCacheQueryString qs, + internal static ClearCacheRequestParameters _Fields( + this ClearCacheRequestParameters qs, IEnumerable>> fields) where T : class { @@ -138,8 +138,8 @@ internal static ClearCacheQueryString _Fields( ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) - internal static IndicesStatsQueryString _CompletionFields( - this IndicesStatsQueryString qs, + internal static IndicesStatsRequestParameters _CompletionFields( + this IndicesStatsRequestParameters qs, IEnumerable>> completion_fields) where T : class { @@ -150,8 +150,8 @@ internal static IndicesStatsQueryString _CompletionFields( ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) - internal static IndicesStatsQueryString _FielddataFields( - this IndicesStatsQueryString qs, + internal static IndicesStatsRequestParameters _FielddataFields( + this IndicesStatsRequestParameters qs, IEnumerable>> fielddata_fields) where T : class { @@ -162,8 +162,8 @@ internal static IndicesStatsQueryString _FielddataFields( ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) - internal static IndicesStatsQueryString _Fields( - this IndicesStatsQueryString qs, + internal static IndicesStatsRequestParameters _Fields( + this IndicesStatsRequestParameters qs, IEnumerable>> fields) where T : class { @@ -174,8 +174,8 @@ internal static IndicesStatsQueryString _Fields( ///A comma-separated list of fields to return in the response - internal static MultiGetQueryString _Fields( - this MultiGetQueryString qs, + internal static MultiGetRequestParameters _Fields( + this MultiGetRequestParameters qs, IEnumerable>> fields) where T : class { @@ -186,8 +186,8 @@ internal static MultiGetQueryString _Fields( ///A list of fields to exclude from the returned _source field - internal static MultiGetQueryString _SourceExclude( - this MultiGetQueryString qs, + internal static MultiGetRequestParameters _SourceExclude( + this MultiGetRequestParameters qs, IEnumerable>> _source_exclude) where T : class { @@ -198,8 +198,8 @@ internal static MultiGetQueryString _SourceExclude( ///A list of fields to extract and return from the _source field - internal static MultiGetQueryString _SourceInclude( - this MultiGetQueryString qs, + internal static MultiGetRequestParameters _SourceInclude( + this MultiGetRequestParameters qs, IEnumerable>> _source_include) where T : class { @@ -210,8 +210,8 @@ internal static MultiGetQueryString _SourceInclude( ///Specific fields to perform the query against - internal static MoreLikeThisQueryString _MltFields( - this MoreLikeThisQueryString qs, + internal static MoreLikeThisRequestParameters _MltFields( + this MoreLikeThisRequestParameters qs, IEnumerable>> mlt_fields) where T : class { @@ -222,8 +222,8 @@ internal static MoreLikeThisQueryString _MltFields( ///A comma-separated list of fields to return. Applies to all returned documents unless otherwise specified in body "params" or "docs". - internal static MtermvectorsQueryString _Fields( - this MtermvectorsQueryString qs, + internal static MtermvectorsRequestParameters _Fields( + this MtermvectorsRequestParameters qs, IEnumerable>> fields) where T : class { @@ -234,8 +234,8 @@ internal static MtermvectorsQueryString _Fields( ///A comma-separated list of fields for `fielddata` and `suggest` index metric (supports wildcards) - internal static NodesStatsQueryString _CompletionFields( - this NodesStatsQueryString qs, + internal static NodesStatsRequestParameters _CompletionFields( + this NodesStatsRequestParameters qs, IEnumerable>> completion_fields) where T : class { @@ -246,8 +246,8 @@ internal static NodesStatsQueryString _CompletionFields( ///A comma-separated list of fields for `fielddata` index metric (supports wildcards) - internal static NodesStatsQueryString _FielddataFields( - this NodesStatsQueryString qs, + internal static NodesStatsRequestParameters _FielddataFields( + this NodesStatsRequestParameters qs, IEnumerable>> fielddata_fields) where T : class { @@ -258,8 +258,8 @@ internal static NodesStatsQueryString _FielddataFields( ///A comma-separated list of fields for `fielddata` and `completion` index metric (supports wildcards) - internal static NodesStatsQueryString _Fields( - this NodesStatsQueryString qs, + internal static NodesStatsRequestParameters _Fields( + this NodesStatsRequestParameters qs, IEnumerable>> fields) where T : class { @@ -270,8 +270,8 @@ internal static NodesStatsQueryString _Fields( ///Specify which field to use for suggestions - internal static SearchQueryString _SuggestField( - this SearchQueryString qs, + internal static SearchRequestParameters _SuggestField( + this SearchRequestParameters qs, Expression> suggest_field) where T : class { @@ -283,8 +283,8 @@ internal static SearchQueryString _SuggestField( ///A comma-separated list of fields to return. - internal static TermvectorQueryString _Fields( - this TermvectorQueryString qs, + internal static TermvectorRequestParameters _Fields( + this TermvectorRequestParameters qs, IEnumerable>> fields) where T : class { @@ -295,8 +295,8 @@ internal static TermvectorQueryString _Fields( ///A comma-separated list of fields to return in the response - internal static UpdateQueryString _Fields( - this UpdateQueryString qs, + internal static UpdateRequestParameters _Fields( + this UpdateRequestParameters qs, IEnumerable>> fields) where T : class { diff --git a/src/Nest/Domain/Responses/IndexExistsResponse.cs b/src/Nest/Domain/Responses/IndexExistsResponse.cs index ed58811cb82..3197baabf75 100644 --- a/src/Nest/Domain/Responses/IndexExistsResponse.cs +++ b/src/Nest/Domain/Responses/IndexExistsResponse.cs @@ -15,8 +15,8 @@ public class IndexExistsResponse : BaseResponse, IIndexExistsResponse internal IndexExistsResponse(IElasticsearchResponse connectionStatus) { this.ConnectionStatus = connectionStatus; - this.IsValid = connectionStatus.Error == null || connectionStatus.Error.HttpStatusCode == HttpStatusCode.NotFound; - this.Exists = connectionStatus.Error == null && connectionStatus.Success; + this.IsValid =connectionStatus.Success || connectionStatus.HttpStatusCode == 404; + this.Exists = connectionStatus.Success & connectionStatus.HttpStatusCode == 200; } public bool Exists { get; internal set; } diff --git a/src/Nest/ElasticClient-Aliases.cs b/src/Nest/ElasticClient-Aliases.cs index fd5cacad67c..3f1d2581443 100644 --- a/src/Nest/ElasticClient-Aliases.cs +++ b/src/Nest/ElasticClient-Aliases.cs @@ -15,7 +15,7 @@ public partial class ElasticClient /// public IIndicesOperationResponse Alias(Func aliasSelector) { - return this.Dispatch( + return this.Dispatch( aliasSelector, (p, d) => this.RawDispatch.IndicesUpdateAliasesDispatch(p, d) ); @@ -24,7 +24,7 @@ public IIndicesOperationResponse Alias(Func al /// public Task AliasAsync(Func aliasSelector) { - return this.DispatchAsync( + return this.DispatchAsync( aliasSelector, (p, d) => this.RawDispatch.IndicesUpdateAliasesDispatchAsync(p, d) ); @@ -33,11 +33,10 @@ public Task AliasAsync(Func public IGetAliasesResponse GetAliases(Func getAliasesDescriptor) { - return this.Dispatch( + return this.Dispatch( getAliasesDescriptor, (p, d) => this.RawDispatch.IndicesGetAliasDispatch( - p, - new GetAliasesConverter(DeserializeGetAliasesResponse) + p.DeserializationState(new GetAliasesConverter(DeserializeGetAliasesResponse)) ) ); } @@ -45,11 +44,10 @@ public IGetAliasesResponse GetAliases(Func public Task GetAliasesAsync(Func getAliasesDescriptor) { - return this.DispatchAsync( + return this.DispatchAsync( getAliasesDescriptor, (p, d) => this.RawDispatch.IndicesGetAliasDispatchAsync( - p, - new GetAliasesConverter(DeserializeGetAliasesResponse) + p.DeserializationState(new GetAliasesConverter(DeserializeGetAliasesResponse)) ) ); } diff --git a/src/Nest/ElasticClient-Analyze.cs b/src/Nest/ElasticClient-Analyze.cs index e1fca44d76b..f4981234628 100644 --- a/src/Nest/ElasticClient-Analyze.cs +++ b/src/Nest/ElasticClient-Analyze.cs @@ -9,7 +9,7 @@ public partial class ElasticClient /// public IAnalyzeResponse Analyze(Func analyzeSelector) { - return this.Dispatch( + return this.Dispatch( analyzeSelector, (p, d) => this.RawDispatch.IndicesAnalyzeDispatch(p, d) ); @@ -18,7 +18,7 @@ public IAnalyzeResponse Analyze(Func analy /// public Task AnalyzeAsync(Func analyzeSelector) { - return this.DispatchAsync( + return this.DispatchAsync( analyzeSelector, (p, d) => this.RawDispatch.IndicesAnalyzeDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-Bulk.cs b/src/Nest/ElasticClient-Bulk.cs index 3a97025f60a..3bf73220edd 100644 --- a/src/Nest/ElasticClient-Bulk.cs +++ b/src/Nest/ElasticClient-Bulk.cs @@ -12,7 +12,7 @@ public partial class ElasticClient /// public IBulkResponse Bulk(Func bulkSelector) { - return this.Dispatch( + return this.Dispatch( bulkSelector, (p, d) => { @@ -25,7 +25,7 @@ public IBulkResponse Bulk(Func bulkSelector) /// public Task BulkAsync(Func bulkSelector) { - return this.DispatchAsync( + return this.DispatchAsync( bulkSelector, (p, d) => { diff --git a/src/Nest/ElasticClient-ClearCache.cs b/src/Nest/ElasticClient-ClearCache.cs index d61ca69d377..61e717c3cc2 100644 --- a/src/Nest/ElasticClient-ClearCache.cs +++ b/src/Nest/ElasticClient-ClearCache.cs @@ -12,7 +12,7 @@ public partial class ElasticClient public IShardsOperationResponse ClearCache(Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesClearCacheDispatch(p) ); @@ -22,7 +22,7 @@ public IShardsOperationResponse ClearCache(Func ClearCacheAsync(Func selector = null) { selector = selector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesClearCacheDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-ClusterHealth.cs b/src/Nest/ElasticClient-ClusterHealth.cs index f164fdf74a3..bd6f73c853b 100644 --- a/src/Nest/ElasticClient-ClusterHealth.cs +++ b/src/Nest/ElasticClient-ClusterHealth.cs @@ -13,7 +13,7 @@ public IHealthResponse ClusterHealth( Func clusterHealthSelector = null) { clusterHealthSelector = clusterHealthSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( clusterHealthSelector, (p, d) => this.RawDispatch.ClusterHealthDispatch(p) ); @@ -24,7 +24,7 @@ public Task ClusterHealthAsync( Func clusterHealthSelector = null) { clusterHealthSelector = clusterHealthSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( clusterHealthSelector, (p, d) => this.RawDispatch.ClusterHealthDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Count.cs b/src/Nest/ElasticClient-Count.cs index 4c68e82599a..09a446efec1 100644 --- a/src/Nest/ElasticClient-Count.cs +++ b/src/Nest/ElasticClient-Count.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public ICountResponse Count(Func, CountDescriptor> countSelector = null) where T : class { countSelector = countSelector ?? (s => s); - return this.Dispatch, CountQueryString, CountResponse>( + return this.Dispatch, CountRequestParameters, CountResponse>( countSelector, (p, d) => this.RawDispatch.CountDispatch(p, d) ); @@ -22,7 +22,7 @@ public Task CountAsync(Func, CountDescript where T : class { countSelector = countSelector ?? (s => s); - return this.DispatchAsync, CountQueryString, CountResponse, ICountResponse>( + return this.DispatchAsync, CountRequestParameters, CountResponse, ICountResponse>( countSelector, (p, d) => this.RawDispatch.CountDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-CreateIndex.cs b/src/Nest/ElasticClient-CreateIndex.cs index a8b860d849b..8c6d1706e43 100644 --- a/src/Nest/ElasticClient-CreateIndex.cs +++ b/src/Nest/ElasticClient-CreateIndex.cs @@ -16,7 +16,7 @@ public IIndicesOperationResponse CreateIndex(string index, createIndexSelector = createIndexSelector ?? (c => c); var descriptor = createIndexSelector(new CreateIndexDescriptor(_connectionSettings)); descriptor._Index = index; - return this.Dispatch( + return this.Dispatch( descriptor, (p, d) => this.RawDispatch.IndicesCreateDispatch(p, d._IndexSettings) ); @@ -31,7 +31,7 @@ public Task CreateIndexAsync(string index, var descriptor = createIndexSelector(new CreateIndexDescriptor(_connectionSettings)); descriptor._Index = index; return this.DispatchAsync - ( + ( descriptor, (p, d) => this.RawDispatch.IndicesCreateDispatchAsync(p, d._IndexSettings) ); diff --git a/src/Nest/ElasticClient-Delete.cs b/src/Nest/ElasticClient-Delete.cs index 983f631df1a..ae40e2ed99a 100644 --- a/src/Nest/ElasticClient-Delete.cs +++ b/src/Nest/ElasticClient-Delete.cs @@ -10,7 +10,7 @@ public partial class ElasticClient /// public IDeleteResponse Delete(Func, DeleteDescriptor> deleteSelector) where T : class { - return this.Dispatch, DeleteQueryString, DeleteResponse>( + return this.Dispatch, DeleteRequestParameters, DeleteResponse>( deleteSelector, (p, d) => this.RawDispatch.DeleteDispatch(p) ); @@ -20,7 +20,7 @@ public IDeleteResponse Delete(Func, DeleteDescriptor> public Task DeleteAsync(Func, DeleteDescriptor> deleteSelector) where T : class { - return this.DispatchAsync, DeleteQueryString, DeleteResponse, IDeleteResponse>( + return this.DispatchAsync, DeleteRequestParameters, DeleteResponse, IDeleteResponse>( deleteSelector, (p, d) => this.RawDispatch.DeleteDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-DeleteByQuery.cs b/src/Nest/ElasticClient-DeleteByQuery.cs index 5e1a7d46742..56fd960a1b3 100644 --- a/src/Nest/ElasticClient-DeleteByQuery.cs +++ b/src/Nest/ElasticClient-DeleteByQuery.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public IDeleteResponse DeleteByQuery( Func, DeleteByQueryDescriptor> deleteByQuerySelector) where T : class { - return this.Dispatch, DeleteByQueryQueryString, DeleteResponse>( + return this.Dispatch, DeleteByQueryRequestParameters, DeleteResponse>( deleteByQuerySelector, (p, d) => this.RawDispatch.DeleteByQueryDispatch(p, d) ); @@ -21,7 +21,7 @@ public IDeleteResponse DeleteByQuery( public Task DeleteByQueryAsync( Func, DeleteByQueryDescriptor> deleteByQuerySelector) where T : class { - return this.DispatchAsync, DeleteByQueryQueryString, DeleteResponse, IDeleteResponse>( + return this.DispatchAsync, DeleteByQueryRequestParameters, DeleteResponse, IDeleteResponse>( deleteByQuerySelector, (p, d) => this.RawDispatch.DeleteByQueryDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-Flush.cs b/src/Nest/ElasticClient-Flush.cs index 33bf110c4f5..cf5c81c4437 100644 --- a/src/Nest/ElasticClient-Flush.cs +++ b/src/Nest/ElasticClient-Flush.cs @@ -10,7 +10,7 @@ public partial class ElasticClient /// public IShardsOperationResponse Flush(Func selector) { - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesFlushDispatch(p) ); @@ -19,7 +19,7 @@ public IShardsOperationResponse Flush(Func sel /// public Task FlushAsync(Func selector) { - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesFlushDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-GatewaySnapshot.cs b/src/Nest/ElasticClient-GatewaySnapshot.cs index 3d3e9cdece8..65b62815cc2 100644 --- a/src/Nest/ElasticClient-GatewaySnapshot.cs +++ b/src/Nest/ElasticClient-GatewaySnapshot.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public IShardsOperationResponse GatewaySnapshot(Func snapshotSelector = null) { snapshotSelector = snapshotSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( snapshotSelector, (p, d) => this.RawDispatch.IndicesSnapshotIndexDispatch(p) ); @@ -22,7 +22,7 @@ public Task GatewaySnapshotAsync( Func snapshotSelector = null) { snapshotSelector = snapshotSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( snapshotSelector, (p, d) => this.RawDispatch.IndicesSnapshotIndexDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Get.cs b/src/Nest/ElasticClient-Get.cs index 631a0c67273..e5523fc2f97 100644 --- a/src/Nest/ElasticClient-Get.cs +++ b/src/Nest/ElasticClient-Get.cs @@ -11,7 +11,7 @@ public partial class ElasticClient /// public IGetResponse Get(Func, GetDescriptor> getSelector) where T : class { - return this.Dispatch, GetQueryString, GetResponse>( + return this.Dispatch, GetRequestParameters, GetResponse>( getSelector, (p, d) => this.RawDispatch.GetDispatch>(p) ); @@ -20,7 +20,7 @@ public IGetResponse Get(Func, GetDescriptor> getSelect /// public Task> GetAsync(Func, GetDescriptor> getSelector) where T : class { - return this.DispatchAsync, GetQueryString, GetResponse, IGetResponse>( + return this.DispatchAsync, GetRequestParameters, GetResponse, IGetResponse>( getSelector, (p, d) => this.RawDispatch.GetDispatchAsync>(p) ); diff --git a/src/Nest/ElasticClient-Index.cs b/src/Nest/ElasticClient-Index.cs index a0080bf5865..d53674b83ac 100644 --- a/src/Nest/ElasticClient-Index.cs +++ b/src/Nest/ElasticClient-Index.cs @@ -14,7 +14,7 @@ public IIndexResponse Index(T @object, Func, IndexDescript @object.ThrowIfNull("object"); indexSelector = indexSelector ?? (s => s); var descriptor = indexSelector(new IndexDescriptor().Object(@object)); - return this.Dispatch, IndexQueryString, IndexResponse>( + return this.Dispatch, IndexRequestParameters, IndexResponse>( descriptor, (p, d) => this.RawDispatch.IndexDispatch(p, @object)); } @@ -26,7 +26,7 @@ public Task IndexAsync(T @object, Func, In @object.ThrowIfNull("object"); indexSelector = indexSelector ?? (s => s); var descriptor = indexSelector(new IndexDescriptor().Object(@object)); - return this.DispatchAsync, IndexQueryString, IndexResponse, IIndexResponse>( + return this.DispatchAsync, IndexRequestParameters, IndexResponse, IIndexResponse>( descriptor, (p, d) => this.RawDispatch.IndexDispatchAsync(p, @object)); } diff --git a/src/Nest/ElasticClient-IndexExists.cs b/src/Nest/ElasticClient-IndexExists.cs index 14e6e218f0f..49ce5719661 100644 --- a/src/Nest/ElasticClient-IndexExists.cs +++ b/src/Nest/ElasticClient-IndexExists.cs @@ -12,25 +12,25 @@ public partial class ElasticClient /// public IIndexExistsResponse IndexExists(Func selector) { - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesExistsDispatch( - p, - new IndexExistConverter(DeserializeExistsResponse) - ), true - ); + p.DeserializationState(new IndexExistConverter(DeserializeExistsResponse)) + ), + allow404: true + ); } /// public Task IndexExistsAsync(Func selector) { - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesExistsDispatchAsync( - p, - new IndexExistConverter(DeserializeExistsResponse) - ), true - ); + p.DeserializationState(new IndexExistConverter(DeserializeExistsResponse)) + ), + allow404: true + ); } private IndexExistsResponse DeserializeExistsResponse(IElasticsearchResponse response, Stream stream) diff --git a/src/Nest/ElasticClient-MappingDelete.cs b/src/Nest/ElasticClient-MappingDelete.cs index ddf4fe4feda..f82737c108a 100644 --- a/src/Nest/ElasticClient-MappingDelete.cs +++ b/src/Nest/ElasticClient-MappingDelete.cs @@ -11,7 +11,7 @@ public partial class ElasticClient /// public IIndicesResponse DeleteMapping(Func selector) { - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesDeleteMappingDispatch(p) ); @@ -20,7 +20,7 @@ public IIndicesResponse DeleteMapping(Func public Task DeleteMappingAsync(Func selector) { - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesDeleteMappingDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-MappingGet.cs b/src/Nest/ElasticClient-MappingGet.cs index 93d839945b2..3541b8ab795 100644 --- a/src/Nest/ElasticClient-MappingGet.cs +++ b/src/Nest/ElasticClient-MappingGet.cs @@ -14,11 +14,10 @@ public partial class ElasticClient /// public IGetMappingResponse GetMapping(Func selector) { - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesGetMappingDispatch( - p, - new GetMappingConverter((r, s) => DeserializeGetMappingResponse(r, d, s)) + p.DeserializationState(new GetMappingConverter((r, s) => DeserializeGetMappingResponse(r, d, s))) ) ); } @@ -26,11 +25,10 @@ public IGetMappingResponse GetMapping(Func public Task GetMappingAsync(Func selector) { - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesGetMappingDispatchAsync( - p, - new GetMappingConverter((r, s) => DeserializeGetMappingResponse(r, d, s)) + p.DeserializationState(new GetMappingConverter((r, s) => DeserializeGetMappingResponse(r, d, s))) ) ); } diff --git a/src/Nest/ElasticClient-MappingIndex.cs b/src/Nest/ElasticClient-MappingIndex.cs index 775a922d45d..f6ec1025993 100644 --- a/src/Nest/ElasticClient-MappingIndex.cs +++ b/src/Nest/ElasticClient-MappingIndex.cs @@ -11,7 +11,7 @@ public partial class ElasticClient /// public IIndexSettingsResponse GetIndexSettings(Func selector) { - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesGetSettingsDispatch(p) ); @@ -22,7 +22,7 @@ public Task GetIndexSettingsAsync( Func selector) { return this.DispatchAsync - ( + ( selector, (p, d) => this.RawDispatch.IndicesGetSettingsDispatchAsync(p) ); @@ -31,7 +31,7 @@ public Task GetIndexSettingsAsync( /// public IIndicesResponse DeleteIndex(Func selector) { - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesDeleteDispatch(p) ); @@ -40,7 +40,7 @@ public IIndicesResponse DeleteIndex(Func public Task DeleteIndexAsync(Func selector) { - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesDeleteDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-MappingType.cs b/src/Nest/ElasticClient-MappingType.cs index 8cba893ea1e..89217d58108 100644 --- a/src/Nest/ElasticClient-MappingType.cs +++ b/src/Nest/ElasticClient-MappingType.cs @@ -13,7 +13,7 @@ public IIndicesResponse Map(Func, PutMappingDescripto { mappingSelector.ThrowIfNull("mappingSelector"); var descriptor = mappingSelector(new PutMappingDescriptor(_connectionSettings)); - return this.Dispatch, PutMappingQueryString, IndicesResponse>( + return this.Dispatch, PutMappingRequestParameters, IndicesResponse>( descriptor, (p, d) => { @@ -32,7 +32,7 @@ public Task MapAsync(Func, PutMappi { mappingSelector.ThrowIfNull("mappingSelector"); var descriptor = mappingSelector(new PutMappingDescriptor(_connectionSettings)); - return this.DispatchAsync, PutMappingQueryString, IndicesResponse, IIndicesResponse>( + return this.DispatchAsync, PutMappingRequestParameters, IndicesResponse, IIndicesResponse>( descriptor, (p, d) => { diff --git a/src/Nest/ElasticClient-MoreLikeThis.cs b/src/Nest/ElasticClient-MoreLikeThis.cs index 8cc2c3fb6d1..dfeec7d5908 100644 --- a/src/Nest/ElasticClient-MoreLikeThis.cs +++ b/src/Nest/ElasticClient-MoreLikeThis.cs @@ -11,11 +11,11 @@ public partial class ElasticClient public IQueryResponse MoreLikeThis(Func, MoreLikeThisDescriptor> mltSelector) where T : class { - return this.Dispatch, MoreLikeThisQueryString, QueryResponse>( + return this.Dispatch, MoreLikeThisRequestParameters, QueryResponse>( mltSelector, (p, d) => { - CopySearchQueryString(d); + CopySearchRequestParameters(d); return this.RawDispatch.MltDispatch>(p, d._Search); } ); @@ -25,17 +25,17 @@ public IQueryResponse MoreLikeThis(Func, MoreLik public Task> MoreLikeThisAsync( Func, MoreLikeThisDescriptor> mltSelector) where T : class { - return this.DispatchAsync, MoreLikeThisQueryString, QueryResponse, IQueryResponse>( + return this.DispatchAsync, MoreLikeThisRequestParameters, QueryResponse, IQueryResponse>( mltSelector, (p, d) => { - CopySearchQueryString(d); + CopySearchRequestParameters(d); return this.RawDispatch.MltDispatchAsync>(p, d._Search); } ); } - private static void CopySearchQueryString(MoreLikeThisDescriptor d) where T : class + private static void CopySearchRequestParameters(MoreLikeThisDescriptor d) where T : class { if (d._Search == null) return; var searchQs = d._Search._QueryString._QueryStringDictionary; diff --git a/src/Nest/ElasticClient-MultiGet.cs b/src/Nest/ElasticClient-MultiGet.cs index 5b614d80218..70d4b65f720 100644 --- a/src/Nest/ElasticClient-MultiGet.cs +++ b/src/Nest/ElasticClient-MultiGet.cs @@ -16,9 +16,9 @@ public IMultiGetResponse MultiGet(Func m multiGetSelector.ThrowIfNull("multiGetSelector"); var descriptor = multiGetSelector(new MultiGetDescriptor(_connectionSettings)); var converter = CreateCovariantMultiGetConverter(descriptor); - return this.Dispatch( + return this.Dispatch( descriptor, - (p, d) => this.RawDispatch.MgetDispatch(p, d, converter) + (p, d) => this.RawDispatch.MgetDispatch(p.DeserializationState(converter), d) ); } @@ -28,9 +28,9 @@ public Task MultiGetAsync(Func( + return this.DispatchAsync( descriptor, - (p, d) => this.RawDispatch.MgetDispatchAsync(p, d, converter) + (p, d) => this.RawDispatch.MgetDispatchAsync(p.DeserializationState(converter), d) ); } diff --git a/src/Nest/ElasticClient-MultiSearch.cs b/src/Nest/ElasticClient-MultiSearch.cs index 529bcb8897f..c3d5507dfc5 100644 --- a/src/Nest/ElasticClient-MultiSearch.cs +++ b/src/Nest/ElasticClient-MultiSearch.cs @@ -14,13 +14,13 @@ public partial class ElasticClient /// public IMultiSearchResponse MultiSearch(Func multiSearchSelector) { - return this.Dispatch( + return this.Dispatch( multiSearchSelector, (p, d) => { string json = Serializer.SerializeMultiSearch(d); JsonConverter converter = CreateMultiSearchConverter(d); - return this.RawDispatch.MsearchDispatch(p, json, converter); + return this.RawDispatch.MsearchDispatch(p.DeserializationState(converter), json); } ); } @@ -29,13 +29,13 @@ public IMultiSearchResponse MultiSearch(Func MultiSearchAsync( Func multiSearchSelector) { - return this.DispatchAsync( + return this.DispatchAsync( multiSearchSelector, (p, d) => { string json = Serializer.SerializeMultiSearch(d); JsonConverter converter = CreateMultiSearchConverter(d); - return this.RawDispatch.MsearchDispatchAsync(p, json, converter); + return this.RawDispatch.MsearchDispatchAsync(p.DeserializationState(converter), json); } ); } diff --git a/src/Nest/ElasticClient-Nodes.cs b/src/Nest/ElasticClient-Nodes.cs index aa5daa22350..d14af1fa828 100644 --- a/src/Nest/ElasticClient-Nodes.cs +++ b/src/Nest/ElasticClient-Nodes.cs @@ -12,7 +12,7 @@ public partial class ElasticClient public INodeInfoResponse NodesInfo(Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.NodesInfoDispatch(p) ); @@ -22,7 +22,7 @@ public INodeInfoResponse NodesInfo(Func NodesInfoAsync(Func selector = null) { selector = selector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.NodesInfoDispatchAsync(p) ); @@ -32,7 +32,7 @@ public Task NodesInfoAsync(Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.NodesStatsDispatch(p) ); @@ -42,7 +42,7 @@ public INodeStatsResponse NodesStats(Func NodesStatsAsync(Func selector = null) { selector = selector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.NodesStatsDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-OpenClose.cs b/src/Nest/ElasticClient-OpenClose.cs index 8fb2792f064..7615cd2bf41 100644 --- a/src/Nest/ElasticClient-OpenClose.cs +++ b/src/Nest/ElasticClient-OpenClose.cs @@ -9,7 +9,7 @@ public partial class ElasticClient /// public IIndicesOperationResponse OpenIndex(Func openIndexSelector) { - return this.Dispatch( + return this.Dispatch( openIndexSelector, (p, d) => this.RawDispatch.IndicesOpenDispatch(p) ); @@ -18,7 +18,7 @@ public IIndicesOperationResponse OpenIndex(Func public Task OpenIndexAsync(Func openIndexSelector) { - return this.DispatchAsync( + return this.DispatchAsync( openIndexSelector, (p, d) => this.RawDispatch.IndicesOpenDispatchAsync(p) ); @@ -27,7 +27,7 @@ public Task OpenIndexAsync(Func public IIndicesOperationResponse CloseIndex(Func closeIndexSelector) { - return this.Dispatch( + return this.Dispatch( closeIndexSelector, (p, d) => this.RawDispatch.IndicesCloseDispatch(p) ); @@ -38,7 +38,7 @@ public Task CloseIndexAsync( Func closeIndexSelector) { return this.DispatchAsync - ( + ( closeIndexSelector, (p, d) => this.RawDispatch.IndicesCloseDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Optimize.cs b/src/Nest/ElasticClient-Optimize.cs index de88566e583..aa4b3399d44 100644 --- a/src/Nest/ElasticClient-Optimize.cs +++ b/src/Nest/ElasticClient-Optimize.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public IShardsOperationResponse Optimize(Func optimizeSelector = null) { optimizeSelector = optimizeSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( optimizeSelector, (p, d) => this.RawDispatch.IndicesOptimizeDispatch(p) ); @@ -22,7 +22,7 @@ public Task OptimizeAsync( Func optimizeSelector = null) { optimizeSelector = optimizeSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( optimizeSelector, (p, d) => this.RawDispatch.IndicesOptimizeDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Percolate.cs b/src/Nest/ElasticClient-Percolate.cs index 5add50b83f5..3ed82f03c68 100644 --- a/src/Nest/ElasticClient-Percolate.cs +++ b/src/Nest/ElasticClient-Percolate.cs @@ -12,7 +12,7 @@ public IUnregisterPercolateResponse UnregisterPercolator(string name, Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( s => selector(s.Name(name)), (p, d) => this.RawDispatch.DeleteDispatch(p), true ); @@ -24,7 +24,7 @@ public Task UnregisterPercolatorAsync(string name, { selector = selector ?? (s => s); return this.DispatchAsync - ( + ( s => selector(s.Name(name)), (p, d) => this.RawDispatch.DeleteDispatchAsync(p), true ); @@ -36,7 +36,7 @@ public IRegisterPercolateResponse RegisterPercolator(string name, where T : class { percolatorSelector.ThrowIfNull("percolatorSelector"); - return this.Dispatch, IndexQueryString, RegisterPercolateResponse>( + return this.Dispatch, IndexRequestParameters, RegisterPercolateResponse>( s => percolatorSelector(s.Name(name)), (p, d) => this.RawDispatch.IndexDispatch(p, d._RequestBody) ); @@ -48,7 +48,7 @@ public Task RegisterPercolatorAsync(string name, { percolatorSelector.ThrowIfNull("percolatorSelector"); return this.DispatchAsync - , IndexQueryString, RegisterPercolateResponse, IRegisterPercolateResponse>( + , IndexRequestParameters, RegisterPercolateResponse, IRegisterPercolateResponse>( s => percolatorSelector(s.Name(name)), (p, d) => this.RawDispatch.IndexDispatchAsync(p, d._RequestBody) ); @@ -77,7 +77,7 @@ public IPercolateResponse Percolate(K @object, where K : class { percolateSelector = percolateSelector ?? (s => s); - return this.Dispatch, PercolateQueryString, PercolateResponse>( + return this.Dispatch, PercolateRequestParameters, PercolateResponse>( s => percolateSelector(s.Object(@object)), (p, d) => this.RawDispatch.PercolateDispatch(p, d) ); @@ -90,7 +90,7 @@ public Task PercolateAsync(K @object, where K : class { percolateSelector = percolateSelector ?? (s => s); - return this.DispatchAsync, PercolateQueryString, PercolateResponse, IPercolateResponse>( + return this.DispatchAsync, PercolateRequestParameters, PercolateResponse, IPercolateResponse>( s => percolateSelector(s.Object(@object)), (p, d) => this.RawDispatch.PercolateDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-Refresh.cs b/src/Nest/ElasticClient-Refresh.cs index 362302ca2e2..93212d6ea70 100644 --- a/src/Nest/ElasticClient-Refresh.cs +++ b/src/Nest/ElasticClient-Refresh.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public IShardsOperationResponse Refresh(Func refreshSelector = null) { refreshSelector = refreshSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( refreshSelector, (p, d) => this.RawDispatch.IndicesRefreshDispatch(p) ); @@ -21,7 +21,7 @@ public IShardsOperationResponse Refresh(Func RefreshAsync(Func refreshSelector = null) { refreshSelector = refreshSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( refreshSelector, (p, d) => this.RawDispatch.IndicesRefreshDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-RootNodeInfo.cs b/src/Nest/ElasticClient-RootNodeInfo.cs index d16c16fe29f..9296f8c3b95 100644 --- a/src/Nest/ElasticClient-RootNodeInfo.cs +++ b/src/Nest/ElasticClient-RootNodeInfo.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public IRootInfoResponse RootNodeInfo(Func selector = null) { selector = selector ?? (i => i); - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.InfoDispatch(p) ); @@ -21,7 +21,7 @@ public IRootInfoResponse RootNodeInfo(Func selec public Task RootNodeInfoAsync(Func selector = null) { selector = selector ?? (i => i); - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.InfoDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Scroll.cs b/src/Nest/ElasticClient-Scroll.cs index 94726349ca8..1ab908a0432 100644 --- a/src/Nest/ElasticClient-Scroll.cs +++ b/src/Nest/ElasticClient-Scroll.cs @@ -11,7 +11,7 @@ public IQueryResponse Scroll( Func, ScrollDescriptor> scrollSelector) where T : class { - return this.Dispatch, ScrollQueryString, QueryResponse>( + return this.Dispatch, ScrollRequestParameters, QueryResponse>( scrollSelector, (p, d) => { @@ -27,7 +27,7 @@ public Task> ScrollAsync( Func, ScrollDescriptor> scrollSelector) where T : class { - return this.DispatchAsync, ScrollQueryString, QueryResponse, IQueryResponse>( + return this.DispatchAsync, ScrollRequestParameters, QueryResponse, IQueryResponse>( scrollSelector, (p, d) => { diff --git a/src/Nest/ElasticClient-Search.cs b/src/Nest/ElasticClient-Search.cs index 8042bc3b38f..3e95e909dd5 100644 --- a/src/Nest/ElasticClient-Search.cs +++ b/src/Nest/ElasticClient-Search.cs @@ -23,11 +23,12 @@ public IQueryResponse Search(Func, Sear { searchSelector.ThrowIfNull("searchSelector"); var descriptor = searchSelector(new SearchDescriptor()); - var pathInfo = - ((IPathInfo) descriptor).ToPathInfo(_connectionSettings); var deserializationState = this.CreateCovariantSearchSelector(descriptor); - var status = this.RawDispatch.SearchDispatch>(pathInfo, - descriptor, deserializationState); + var pathInfo = + ((IPathInfo) descriptor).ToPathInfo(_connectionSettings) + .DeserializationState(deserializationState); + + var status = this.RawDispatch.SearchDispatch>(pathInfo, descriptor); return status.Success ? status.Response : CreateInvalidInstance>(status); } @@ -47,10 +48,12 @@ public Task> SearchAsync( { searchSelector.ThrowIfNull("searchSelector"); var descriptor = searchSelector(new SearchDescriptor()); - var pathInfo = - ((IPathInfo) descriptor).ToPathInfo(_connectionSettings); var deserializationState = this.CreateCovariantSearchSelector(descriptor); - return this.RawDispatch.SearchDispatchAsync>(pathInfo, descriptor, deserializationState) + var pathInfo = + ((IPathInfo) descriptor).ToPathInfo(_connectionSettings) + .DeserializationState(deserializationState); + + return this.RawDispatch.SearchDispatchAsync>(pathInfo, descriptor) .ContinueWith>(t => t.Result.Success ? t.Result.Response : CreateInvalidInstance>(t.Result)); diff --git a/src/Nest/ElasticClient-Segments.cs b/src/Nest/ElasticClient-Segments.cs index 83cbcb4b487..74fceb4a725 100644 --- a/src/Nest/ElasticClient-Segments.cs +++ b/src/Nest/ElasticClient-Segments.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public ISegmentsResponse Segments(Func segmentsSelector = null) { segmentsSelector = segmentsSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( segmentsSelector, (p, d) => this.RawDispatch.IndicesSegmentsDispatch(p) ); @@ -21,7 +21,7 @@ public ISegmentsResponse Segments(Func s public Task SegmentsAsync(Func segmentsSelector = null) { segmentsSelector = segmentsSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( segmentsSelector, (p, d) => this.RawDispatch.IndicesSegmentsDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Source.cs b/src/Nest/ElasticClient-Source.cs index 93471195a89..b48c0f9380a 100644 --- a/src/Nest/ElasticClient-Source.cs +++ b/src/Nest/ElasticClient-Source.cs @@ -13,7 +13,7 @@ public T Source(Func, SourceDescriptor> getSelector) w { var descriptor = getSelector(new SourceDescriptor()); var pathInfo = - ((IPathInfo) descriptor).ToPathInfo(_connectionSettings); + ((IPathInfo) descriptor).ToPathInfo(_connectionSettings); var response = this.RawDispatch.GetSourceDispatch(pathInfo); return response.Response; } @@ -23,7 +23,7 @@ public Task SourceAsync(Func, SourceDescriptor> get { var descriptor = getSelector(new SourceDescriptor()); var pathInfo = - ((IPathInfo) descriptor).ToPathInfo(_connectionSettings); + ((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 2ea48d46d98..b19477f22fe 100644 --- a/src/Nest/ElasticClient-State.cs +++ b/src/Nest/ElasticClient-State.cs @@ -12,7 +12,7 @@ public IClusterStateResponse ClusterState( Func clusterStateSelector = null) { clusterStateSelector = clusterStateSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( clusterStateSelector, (p, d) => this.RawDispatch.ClusterStateDispatch(p) ); @@ -23,7 +23,7 @@ public Task ClusterStateAsync( Func clusterStateSelector = null) { clusterStateSelector = clusterStateSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( clusterStateSelector, (p, d) => this.RawDispatch.ClusterStateDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Stats.cs b/src/Nest/ElasticClient-Stats.cs index edf8b23ce2a..e36af38e213 100644 --- a/src/Nest/ElasticClient-Stats.cs +++ b/src/Nest/ElasticClient-Stats.cs @@ -12,7 +12,7 @@ public partial class ElasticClient public IGlobalStatsResponse IndicesStats(Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesStatsDispatch(p) ); @@ -23,7 +23,7 @@ public Task IndicesStatsAsync( Func selector = null) { selector = selector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesStatsDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Status.cs b/src/Nest/ElasticClient-Status.cs index 7b0274e4469..029bd16c522 100644 --- a/src/Nest/ElasticClient-Status.cs +++ b/src/Nest/ElasticClient-Status.cs @@ -13,7 +13,7 @@ public partial class ElasticClient public IStatusResponse Status(Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( selector, (p, d) => this.RawDispatch.IndicesStatusDispatch(p) ); @@ -23,7 +23,7 @@ public IStatusResponse Status(Func StatusAsync(Func selector = null) { selector = selector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( selector, (p, d) => this.RawDispatch.IndicesStatusDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Template.cs b/src/Nest/ElasticClient-Template.cs index 1e5f559a469..0e53df36a0b 100644 --- a/src/Nest/ElasticClient-Template.cs +++ b/src/Nest/ElasticClient-Template.cs @@ -16,10 +16,11 @@ public ITemplateResponse GetTemplate(string name, Func getTemplateSelector = null) { getTemplateSelector = getTemplateSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( d => getTemplateSelector(d.Name(name)), - (p, d) => - RawDispatch.IndicesGetTemplateDispatch(p, (GetTemplateConverter) DeserializeTemplateResponse) + (p, d) => RawDispatch.IndicesGetTemplateDispatch( + p.DeserializationState((GetTemplateConverter) DeserializeTemplateResponse) + ) ); } @@ -28,10 +29,11 @@ public Task GetTemplateAsync(string name, Func getTemplateSelector = null) { getTemplateSelector = getTemplateSelector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( d => getTemplateSelector(d.Name(name)), (p, d) => this.RawDispatch.IndicesGetTemplateDispatchAsync( - p, (GetTemplateConverter) DeserializeTemplateResponse) + p.DeserializationState((GetTemplateConverter) DeserializeTemplateResponse) + ) ); } @@ -41,7 +43,7 @@ public IIndicesOperationResponse PutTemplate(string name, { putTemplateSelector.ThrowIfNull("putTemplateSelector"); var descriptor = putTemplateSelector(new PutTemplateDescriptor(_connectionSettings).Name(name)); - return this.Dispatch( + return this.Dispatch( descriptor, (p, d) => this.RawDispatch.IndicesPutTemplateDispatch(p, d._TemplateMapping) ); @@ -54,7 +56,7 @@ public Task PutTemplateAsync(string name, putTemplateSelector.ThrowIfNull("putTemplateSelector"); var descriptor = putTemplateSelector(new PutTemplateDescriptor(_connectionSettings).Name(name)); return this.DispatchAsync - ( + ( descriptor, (p, d) => this.RawDispatch.IndicesPutTemplateDispatchAsync(p, d._TemplateMapping) ); @@ -65,7 +67,7 @@ public IIndicesOperationResponse DeleteTemplate(string name, Func deleteTemplateSelector = null) { deleteTemplateSelector = deleteTemplateSelector ?? (s => s); - return this.Dispatch( + return this.Dispatch( d => deleteTemplateSelector(d.Name(name)), (p, d) => this.RawDispatch.IndicesDeleteTemplateDispatch(p) ); @@ -77,7 +79,7 @@ public Task DeleteTemplateAync(string name, { deleteTemplateSelector = deleteTemplateSelector ?? (s => s); return this.DispatchAsync - ( + ( d => deleteTemplateSelector(d.Name(name)), (p, d) => this.RawDispatch.IndicesDeleteTemplateDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient-Update.cs b/src/Nest/ElasticClient-Update.cs index b374f6c730b..5bef2365321 100644 --- a/src/Nest/ElasticClient-Update.cs +++ b/src/Nest/ElasticClient-Update.cs @@ -18,7 +18,7 @@ public IUpdateResponse Update(Func, UpdateDescripto where T : class where K : class { - return this.Dispatch, UpdateQueryString, UpdateResponse>( + return this.Dispatch, UpdateRequestParameters, UpdateResponse>( updateSelector, (p, d) => this.RawDispatch.UpdateDispatch(p, d) ); @@ -36,7 +36,7 @@ public Task UpdateAsync(Func, Upda where T : class where K : class { - return this.DispatchAsync, UpdateQueryString, UpdateResponse, IUpdateResponse>( + return this.DispatchAsync, UpdateRequestParameters, UpdateResponse, IUpdateResponse>( updateSelector, (p, d) => this.RawDispatch.UpdateDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-UpdateSettings.cs b/src/Nest/ElasticClient-UpdateSettings.cs index 96e6a6c0978..a8f3d35ca72 100644 --- a/src/Nest/ElasticClient-UpdateSettings.cs +++ b/src/Nest/ElasticClient-UpdateSettings.cs @@ -13,7 +13,7 @@ public ISettingsOperationResponse UpdateSettings( Func updateSettingsSelector ) { - return this.Dispatch( + return this.Dispatch( updateSettingsSelector, (p, d) => this.RawDispatch.IndicesPutSettingsDispatch(p, d) ); @@ -25,7 +25,7 @@ Func updateSettingsSelector ) { return this.DispatchAsync - ( + ( updateSettingsSelector, (p, d) => this.RawDispatch.IndicesPutSettingsDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-Validate.cs b/src/Nest/ElasticClient-Validate.cs index 65b1a40c948..ad65a3fc97b 100644 --- a/src/Nest/ElasticClient-Validate.cs +++ b/src/Nest/ElasticClient-Validate.cs @@ -11,7 +11,7 @@ public partial class ElasticClient public IValidateResponse Validate(Func, ValidateQueryDescriptor> querySelector) where T : class { - return this.Dispatch, ValidateQueryQueryString, ValidateResponse>( + return this.Dispatch, ValidateQueryRequestParameters, ValidateResponse>( querySelector, (p, d) => this.RawDispatch.IndicesValidateQueryDispatch(p, d) ); @@ -22,7 +22,7 @@ public Task ValidateAsync( Func, ValidateQueryDescriptor> querySelector) where T : class { - return this.DispatchAsync, ValidateQueryQueryString, ValidateResponse, IValidateResponse>( + return this.DispatchAsync, ValidateQueryRequestParameters, ValidateResponse, IValidateResponse>( querySelector, (p, d) => this.RawDispatch.IndicesValidateQueryDispatchAsync(p, d) ); diff --git a/src/Nest/ElasticClient-Warmers.cs b/src/Nest/ElasticClient-Warmers.cs index d5d7356fadb..75d72659c62 100644 --- a/src/Nest/ElasticClient-Warmers.cs +++ b/src/Nest/ElasticClient-Warmers.cs @@ -16,7 +16,7 @@ public partial class ElasticClient public IIndicesOperationResponse PutWarmer(string name, Func selector) { selector.ThrowIfNull("selector"); - return this.Dispatch( + return this.Dispatch( d => selector(d.Name(name).AllIndices()), (p, d) => this.RawDispatch.IndicesPutWarmerDispatch(p, d) ); @@ -27,7 +27,7 @@ public Task PutWarmerAsync(string name, Func selector) { selector.ThrowIfNull("selector"); - return this.DispatchAsync( + return this.DispatchAsync( d => selector(d.Name(name).AllIndices()), (p, d) => this.RawDispatch.IndicesPutWarmerDispatchAsync(p, d) ); @@ -37,11 +37,10 @@ public Task PutWarmerAsync(string name, public IWarmerResponse GetWarmer(string name, Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( d => selector(d.Name(name).AllIndices()), (p, d) => this.RawDispatch.IndicesGetWarmerDispatch( - p, - new GetWarmerConverter(DeserializeWarmerResponse) + p.DeserializationState(new GetWarmerConverter(DeserializeWarmerResponse)) ) ); } @@ -51,11 +50,10 @@ public Task GetWarmerAsync(string name, Func selector = null) { selector = selector ?? (s => s); - return this.DispatchAsync( + return this.DispatchAsync( d => selector(d.Name(name).AllIndices()), (p, d) => this.RawDispatch.IndicesGetWarmerDispatchAsync( - p, - new GetWarmerConverter(DeserializeWarmerResponse) + p.DeserializationState(new GetWarmerConverter(DeserializeWarmerResponse)) ) ); } @@ -65,7 +63,7 @@ public IIndicesOperationResponse DeleteWarmer(string name, Func selector = null) { selector = selector ?? (s => s); - return this.Dispatch( + return this.Dispatch( d => selector(d.Name(name).AllIndices()), (p, d) => this.RawDispatch.IndicesDeleteWarmerDispatch(p) ); @@ -77,7 +75,7 @@ public Task DeleteWarmerAsync(string name, { selector = selector ?? (s => s); return this.DispatchAsync - ( + ( d => selector(d.Name(name).AllIndices()), (p, d) => this.RawDispatch.IndicesDeleteWarmerDispatchAsync(p) ); diff --git a/src/Nest/ElasticClient.cs b/src/Nest/ElasticClient.cs index 15de273f0bf..d4e6541a631 100644 --- a/src/Nest/ElasticClient.cs +++ b/src/Nest/ElasticClient.cs @@ -63,7 +63,7 @@ Func selector , Func, D, ElasticsearchResponse> dispatch , bool allow404 = false ) - where Q : FluentQueryString, new() + where Q : FluentRequestParameters, new() where D : IPathInfo, new() where R : BaseResponse { @@ -78,7 +78,7 @@ D descriptor , Func, D, ElasticsearchResponse> dispatch , bool allow404 = false ) - where Q : FluentQueryString, new() + where Q : FluentRequestParameters, new() where D : IPathInfo where R : BaseResponse { @@ -104,7 +104,7 @@ Func selector , Func, D, Task>> dispatch , bool allow404 = false ) - where Q : FluentQueryString, new() + where Q : FluentRequestParameters, new() where D : IPathInfo, new() where R : BaseResponse, I where I : IResponse @@ -119,7 +119,7 @@ D descriptor , Func, D, Task>> dispatch , bool allow404 = false ) - where Q : FluentQueryString, new() + where Q : FluentRequestParameters, new() where D : IPathInfo where R : BaseResponse, I where I : IResponse diff --git a/src/Nest/Nest.csproj b/src/Nest/Nest.csproj index c536e3cd9be..a580d139cb9 100644 --- a/src/Nest/Nest.csproj +++ b/src/Nest/Nest.csproj @@ -75,7 +75,8 @@ - + + False ..\..\dep\Newtonsoft.Json.6.0.1\lib\net40\Newtonsoft.Json.dll @@ -128,7 +129,7 @@ - + @@ -163,6 +164,7 @@ + diff --git a/src/Nest/RawDispatch.generated.cs b/src/Nest/RawDispatch.generated.cs index 8875308afca..797de02242e 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, object deserializationState = null) + internal ElasticsearchResponse BulkDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.Bulk(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Bulk(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Bulk(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_bulk if (body != null) - return this.Raw.Bulk(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Bulk(body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.BulkPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //PUT /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.BulkPut(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.BulkPut(pathInfo.Index,body,u => pathInfo.RequestParameters); //PUT /_bulk if (body != null) - return this.Raw.BulkPut(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.BulkPut(body,u => pathInfo.RequestParameters); break; } @@ -51,32 +51,32 @@ internal ElasticsearchResponse BulkDispatch(ElasticsearchPathInfo> BulkDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> BulkDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.BulkAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.BulkAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.BulkAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_bulk if (body != null) - return this.Raw.BulkAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.BulkAsync(body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.BulkPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //PUT /{index}/_bulk if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.BulkPutAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.BulkPutAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //PUT /_bulk if (body != null) - return this.Raw.BulkPutAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.BulkPutAsync(body,u => pathInfo.RequestParameters); break; } @@ -84,362 +84,362 @@ internal Task> BulkDispatchAsync(ElasticsearchPathIn } - internal ElasticsearchResponse CatAliasesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse CatAliasesDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.CatAliases(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAliases(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_cat/aliases - return this.Raw.CatAliases(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAliases(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> CatAliasesDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.CatAliasesAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAliasesAsync(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_cat/aliases - return this.Raw.CatAliasesAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAliasesAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse CatAllocationDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/allocation/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.CatAllocation(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAllocation(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_cat/allocation - return this.Raw.CatAllocation(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAllocation(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> CatAllocationDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/allocation/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.CatAllocationAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAllocationAsync(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_cat/allocation - return this.Raw.CatAllocationAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatAllocationAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse CatCountDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/count/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatCount(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatCount(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/count - return this.Raw.CatCount(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatCount(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> CatCountDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/count/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatCountAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatCountAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/count - return this.Raw.CatCountAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatCountAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse CatHealthDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/health - return this.Raw.CatHealth(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatHealth(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatHealth() into any of the following paths: \r\n - /_cat/health"); } - internal Task> CatHealthDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> CatHealthDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/health - return this.Raw.CatHealthAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatHealthAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatHealth() into any of the following paths: \r\n - /_cat/health"); } - internal ElasticsearchResponse CatHelpDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse CatHelpDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat - return this.Raw.CatHelp(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatHelp(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatHelp() into any of the following paths: \r\n - /_cat"); } - internal Task> CatHelpDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> CatHelpDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat - return this.Raw.CatHelpAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatHelpAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatHelp() into any of the following paths: \r\n - /_cat"); } - internal ElasticsearchResponse CatIndicesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse CatIndicesDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/indices/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatIndices(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatIndices(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/indices - return this.Raw.CatIndices(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatIndices(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> CatIndicesDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/indices/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatIndicesAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatIndicesAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/indices - return this.Raw.CatIndicesAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatIndicesAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse CatMasterDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/master - return this.Raw.CatMaster(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatMaster(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatMaster() into any of the following paths: \r\n - /_cat/master"); } - internal Task> CatMasterDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> CatMasterDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/master - return this.Raw.CatMasterAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatMasterAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatMaster() into any of the following paths: \r\n - /_cat/master"); } - internal ElasticsearchResponse CatNodesDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse CatNodesDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/nodes - return this.Raw.CatNodes(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatNodes(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatNodes() into any of the following paths: \r\n - /_cat/nodes"); } - internal Task> CatNodesDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> CatNodesDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/nodes - return this.Raw.CatNodesAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatNodesAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatNodes() into any of the following paths: \r\n - /_cat/nodes"); } - internal ElasticsearchResponse CatPendingTasksDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse CatPendingTasksDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/pending_tasks - return this.Raw.CatPendingTasks(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatPendingTasks(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatPendingTasks() into any of the following paths: \r\n - /_cat/pending_tasks"); } - internal Task> CatPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> CatPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/pending_tasks - return this.Raw.CatPendingTasksAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatPendingTasksAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatPendingTasks() into any of the following paths: \r\n - /_cat/pending_tasks"); } - internal ElasticsearchResponse CatRecoveryDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse CatRecoveryDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/recovery/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatRecovery(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatRecovery(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/recovery - return this.Raw.CatRecovery(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatRecovery(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> CatRecoveryDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/recovery/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatRecoveryAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatRecoveryAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/recovery - return this.Raw.CatRecoveryAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatRecoveryAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse CatShardsDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/shards/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatShards(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatShards(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/shards - return this.Raw.CatShards(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatShards(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> CatShardsDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/shards/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CatShardsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CatShardsAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cat/shards - return this.Raw.CatShardsAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatShardsAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse CatThreadPoolDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/thread_pool - return this.Raw.CatThreadPool(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatThreadPool(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatThreadPool() into any of the following paths: \r\n - /_cat/thread_pool"); } - internal Task> CatThreadPoolDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> CatThreadPoolDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cat/thread_pool - return this.Raw.CatThreadPoolAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CatThreadPoolAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.CatThreadPool() into any of the following paths: \r\n - /_cat/thread_pool"); } - internal ElasticsearchResponse ClearScrollDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse ClearScrollDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ClearScroll(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClearScroll(pathInfo.ScrollId,u => pathInfo.RequestParameters); break; } @@ -447,14 +447,14 @@ internal ElasticsearchResponse ClearScrollDispatch(ElasticsearchPathInfo> ClearScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> ClearScrollDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ClearScrollAsync(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClearScrollAsync(pathInfo.ScrollId,u => pathInfo.RequestParameters); break; } @@ -462,98 +462,98 @@ internal Task> ClearScrollDispatchAsync(Elasticsearc } - internal ElasticsearchResponse ClusterGetSettingsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse ClusterGetSettingsDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/settings - return this.Raw.ClusterGetSettings(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterGetSettings(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.ClusterGetSettings() into any of the following paths: \r\n - /_cluster/settings"); } - internal Task> ClusterGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> ClusterGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/settings - return this.Raw.ClusterGetSettingsAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterGetSettingsAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.ClusterGetSettings() into any of the following paths: \r\n - /_cluster/settings"); } - internal ElasticsearchResponse ClusterHealthDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse ClusterHealthDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/health/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.ClusterHealth(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterHealth(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cluster/health - return this.Raw.ClusterHealth(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterHealth(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> ClusterHealthDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/health/{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.ClusterHealthAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterHealthAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cluster/health - return this.Raw.ClusterHealthAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterHealthAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse ClusterPendingTasksDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/pending_tasks - return this.Raw.ClusterPendingTasks(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterPendingTasks(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.ClusterPendingTasks() into any of the following paths: \r\n - /_cluster/pending_tasks"); } - internal Task> ClusterPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> ClusterPendingTasksDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_cluster/pending_tasks - return this.Raw.ClusterPendingTasksAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterPendingTasksAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse ClusterPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_cluster/settings if (body != null) - return this.Raw.ClusterPutSettings(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterPutSettings(body,u => pathInfo.RequestParameters); break; } @@ -561,14 +561,14 @@ internal ElasticsearchResponse ClusterPutSettingsDispatch(ElasticsearchPat } - internal Task> ClusterPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> ClusterPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /_cluster/settings if (body != null) - return this.Raw.ClusterPutSettingsAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterPutSettingsAsync(body,u => pathInfo.RequestParameters); break; } @@ -576,14 +576,14 @@ internal Task> ClusterPutSettingsDispatchAsync(Elast } - internal ElasticsearchResponse ClusterRerouteDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse ClusterRerouteDispatch(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_cluster/reroute if (body != null) - return this.Raw.ClusterReroute(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterReroute(body,u => pathInfo.RequestParameters); break; } @@ -591,14 +591,14 @@ internal ElasticsearchResponse ClusterRerouteDispatch(ElasticsearchPathInf } - internal Task> ClusterRerouteDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> ClusterRerouteDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_cluster/reroute if (body != null) - return this.Raw.ClusterRerouteAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterRerouteAsync(body,u => pathInfo.RequestParameters); break; } @@ -606,158 +606,158 @@ internal Task> ClusterRerouteDispatchAsync(Elasticse } - internal ElasticsearchResponse ClusterStateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse ClusterStateDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.ClusterState(pathInfo.Metric,pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cluster/state/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.ClusterState(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterState(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_cluster/state - return this.Raw.ClusterState(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterState(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> ClusterStateDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.ClusterStateAsync(pathInfo.Metric,pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cluster/state/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.ClusterStateAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterStateAsync(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_cluster/state - return this.Raw.ClusterStateAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterStateAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse ClusterStatsDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.ClusterStats(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_cluster/stats - return this.Raw.ClusterStats(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterStats(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> ClusterStatsDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.ClusterStatsAsync(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_cluster/stats - return this.Raw.ClusterStatsAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.ClusterStatsAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse CountDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.Count(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_count if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Count(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Count(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_count if (body != null) - return this.Raw.Count(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Count(body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.CountGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_count if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CountGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CountGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_count - return this.Raw.CountGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.CountGet(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal Task> CountDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.CountAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_count if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.CountAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.CountAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_count if (body != null) - return this.Raw.CountAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.CountAsync(body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.CountGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_count if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.CountGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.CountGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_count - return this.Raw.CountGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.CountGetAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse CountPercolateDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); //GET /{index}/{type}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); + return this.Raw.CountPercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.CountPercolate(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.CountPercolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -765,26 +765,26 @@ internal ElasticsearchResponse CountPercolateDispatch(ElasticsearchPathInf } - internal Task> CountPercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> CountPercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); //GET /{index}/{type}/_percolate/count if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); + return this.Raw.CountPercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.CountPercolateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.CountPercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -792,14 +792,14 @@ internal Task> CountPercolateDispatchAsync(Elasticse } - internal ElasticsearchResponse DeleteDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse DeleteDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.Delete(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -807,14 +807,14 @@ internal ElasticsearchResponse DeleteDispatch(ElasticsearchPathInfo> DeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> DeleteDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.DeleteAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -822,17 +822,17 @@ internal Task> DeleteDispatchAsync(ElasticsearchPath } - internal ElasticsearchResponse DeleteByQueryDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse DeleteByQueryDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.DeleteByQuery(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //DELETE /{index}/_query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.DeleteByQuery(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.DeleteByQuery(pathInfo.Index,body,u => pathInfo.RequestParameters); break; } @@ -840,17 +840,17 @@ internal ElasticsearchResponse DeleteByQueryDispatch(ElasticsearchPathInfo } - internal Task> DeleteByQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> DeleteByQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.DeleteByQueryAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //DELETE /{index}/_query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.DeleteByQueryAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.DeleteByQueryAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); break; } @@ -858,14 +858,14 @@ internal Task> DeleteByQueryDispatchAsync(Elasticsea } - internal ElasticsearchResponse ExistsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse ExistsDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.Exists(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -873,14 +873,14 @@ internal ElasticsearchResponse ExistsDispatch(ElasticsearchPathInfo> ExistsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> ExistsDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.ExistsAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -888,20 +888,20 @@ internal Task> ExistsDispatchAsync(ElasticsearchPath } - internal ElasticsearchResponse ExplainDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse ExplainDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.ExplainGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Explain(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -909,20 +909,20 @@ internal ElasticsearchResponse ExplainDispatch(ElasticsearchPathInfo> ExplainDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> ExplainDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.ExplainGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.ExplainAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -930,14 +930,14 @@ internal Task> ExplainDispatchAsync(ElasticsearchPat } - internal ElasticsearchResponse GetDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse GetDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.Get(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -945,14 +945,14 @@ internal ElasticsearchResponse GetDispatch(ElasticsearchPathInfo> GetDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> GetDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.GetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -960,14 +960,14 @@ internal Task> GetDispatchAsync(ElasticsearchPathInf } - internal ElasticsearchResponse GetSourceDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse GetSourceDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.GetSource(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -975,14 +975,14 @@ internal ElasticsearchResponse GetSourceDispatch(ElasticsearchPathInfo> GetSourceDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> GetSourceDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.GetSourceAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); break; } @@ -990,26 +990,26 @@ internal Task> GetSourceDispatchAsync(ElasticsearchP } - internal ElasticsearchResponse IndexDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndexDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.Index(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //POST /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.Index(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Index(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //PUT /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndexPut(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -1017,26 +1017,26 @@ internal ElasticsearchResponse IndexDispatch(ElasticsearchPathInfo> IndexDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndexDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //POST /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndexAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //PUT /{index}/{type} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndexPutAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -1044,24 +1044,24 @@ internal Task> IndexDispatchAsync(ElasticsearchPathI } - internal ElasticsearchResponse IndicesAnalyzeDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesAnalyzeDispatch(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesAnalyzeGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_analyze - return this.Raw.IndicesAnalyzeGetForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeGetForAll(u => pathInfo.RequestParameters); case PathInfoHttpMethod.POST: //POST /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesAnalyze(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyze(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_analyze if (body != null) - return this.Raw.IndicesAnalyzeForAll(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeForAll(body,u => pathInfo.RequestParameters); break; } @@ -1069,24 +1069,24 @@ internal ElasticsearchResponse IndicesAnalyzeDispatch(ElasticsearchPathInf } - internal Task> IndicesAnalyzeDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesAnalyzeDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesAnalyzeGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_analyze - return this.Raw.IndicesAnalyzeGetForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeGetForAllAsync(u => pathInfo.RequestParameters); case PathInfoHttpMethod.POST: //POST /{index}/_analyze if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesAnalyzeAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_analyze if (body != null) - return this.Raw.IndicesAnalyzeForAllAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesAnalyzeForAllAsync(body,u => pathInfo.RequestParameters); break; } @@ -1094,60 +1094,60 @@ internal Task> IndicesAnalyzeDispatchAsync(Elasticse } - internal ElasticsearchResponse IndicesClearCacheDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesClearCacheDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCache(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCache(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_cache/clear - return this.Raw.IndicesClearCacheForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheForAll(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCacheGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cache/clear - return this.Raw.IndicesClearCacheGetForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheGetForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesClearCacheDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCacheAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheAsync(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_cache/clear - return this.Raw.IndicesClearCacheForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheForAllAsync(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_cache/clear if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClearCacheGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_cache/clear - return this.Raw.IndicesClearCacheGetForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClearCacheGetForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesCloseDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_close if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesClose(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesClose(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1155,14 +1155,14 @@ internal ElasticsearchResponse IndicesCloseDispatch(ElasticsearchPathInfo< } - internal Task> IndicesCloseDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesCloseDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_close if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesCloseAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesCloseAsync(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1170,20 +1170,20 @@ internal Task> IndicesCloseDispatchAsync(Elasticsear } - internal ElasticsearchResponse IndicesCreateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesCreateDispatch(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreate(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesCreate(pathInfo.Index,body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.POST: //POST /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreatePost(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesCreatePost(pathInfo.Index,body,u => pathInfo.RequestParameters); break; } @@ -1191,20 +1191,20 @@ internal ElasticsearchResponse IndicesCreateDispatch(ElasticsearchPathInfo } - internal Task> IndicesCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.PUT: //PUT /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreateAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesCreateAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.POST: //POST /{index} if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesCreatePostAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesCreatePostAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); break; } @@ -1212,14 +1212,14 @@ internal Task> IndicesCreateDispatchAsync(Elasticsea } - internal ElasticsearchResponse IndicesDeleteDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesDeleteDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesDelete(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesDelete(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1227,14 +1227,14 @@ internal ElasticsearchResponse IndicesDeleteDispatch(ElasticsearchPathInfo } - internal Task> IndicesDeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesDeleteDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesDeleteAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesDeleteAsync(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1242,14 +1242,14 @@ internal Task> IndicesDeleteDispatchAsync(Elasticsea } - internal ElasticsearchResponse IndicesDeleteAliasDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesDeleteAliasDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesDeleteAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1257,14 +1257,14 @@ internal ElasticsearchResponse IndicesDeleteAliasDispatch(ElasticsearchPat } - internal Task> IndicesDeleteAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesDeleteAliasDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesDeleteAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1272,14 +1272,14 @@ internal Task> IndicesDeleteAliasDispatchAsync(Elast } - internal ElasticsearchResponse IndicesDeleteMappingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesDeleteMappingDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesDeleteMapping(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); break; } @@ -1287,14 +1287,14 @@ internal ElasticsearchResponse IndicesDeleteMappingDispatch(ElasticsearchP } - internal Task> IndicesDeleteMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesDeleteMappingDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesDeleteMappingAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); break; } @@ -1302,14 +1302,14 @@ internal Task> IndicesDeleteMappingDispatchAsync(Ela } - internal ElasticsearchResponse IndicesDeleteTemplateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesDeleteTemplateDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteTemplateForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesDeleteTemplateForAll(pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1317,14 +1317,14 @@ internal ElasticsearchResponse IndicesDeleteTemplateDispatch(Elasticsearch } - internal Task> IndicesDeleteTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesDeleteTemplateDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesDeleteTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesDeleteTemplateForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1332,14 +1332,14 @@ internal Task> IndicesDeleteTemplateDispatchAsync(El } - internal ElasticsearchResponse IndicesDeleteWarmerDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesDeleteWarmerDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesDeleteWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1347,14 +1347,14 @@ internal ElasticsearchResponse IndicesDeleteWarmerDispatch(ElasticsearchPa } - internal Task> IndicesDeleteWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesDeleteWarmerDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesDeleteWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1362,14 +1362,14 @@ internal Task> IndicesDeleteWarmerDispatchAsync(Elas } - internal ElasticsearchResponse IndicesExistsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesExistsDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExists(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExists(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1377,14 +1377,14 @@ internal ElasticsearchResponse IndicesExistsDispatch(ElasticsearchPathInfo } - internal Task> IndicesExistsDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesExistsDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /{index} if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExistsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsAsync(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1392,20 +1392,20 @@ internal Task> IndicesExistsDispatchAsync(Elasticsea } - internal ElasticsearchResponse IndicesExistsAliasDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesExistsAliasDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesExistsAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //HEAD /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsAliasForAll(pathInfo.Name,u => pathInfo.RequestParameters); //HEAD /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExistsAlias(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsAlias(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1413,20 +1413,20 @@ internal ElasticsearchResponse IndicesExistsAliasDispatch(ElasticsearchPat } - internal Task> IndicesExistsAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesExistsAliasDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //HEAD /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsAliasForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); //HEAD /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsAliasAsync(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1434,14 +1434,14 @@ internal Task> IndicesExistsAliasDispatchAsync(Elast } - internal ElasticsearchResponse IndicesExistsTemplateDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesExistsTemplateDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsTemplateForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsTemplateForAll(pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1449,14 +1449,14 @@ internal ElasticsearchResponse IndicesExistsTemplateDispatch(Elasticsearch } - internal Task> IndicesExistsTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesExistsTemplateDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesExistsTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesExistsTemplateForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); break; } @@ -1464,14 +1464,14 @@ internal Task> IndicesExistsTemplateDispatchAsync(El } - internal ElasticsearchResponse IndicesExistsTypeDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesExistsTypeDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesExistsType(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); break; } @@ -1479,14 +1479,14 @@ internal ElasticsearchResponse IndicesExistsTypeDispatch(ElasticsearchPath } - internal Task> IndicesExistsTypeDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesExistsTypeDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesExistsTypeAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); break; } @@ -1494,157 +1494,157 @@ internal Task> IndicesExistsTypeDispatchAsync(Elasti } - internal ElasticsearchResponse IndicesFlushDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesFlushDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlush(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlush(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_flush - return this.Raw.IndicesFlushForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushForAll(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlushGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_flush - return this.Raw.IndicesFlushGetForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushGetForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesFlushDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlushAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushAsync(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_flush - return this.Raw.IndicesFlushForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushForAllAsync(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_flush if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesFlushGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_flush - return this.Raw.IndicesFlushGetForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesFlushGetForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesGetAliasDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetAlias(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasForAll(pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAlias(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAlias(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_alias - return this.Raw.IndicesGetAliasForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesGetAliasDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetAliasAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_alias if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_alias - return this.Raw.IndicesGetAliasForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesGetAliasesDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetAliases(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_aliases if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAliases(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliases(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasesForAll(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_aliases - return this.Raw.IndicesGetAliasesForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasesForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesGetAliasesDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_aliases if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasesAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_aliases/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetAliasesForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasesForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_aliases - return this.Raw.IndicesGetAliasesForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetAliasesForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesGetFieldMappingDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Type,pathInfo.Field,u => pathInfo.RequestParameters); //GET /{index}/_mapping/field/{field} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Field,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetFieldMapping(pathInfo.Index,pathInfo.Field,u => pathInfo.RequestParameters); //GET /_mapping/{type}/field/{field} if (!pathInfo.Type.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Type,pathInfo.Field,u => pathInfo.RequestParameters); //GET /_mapping/field/{field} if (!pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Field,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetFieldMappingForAll(pathInfo.Field,u => pathInfo.RequestParameters); break; } @@ -1652,23 +1652,23 @@ internal ElasticsearchResponse IndicesGetFieldMappingDispatch(Elasticsearc } - internal Task> IndicesGetFieldMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesGetFieldMappingDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Type,pathInfo.Field,u => pathInfo.RequestParameters); //GET /{index}/_mapping/field/{field} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Field,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetFieldMappingAsync(pathInfo.Index,pathInfo.Field,u => pathInfo.RequestParameters); //GET /_mapping/{type}/field/{field} if (!pathInfo.Type.IsNullOrEmpty() && !pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Type,pathInfo.Field,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Type,pathInfo.Field,u => pathInfo.RequestParameters); //GET /_mapping/field/{field} if (!pathInfo.Field.IsNullOrEmpty()) - return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Field,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetFieldMappingForAllAsync(pathInfo.Field,u => pathInfo.RequestParameters); break; } @@ -1676,184 +1676,184 @@ internal Task> IndicesGetFieldMappingDispatchAsync(E } - internal ElasticsearchResponse IndicesGetMappingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesGetMappingDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetMapping(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mapping if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetMapping(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetMapping(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingForAll(pathInfo.Type,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetMappingForAll(pathInfo.Type,u => pathInfo.RequestParameters); //GET /_mapping - return this.Raw.IndicesGetMappingForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetMappingForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesGetMappingDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetMappingAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mapping if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetMappingAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty()) - return this.Raw.IndicesGetMappingForAllAsync(pathInfo.Type,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetMappingForAllAsync(pathInfo.Type,u => pathInfo.RequestParameters); //GET /_mapping - return this.Raw.IndicesGetMappingForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetMappingForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesGetSettingsDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetSettings(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_settings if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetSettings(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetSettings(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_settings/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetSettingsForAll(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_settings - return this.Raw.IndicesGetSettingsForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetSettingsForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesGetSettingsDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_settings if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetSettingsAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_settings/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetSettingsForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetSettingsForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_settings - return this.Raw.IndicesGetSettingsForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetSettingsForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesGetTemplateDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetTemplateForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetTemplateForAll(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_template - return this.Raw.IndicesGetTemplateForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetTemplateForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesGetTemplateDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_template/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetTemplateForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetTemplateForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_template - return this.Raw.IndicesGetTemplateForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetTemplateForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesGetWarmerDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Type,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmer(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_warmer if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmer(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmer(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerForAll(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmerForAll(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_warmer - return this.Raw.IndicesGetWarmerForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmerForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesGetWarmerDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_warmer/{name} if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,pathInfo.Name,u => pathInfo.RequestParameters); //GET /{index}/_warmer if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmerAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty()) - return this.Raw.IndicesGetWarmerForAllAsync(pathInfo.Name,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmerForAllAsync(pathInfo.Name,u => pathInfo.RequestParameters); //GET /_warmer - return this.Raw.IndicesGetWarmerForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesGetWarmerForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesOpenDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_open if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOpen(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOpen(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1861,14 +1861,14 @@ internal ElasticsearchResponse IndicesOpenDispatch(ElasticsearchPathInfo> IndicesOpenDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> IndicesOpenDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_open if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOpenAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOpenAsync(pathInfo.Index,u => pathInfo.RequestParameters); break; } @@ -1876,72 +1876,72 @@ internal Task> IndicesOpenDispatchAsync(Elasticsearc } - internal ElasticsearchResponse IndicesOptimizeDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesOptimizeDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimize(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimize(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_optimize - return this.Raw.IndicesOptimizeForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeForAll(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimizeGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_optimize - return this.Raw.IndicesOptimizeGetForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeGetForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesOptimizeDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimizeAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeAsync(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_optimize - return this.Raw.IndicesOptimizeForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeForAllAsync(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_optimize if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesOptimizeGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_optimize - return this.Raw.IndicesOptimizeGetForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesOptimizeGetForAllAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse IndicesPutAliasDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutAlias(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //PUT /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutAliasForAll(pathInfo.Name,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesPutAliasPost(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //POST /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasPostForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutAliasPostForAll(pathInfo.Name,body,u => pathInfo.RequestParameters); break; } @@ -1949,26 +1949,26 @@ internal ElasticsearchResponse IndicesPutAliasDispatch(ElasticsearchPathIn } - internal Task> IndicesPutAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesPutAliasDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutAliasAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //PUT /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutAliasForAllAsync(pathInfo.Name,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesPutAliasPostAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //POST /_alias/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutAliasPostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutAliasPostForAllAsync(pathInfo.Name,body,u => pathInfo.RequestParameters); break; } @@ -1976,26 +1976,26 @@ internal Task> IndicesPutAliasDispatchAsync(Elastics } - internal ElasticsearchResponse IndicesPutMappingDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesPutMappingDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutMapping(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //PUT /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingForAll(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutMappingForAll(pathInfo.Type,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesPutMappingPost(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingPostForAll(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutMappingPostForAll(pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -2003,26 +2003,26 @@ internal ElasticsearchResponse IndicesPutMappingDispatch(ElasticsearchPath } - internal Task> IndicesPutMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesPutMappingDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutMappingAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //PUT /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingForAllAsync(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutMappingForAllAsync(pathInfo.Type,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesPutMappingPostAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /_mapping/{type} if (!pathInfo.Type.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutMappingPostForAllAsync(pathInfo.Type,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutMappingPostForAllAsync(pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -2030,17 +2030,17 @@ internal Task> IndicesPutMappingDispatchAsync(Elasti } - internal ElasticsearchResponse IndicesPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesPutSettingsDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutSettings(pathInfo.Index,body,u => pathInfo.RequestParameters); //PUT /_settings if (body != null) - return this.Raw.IndicesPutSettingsForAll(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutSettingsForAll(body,u => pathInfo.RequestParameters); break; } @@ -2048,17 +2048,17 @@ internal ElasticsearchResponse IndicesPutSettingsDispatch(ElasticsearchPat } - internal Task> IndicesPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesPutSettingsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutSettingsAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //PUT /_settings if (body != null) - return this.Raw.IndicesPutSettingsForAllAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutSettingsForAllAsync(body,u => pathInfo.RequestParameters); break; } @@ -2066,20 +2066,20 @@ internal Task> IndicesPutSettingsDispatchAsync(Elast } - internal ElasticsearchResponse IndicesPutTemplateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesPutTemplateDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutTemplateForAll(pathInfo.Name,body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.POST: //POST /_template/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutTemplatePostForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutTemplatePostForAll(pathInfo.Name,body,u => pathInfo.RequestParameters); break; } @@ -2087,20 +2087,20 @@ internal ElasticsearchResponse IndicesPutTemplateDispatch(ElasticsearchPat } - internal Task> IndicesPutTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesPutTemplateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutTemplateForAllAsync(pathInfo.Name,body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.POST: //POST /_template/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutTemplatePostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutTemplatePostForAllAsync(pathInfo.Name,body,u => pathInfo.RequestParameters); break; } @@ -2108,32 +2108,32 @@ internal Task> IndicesPutTemplateDispatchAsync(Elast } - internal ElasticsearchResponse IndicesPutWarmerDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesPutWarmerDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutWarmer(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.IndicesPutWarmer(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //PUT /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutWarmerForAll(pathInfo.Name,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesPutWarmerPost(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.IndicesPutWarmerPost(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //POST /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPostForAll(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutWarmerPostForAll(pathInfo.Name,body,u => pathInfo.RequestParameters); break; } @@ -2141,32 +2141,32 @@ internal ElasticsearchResponse IndicesPutWarmerDispatch(ElasticsearchPathI } - internal Task> IndicesPutWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesPutWarmerDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesPutWarmerAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.IndicesPutWarmerAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //PUT /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutWarmerForAllAsync(pathInfo.Name,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesPutWarmerPostAsync(pathInfo.Index,pathInfo.Type,pathInfo.Name,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.IndicesPutWarmerPostAsync(pathInfo.Index,pathInfo.Name,body,u => pathInfo.RequestParameters); //POST /_warmer/{name} if (!pathInfo.Name.IsNullOrEmpty() && body != null) - return this.Raw.IndicesPutWarmerPostForAllAsync(pathInfo.Name,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesPutWarmerPostForAllAsync(pathInfo.Name,body,u => pathInfo.RequestParameters); break; } @@ -2174,200 +2174,200 @@ internal Task> IndicesPutWarmerDispatchAsync(Elastic } - internal ElasticsearchResponse IndicesRefreshDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse IndicesRefreshDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefresh(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefresh(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_refresh - return this.Raw.IndicesRefreshForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshForAll(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefreshGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_refresh - return this.Raw.IndicesRefreshGetForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshGetForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesRefreshDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefreshAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshAsync(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_refresh - return this.Raw.IndicesRefreshForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshForAllAsync(u => pathInfo.RequestParameters); case PathInfoHttpMethod.GET: //GET /{index}/_refresh if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesRefreshGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_refresh - return this.Raw.IndicesRefreshGetForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesRefreshGetForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesSegmentsDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_segments if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSegments(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSegments(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_segments - return this.Raw.IndicesSegmentsForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSegmentsForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesSegmentsDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_segments if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSegmentsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSegmentsAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_segments - return this.Raw.IndicesSegmentsForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSegmentsForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesSnapshotIndexDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_gateway/snapshot if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSnapshotIndex(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSnapshotIndex(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_gateway/snapshot - return this.Raw.IndicesSnapshotIndexForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSnapshotIndexForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesSnapshotIndexDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /{index}/_gateway/snapshot if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesSnapshotIndexAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSnapshotIndexAsync(pathInfo.Index,u => pathInfo.RequestParameters); //POST /_gateway/snapshot - return this.Raw.IndicesSnapshotIndexForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesSnapshotIndexForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesStatsDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesStats(pathInfo.Index,pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.IndicesStatsForAll(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatsForAll(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /{index}/_stats if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStats(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStats(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_stats - return this.Raw.IndicesStatsForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatsForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesStatsDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.IndicesStatsAsync(pathInfo.Index,pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.IndicesStatsForAllAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatsForAllAsync(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /{index}/_stats if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStatsAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatsAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_stats - return this.Raw.IndicesStatsForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatsForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse IndicesStatusDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_status if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStatus(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatus(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_status - return this.Raw.IndicesStatusForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatusForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> IndicesStatusDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /{index}/_status if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesStatusAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatusAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_status - return this.Raw.IndicesStatusForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesStatusForAllAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse IndicesUpdateAliasesDispatch(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_aliases if (body != null) - return this.Raw.IndicesUpdateAliasesForAll(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesUpdateAliasesForAll(body,u => pathInfo.RequestParameters); break; } @@ -2375,14 +2375,14 @@ internal ElasticsearchResponse IndicesUpdateAliasesDispatch(ElasticsearchP } - internal Task> IndicesUpdateAliasesDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesUpdateAliasesDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.POST: //POST /_aliases if (body != null) - return this.Raw.IndicesUpdateAliasesForAllAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesUpdateAliasesForAllAsync(body,u => pathInfo.RequestParameters); break; } @@ -2390,30 +2390,30 @@ internal Task> IndicesUpdateAliasesDispatchAsync(Ela } - internal ElasticsearchResponse IndicesValidateQueryDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse IndicesValidateQueryDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesValidateQueryGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesValidateQueryGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_validate/query - return this.Raw.IndicesValidateQueryGetForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryGetForAll(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesValidateQuery(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesValidateQuery(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQuery(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_validate/query if (body != null) - return this.Raw.IndicesValidateQueryForAll(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryForAll(body,u => pathInfo.RequestParameters); break; } @@ -2421,30 +2421,30 @@ internal ElasticsearchResponse IndicesValidateQueryDispatch(ElasticsearchP } - internal Task> IndicesValidateQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> IndicesValidateQueryDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_validate/query - return this.Raw.IndicesValidateQueryGetForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryGetForAllAsync(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_validate/query if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_validate/query if (body != null) - return this.Raw.IndicesValidateQueryForAllAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.IndicesValidateQueryForAllAsync(body,u => pathInfo.RequestParameters); break; } @@ -2452,56 +2452,56 @@ internal Task> IndicesValidateQueryDispatchAsync(Ela } - internal ElasticsearchResponse InfoDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse InfoDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET / - return this.Raw.Info(u => pathInfo.QueryString, deserializationState); + return this.Raw.Info(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.Info() into any of the following paths: \r\n - /"); } - internal Task> InfoDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> InfoDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET / - return this.Raw.InfoAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.InfoAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.Info() into any of the following paths: \r\n - /"); } - internal ElasticsearchResponse MgetDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse MgetDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MgetGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MgetGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MgetGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mget - return this.Raw.MgetGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.MgetGet(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Mget(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Mget(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Mget(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_mget if (body != null) - return this.Raw.Mget(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Mget(body,u => pathInfo.RequestParameters); break; } @@ -2509,30 +2509,30 @@ internal ElasticsearchResponse MgetDispatch(ElasticsearchPathInfo> MgetDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> MgetDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MgetGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MgetGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MgetGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mget - return this.Raw.MgetGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.MgetGetAsync(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.MgetAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_mget if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MgetAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MgetAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_mget if (body != null) - return this.Raw.MgetAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MgetAsync(body,u => pathInfo.RequestParameters); break; } @@ -2540,20 +2540,20 @@ internal Task> MgetDispatchAsync(ElasticsearchPathIn } - internal ElasticsearchResponse MltDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse MltDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MltGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Mlt(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -2561,20 +2561,20 @@ internal ElasticsearchResponse MltDispatch(ElasticsearchPathInfo> MltDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> MltDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MltGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.MltAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -2582,30 +2582,30 @@ internal Task> MltDispatchAsync(ElasticsearchPathInf } - internal ElasticsearchResponse MpercolateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse MpercolateDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MpercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MpercolateGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MpercolateGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mpercolate - return this.Raw.MpercolateGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.MpercolateGet(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Mpercolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Mpercolate(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Mpercolate(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_mpercolate if (body != null) - return this.Raw.Mpercolate(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Mpercolate(body,u => pathInfo.RequestParameters); break; } @@ -2613,30 +2613,30 @@ internal ElasticsearchResponse MpercolateDispatch(ElasticsearchPathInfo> MpercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> MpercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MpercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MpercolateGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MpercolateGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mpercolate - return this.Raw.MpercolateGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.MpercolateGetAsync(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.MpercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_mpercolate if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MpercolateAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MpercolateAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_mpercolate if (body != null) - return this.Raw.MpercolateAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MpercolateAsync(body,u => pathInfo.RequestParameters); break; } @@ -2644,30 +2644,30 @@ internal Task> MpercolateDispatchAsync(Elasticsearch } - internal ElasticsearchResponse MsearchDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse MsearchDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MsearchGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MsearchGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MsearchGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_msearch - return this.Raw.MsearchGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.MsearchGet(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Msearch(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Msearch(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Msearch(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_msearch if (body != null) - return this.Raw.Msearch(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Msearch(body,u => pathInfo.RequestParameters); break; } @@ -2675,30 +2675,30 @@ internal ElasticsearchResponse MsearchDispatch(ElasticsearchPathInfo> MsearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> MsearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MsearchGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MsearchGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MsearchGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_msearch - return this.Raw.MsearchGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.MsearchGetAsync(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.MsearchAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_msearch if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MsearchAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MsearchAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_msearch if (body != null) - return this.Raw.MsearchAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MsearchAsync(body,u => pathInfo.RequestParameters); break; } @@ -2706,30 +2706,30 @@ internal Task> MsearchDispatchAsync(ElasticsearchPat } - internal ElasticsearchResponse MtermvectorsDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse MtermvectorsDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MtermvectorsGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MtermvectorsGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MtermvectorsGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mtermvectors - return this.Raw.MtermvectorsGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.MtermvectorsGet(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Mtermvectors(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Mtermvectors(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Mtermvectors(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_mtermvectors if (body != null) - return this.Raw.Mtermvectors(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Mtermvectors(body,u => pathInfo.RequestParameters); break; } @@ -2737,30 +2737,30 @@ internal ElasticsearchResponse MtermvectorsDispatch(ElasticsearchPathInfo< } - internal Task> MtermvectorsDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> MtermvectorsDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.MtermvectorsGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.MtermvectorsGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.MtermvectorsGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_mtermvectors - return this.Raw.MtermvectorsGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.MtermvectorsGetAsync(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.MtermvectorsAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_mtermvectors if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.MtermvectorsAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MtermvectorsAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_mtermvectors if (body != null) - return this.Raw.MtermvectorsAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.MtermvectorsAsync(body,u => pathInfo.RequestParameters); break; } @@ -2768,190 +2768,190 @@ internal Task> MtermvectorsDispatchAsync(Elasticsear } - internal ElasticsearchResponse NodesHotThreadsDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse NodesHotThreadsDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesHotThreads(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_cluster/nodes/hotthreads - return this.Raw.NodesHotThreadsForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesHotThreadsForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> NodesHotThreadsDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesHotThreadsAsync(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_cluster/nodes/hotthreads - return this.Raw.NodesHotThreadsForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesHotThreadsForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse NodesInfoDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesInfo(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesInfo(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesInfo(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_nodes/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesInfoForAll(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesInfoForAll(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes - return this.Raw.NodesInfoForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesInfoForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> NodesInfoDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesInfoAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes/{node_id} if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesInfoAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesInfoAsync(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_nodes/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesInfoForAllAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesInfoForAllAsync(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes - return this.Raw.NodesInfoForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesInfoForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse NodesShutdownDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesShutdown(pathInfo.NodeId,u => pathInfo.RequestParameters); //POST /_shutdown - return this.Raw.NodesShutdownForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesShutdownForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> NodesShutdownDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesShutdownAsync(pathInfo.NodeId,u => pathInfo.RequestParameters); //POST /_shutdown - return this.Raw.NodesShutdownForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesShutdownForAllAsync(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal ElasticsearchResponse NodesStatsDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.RequestParameters); //GET /_nodes/{node_id}/stats/{metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStats(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes/stats/{metric}/{index_metric} if (!pathInfo.Metric.IsNullOrEmpty() && !pathInfo.IndexMetric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAll(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsForAll(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.RequestParameters); //GET /_nodes/{node_id}/stats if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesStats(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStats(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_nodes/stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAll(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsForAll(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes/stats - return this.Raw.NodesStatsForAll(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsForAll(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> NodesStatsDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.RequestParameters); //GET /_nodes/{node_id}/stats/{metric} if (!pathInfo.NodeId.IsNullOrEmpty() && !pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsAsync(pathInfo.NodeId,pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes/stats/{metric}/{index_metric} if (!pathInfo.Metric.IsNullOrEmpty() && !pathInfo.IndexMetric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,pathInfo.IndexMetric,u => pathInfo.RequestParameters); //GET /_nodes/{node_id}/stats if (!pathInfo.NodeId.IsNullOrEmpty()) - return this.Raw.NodesStatsAsync(pathInfo.NodeId,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsAsync(pathInfo.NodeId,u => pathInfo.RequestParameters); //GET /_nodes/stats/{metric} if (!pathInfo.Metric.IsNullOrEmpty()) - return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsForAllAsync(pathInfo.Metric,u => pathInfo.RequestParameters); //GET /_nodes/stats - return this.Raw.NodesStatsForAllAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.NodesStatsForAllAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse PercolateDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); //GET /{index}/{type}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); + return this.Raw.PercolateGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Percolate(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.Percolate(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -2959,26 +2959,26 @@ internal ElasticsearchResponse PercolateDispatch(ElasticsearchPathInfo> PercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> PercolateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); //GET /{index}/{type}/_percolate if (!pathInfo.Index.IsNullOrEmpty() && !pathInfo.Type.IsNullOrEmpty()) - return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.QueryString, deserializationState); + return this.Raw.PercolateGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.PercolateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); //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, deserializationState); + return this.Raw.PercolateAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); break; } @@ -2986,50 +2986,50 @@ internal Task> PercolateDispatchAsync(ElasticsearchP } - internal ElasticsearchResponse PingDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse PingDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD / - return this.Raw.Ping(u => pathInfo.QueryString, deserializationState); + return this.Raw.Ping(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.Ping() into any of the following paths: \r\n - /"); } - internal Task> PingDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> PingDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.HEAD: //HEAD / - return this.Raw.PingAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.PingAsync(u => pathInfo.RequestParameters); } throw new DispatchException("Could not dispatch IElasticClient.Ping() into any of the following paths: \r\n - /"); } - internal ElasticsearchResponse ScrollDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse ScrollDispatch(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ScrollGet(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); + return this.Raw.ScrollGet(pathInfo.ScrollId,u => pathInfo.RequestParameters); //GET /_search/scroll - return this.Raw.ScrollGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.ScrollGet(u => pathInfo.RequestParameters); case PathInfoHttpMethod.POST: //POST /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty() && body != null) - return this.Raw.Scroll(pathInfo.ScrollId,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Scroll(pathInfo.ScrollId,body,u => pathInfo.RequestParameters); //POST /_search/scroll if (body != null) - return this.Raw.Scroll(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Scroll(body,u => pathInfo.RequestParameters); break; } @@ -3037,24 +3037,24 @@ internal ElasticsearchResponse ScrollDispatch(ElasticsearchPathInfo> ScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> ScrollDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty()) - return this.Raw.ScrollGetAsync(pathInfo.ScrollId,u => pathInfo.QueryString, deserializationState); + return this.Raw.ScrollGetAsync(pathInfo.ScrollId,u => pathInfo.RequestParameters); //GET /_search/scroll - return this.Raw.ScrollGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.ScrollGetAsync(u => pathInfo.RequestParameters); case PathInfoHttpMethod.POST: //POST /_search/scroll/{scroll_id} if (!pathInfo.ScrollId.IsNullOrEmpty() && body != null) - return this.Raw.ScrollAsync(pathInfo.ScrollId,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.ScrollAsync(pathInfo.ScrollId,body,u => pathInfo.RequestParameters); //POST /_search/scroll if (body != null) - return this.Raw.ScrollAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.ScrollAsync(body,u => pathInfo.RequestParameters); break; } @@ -3062,30 +3062,30 @@ internal Task> ScrollDispatchAsync(ElasticsearchPath } - internal ElasticsearchResponse SearchDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse SearchDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SearchGet(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_search if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SearchGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.SearchGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_search - return this.Raw.SearchGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.SearchGet(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Search(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_search if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.Search(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Search(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_search if (body != null) - return this.Raw.Search(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Search(body,u => pathInfo.RequestParameters); break; } @@ -3093,30 +3093,30 @@ internal ElasticsearchResponse SearchDispatch(ElasticsearchPathInfo> SearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> SearchDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SearchGetAsync(pathInfo.Index,pathInfo.Type,u => pathInfo.RequestParameters); //GET /{index}/_search if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SearchGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.SearchGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_search - return this.Raw.SearchGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.SearchGetAsync(u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.SearchAsync(pathInfo.Index,pathInfo.Type,body,u => pathInfo.RequestParameters); //POST /{index}/_search if (!pathInfo.Index.IsNullOrEmpty() && body != null) - return this.Raw.SearchAsync(pathInfo.Index,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.SearchAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_search if (body != null) - return this.Raw.SearchAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.SearchAsync(body,u => pathInfo.RequestParameters); break; } @@ -3124,20 +3124,20 @@ internal Task> SearchDispatchAsync(ElasticsearchPath } - internal ElasticsearchResponse SnapshotCreateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse SnapshotCreateDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SnapshotCreate(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.SnapshotCreatePost(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.RequestParameters); break; } @@ -3145,20 +3145,20 @@ internal ElasticsearchResponse SnapshotCreateDispatch(ElasticsearchPathInf } - internal Task> SnapshotCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> SnapshotCreateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SnapshotCreateAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.SnapshotCreatePostAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.RequestParameters); break; } @@ -3166,20 +3166,20 @@ internal Task> SnapshotCreateDispatchAsync(Elasticse } - internal ElasticsearchResponse SnapshotCreateRepositoryDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse SnapshotCreateRepositoryDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SnapshotCreateRepository(pathInfo.Repository,body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.POST: //POST /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateRepositoryPost(pathInfo.Repository,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotCreateRepositoryPost(pathInfo.Repository,body,u => pathInfo.RequestParameters); break; } @@ -3187,20 +3187,20 @@ internal ElasticsearchResponse SnapshotCreateRepositoryDispatch(Elasticsea } - internal Task> SnapshotCreateRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> SnapshotCreateRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SnapshotCreateRepositoryAsync(pathInfo.Repository,body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.POST: //POST /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty() && body != null) - return this.Raw.SnapshotCreateRepositoryPostAsync(pathInfo.Repository,body,u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotCreateRepositoryPostAsync(pathInfo.Repository,body,u => pathInfo.RequestParameters); break; } @@ -3208,14 +3208,14 @@ internal Task> SnapshotCreateRepositoryDispatchAsync } - internal ElasticsearchResponse SnapshotDeleteDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse SnapshotDeleteDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.SnapshotDelete(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.RequestParameters); break; } @@ -3223,14 +3223,14 @@ internal ElasticsearchResponse SnapshotDeleteDispatch(ElasticsearchPathInf } - internal Task> SnapshotDeleteDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> SnapshotDeleteDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.SnapshotDeleteAsync(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.RequestParameters); break; } @@ -3238,14 +3238,14 @@ internal Task> SnapshotDeleteDispatchAsync(Elasticse } - internal ElasticsearchResponse SnapshotDeleteRepositoryDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse SnapshotDeleteRepositoryDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotDeleteRepository(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotDeleteRepository(pathInfo.Repository,u => pathInfo.RequestParameters); break; } @@ -3253,14 +3253,14 @@ internal ElasticsearchResponse SnapshotDeleteRepositoryDispatch(Elasticsea } - internal Task> SnapshotDeleteRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> SnapshotDeleteRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.DELETE: //DELETE /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotDeleteRepositoryAsync(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotDeleteRepositoryAsync(pathInfo.Repository,u => pathInfo.RequestParameters); break; } @@ -3268,14 +3268,14 @@ internal Task> SnapshotDeleteRepositoryDispatchAsync } - internal ElasticsearchResponse SnapshotGetDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse SnapshotGetDispatch(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.SnapshotGet(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.RequestParameters); break; } @@ -3283,14 +3283,14 @@ internal ElasticsearchResponse SnapshotGetDispatch(ElasticsearchPathInfo> SnapshotGetDispatchAsync(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal Task> SnapshotGetDispatchAsync(ElasticsearchPathInfo pathInfo ) { 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, deserializationState); + return this.Raw.SnapshotGetAsync(pathInfo.Repository,pathInfo.Snapshot,u => pathInfo.RequestParameters); break; } @@ -3298,46 +3298,46 @@ internal Task> SnapshotGetDispatchAsync(Elasticsearc } - internal ElasticsearchResponse SnapshotGetRepositoryDispatch(ElasticsearchPathInfo pathInfo , object deserializationState = null) + internal ElasticsearchResponse SnapshotGetRepositoryDispatch(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotGetRepository(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotGetRepository(pathInfo.Repository,u => pathInfo.RequestParameters); //GET /_snapshot - return this.Raw.SnapshotGetRepository(u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotGetRepository(u => pathInfo.RequestParameters); } 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 , object deserializationState = null) + internal Task> SnapshotGetRepositoryDispatchAsync(ElasticsearchPathInfo pathInfo ) { switch(pathInfo.HttpMethod) { case PathInfoHttpMethod.GET: //GET /_snapshot/{repository} if (!pathInfo.Repository.IsNullOrEmpty()) - return this.Raw.SnapshotGetRepositoryAsync(pathInfo.Repository,u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotGetRepositoryAsync(pathInfo.Repository,u => pathInfo.RequestParameters); //GET /_snapshot - return this.Raw.SnapshotGetRepositoryAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.SnapshotGetRepositoryAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse SnapshotRestoreDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SnapshotRestore(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.RequestParameters); break; } @@ -3345,14 +3345,14 @@ internal ElasticsearchResponse SnapshotRestoreDispatch(ElasticsearchPathIn } - internal Task> SnapshotRestoreDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> SnapshotRestoreDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SnapshotRestoreAsync(pathInfo.Repository,pathInfo.Snapshot,body,u => pathInfo.RequestParameters); break; } @@ -3360,70 +3360,70 @@ internal Task> SnapshotRestoreDispatchAsync(Elastics } - internal ElasticsearchResponse SuggestDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse SuggestDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.Suggest(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_suggest if (body != null) - return this.Raw.Suggest(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.Suggest(body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.GET: //GET /{index}/_suggest if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SuggestGet(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.SuggestGet(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_suggest - return this.Raw.SuggestGet(u => pathInfo.QueryString, deserializationState); + return this.Raw.SuggestGet(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal Task> SuggestDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.SuggestAsync(pathInfo.Index,body,u => pathInfo.RequestParameters); //POST /_suggest if (body != null) - return this.Raw.SuggestAsync(body,u => pathInfo.QueryString, deserializationState); + return this.Raw.SuggestAsync(body,u => pathInfo.RequestParameters); break; case PathInfoHttpMethod.GET: //GET /{index}/_suggest if (!pathInfo.Index.IsNullOrEmpty()) - return this.Raw.SuggestGetAsync(pathInfo.Index,u => pathInfo.QueryString, deserializationState); + return this.Raw.SuggestGetAsync(pathInfo.Index,u => pathInfo.RequestParameters); //GET /_suggest - return this.Raw.SuggestGetAsync(u => pathInfo.QueryString, deserializationState); + return this.Raw.SuggestGetAsync(u => pathInfo.RequestParameters); } 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, object deserializationState = null) + internal ElasticsearchResponse TermvectorDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.TermvectorGet(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.Termvector(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -3431,20 +3431,20 @@ internal ElasticsearchResponse TermvectorDispatch(ElasticsearchPathInfo> TermvectorDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> TermvectorDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.TermvectorGetAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,u => pathInfo.RequestParameters); 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, deserializationState); + return this.Raw.TermvectorAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -3452,14 +3452,14 @@ internal Task> TermvectorDispatchAsync(Elasticsearch } - internal ElasticsearchResponse UpdateDispatch(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal ElasticsearchResponse UpdateDispatch(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.Update(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } @@ -3467,14 +3467,14 @@ internal ElasticsearchResponse UpdateDispatch(ElasticsearchPathInfo> UpdateDispatchAsync(ElasticsearchPathInfo pathInfo , object body, object deserializationState = null) + internal Task> UpdateDispatchAsync(ElasticsearchPathInfo pathInfo , object body) { 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, deserializationState); + return this.Raw.UpdateAsync(pathInfo.Index,pathInfo.Type,pathInfo.Id,body,u => pathInfo.RequestParameters); break; } diff --git a/src/Profiling/Profiling.InMemoryConnection/Program.cs b/src/Profiling/Profiling.InMemoryConnection/Program.cs index cdf589b8461..d74bda0b031 100644 --- a/src/Profiling/Profiling.InMemoryConnection/Program.cs +++ b/src/Profiling/Profiling.InMemoryConnection/Program.cs @@ -1,4 +1,5 @@ using System; +using Elasticsearch.Net.Connection; using Nest; using Elasticsearch.Net; diff --git a/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj b/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj index 0fbf217aa0b..a4a6071c6e6 100644 --- a/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj +++ b/src/Profiling/Profiling.Indexing/Profiling.Indexing.csproj @@ -67,7 +67,8 @@ Profiling.Indexing.Program - + + False ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll diff --git a/src/Profiling/Profiling.Indexing/Tester.cs b/src/Profiling/Profiling.Indexing/Tester.cs index 59e07eddc31..32167debf25 100644 --- a/src/Profiling/Profiling.Indexing/Tester.cs +++ b/src/Profiling/Profiling.Indexing/Tester.cs @@ -28,7 +28,7 @@ protected void Connect(ElasticClient client, ConnectionSettings settings) if (!result.IsValid) { Console.Error.WriteLine("Could not connect to {0}:\r\n{1}", - result.ConnectionStatus.RequestUrl, result.ConnectionStatus.Error.OriginalException.Message); + result.ConnectionStatus.RequestUrl, result.ConnectionStatus); Console.Read(); } } diff --git a/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj b/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj index f66ec7c773b..d47d409fce8 100644 --- a/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj +++ b/src/Serialization/Elasticsearch.Net.JsonNET/Elasticsearch.Net.JsonNet.csproj @@ -30,7 +30,8 @@ 4 - + + False ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll diff --git a/src/Tests/Elasticsearch.Net.Integration.Yaml/Elasticsearch.Net.Integration.Yaml.csproj b/src/Tests/Elasticsearch.Net.Integration.Yaml/Elasticsearch.Net.Integration.Yaml.csproj index 9d9fc42b517..e8ef6c02e61 100644 --- a/src/Tests/Elasticsearch.Net.Integration.Yaml/Elasticsearch.Net.Integration.Yaml.csproj +++ b/src/Tests/Elasticsearch.Net.Integration.Yaml/Elasticsearch.Net.Integration.Yaml.csproj @@ -30,11 +30,13 @@ 4 - + + False ..\..\..\dep\FluentAssertions.2.2.0.0\lib\net45\FluentAssertions.dll - + + False ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll diff --git a/src/Tests/Elasticsearch.Net.Integration.Yaml/YamlTestsBase.cs b/src/Tests/Elasticsearch.Net.Integration.Yaml/YamlTestsBase.cs index e4a99daca5f..6f7c545499c 100644 --- a/src/Tests/Elasticsearch.Net.Integration.Yaml/YamlTestsBase.cs +++ b/src/Tests/Elasticsearch.Net.Integration.Yaml/YamlTestsBase.cs @@ -3,12 +3,9 @@ using System.Collections.Generic; using System.Diagnostics; using System.Linq; -using System.Net; -using System.Runtime.Remoting.Channels; using System.Text; using System.Text.RegularExpressions; using Elasticsearch.Net.Connection; -using Elasticsearch.Net.Connection.HttpClient; using Elasticsearch.Net.JsonNet; using Newtonsoft.Json.Linq; using NUnit.Framework; @@ -21,7 +18,7 @@ public class YamlTestsBase protected static readonly Version _versionNumber; protected object _body; - protected ElasticsearchResponse _status; + protected IElasticsearchResponse _status; protected dynamic _response; protected static ElasticsearchResponse _x; @@ -32,7 +29,7 @@ static YamlTestsBase() if (Process.GetProcessesByName("fiddler").Any()) host = "ipv4.fiddler"; var uri = new Uri("http://"+host+":9200/"); - var settings = new ConnectionConfiguration(uri).UsePrettyResponses(); + var settings = new ConnectionConfiguration(uri).ExposeRawResponse(); var jsonNetSerializer = new ElasticsearchJsonNetSerializer(); @@ -48,7 +45,7 @@ public YamlTestsBase() _client.IndicesDelete("*"); } - protected void Do(Func> action, string shouldCatch = null) + protected void Do(Func action, string shouldCatch = null) { try { @@ -62,19 +59,16 @@ protected void Do(Func> action, string } if (shouldCatch == "missing") { - Assert.NotNull(this._status.Error, "call specified missing is expected"); - Assert.AreEqual(this._status.Error.HttpStatusCode,HttpStatusCode.NotFound, "call specified missing (404) is expected"); + Assert.AreEqual(this._status.HttpStatusCode, 404, "call specified missing (404) is expected"); } else if (shouldCatch == "conflict") { - Assert.NotNull(this._status.Error, "call specified conflict is expected"); - Assert.AreEqual(this._status.Error.HttpStatusCode,HttpStatusCode.Conflict, "call specified conflict (409) is expected"); + Assert.AreEqual(this._status.HttpStatusCode, 409, "call specified conflict (409) is expected"); } else if (shouldCatch == "forbidden") { - Assert.NotNull(this._status.Error, "call specified forbidden is expected"); - Assert.AreEqual(this._status.Error.HttpStatusCode,HttpStatusCode.Forbidden, "call specified conflict (403) is expected"); + Assert.AreEqual(this._status.HttpStatusCode, 403, "call specified conflict (403) is expected"); } else if (shouldCatch != null && shouldCatch.StartsWith("/")) @@ -83,7 +77,11 @@ protected void Do(Func> action, string Assert.IsTrue(Regex.IsMatch(Encoding.UTF8.GetString(this._status.ResponseRaw), re), "response does not match regex: " + shouldCatch); } - this._response = this._status.Response; + if (this._status is ElasticsearchResponse) + this._response = (this._status as ElasticsearchResponse).Response; + + if (this._status is ElasticsearchResponse) + this._response = (this._status as ElasticsearchResponse).Response; } protected void Skip(string version, string reason) @@ -108,9 +106,9 @@ protected void IsTrue(object o) if (o is IElasticsearchResponse) { var c = o as IElasticsearchResponse; - if (c.RequestMethod == "HEAD" && c.Error != null) + if (c.RequestMethod == "HEAD" && !c.Success) { - Assert.Fail("HEAD request returned status:" + c.Error.HttpStatusCode); + Assert.Fail("HEAD request returned status:" + c.HttpStatusCode); } else if (c.RequestMethod == "HEAD") return; } @@ -160,10 +158,10 @@ protected void IsFalse(object o) if (o is IElasticsearchResponse) { var c = o as IElasticsearchResponse; - if (c.RequestMethod == "HEAD" && c.Error == null) + if (c.RequestMethod == "HEAD" && c.Success) { Assert.Fail("HEAD request did not return error status but:" - + c.Error.HttpStatusCode); + + c.HttpStatusCode); } else if (c.RequestMethod == "HEAD") return; } @@ -227,6 +225,7 @@ private static object Unbox(object o) if (o is JArray) o = ((JArray) o).ToObject(); if (o is JObject) o = ((JToken) o).ToObject>(); if (o is ElasticsearchResponse) o = ((ElasticsearchResponse)o).Response; + if (o is ElasticsearchResponse) o = ((ElasticsearchResponse)o).Response; return o; } @@ -322,11 +321,7 @@ protected void IsMatch(object o, object value) else if (o is object[] || o is IList) { var oo = (o as object[]) ?? (o as IList); - var json = _client.Serializer.Serialize(value); - var otherJson = _client.Serializer.Serialize(oo); - var nJson = JArray.Parse(Encoding.UTF8.GetString(json)).ToString(); - var nOtherJson = JArray.Parse(Encoding.UTF8.GetString(otherJson)).ToString(); - Assert.AreEqual(nJson, nOtherJson); + SerializedArrayJsonEquals(value, oo); } else if (o is IDictionary) { @@ -338,13 +333,35 @@ protected void IsMatch(object o, object value) x => x.Name, x => (x.GetGetMethod().Invoke(value, null) ?? "")); - var equals = DynamicDictionary.Create(d) - .SequenceEqual(dd); + var ds = new SortedDictionary(d); + var dds = new SortedDictionary(dd); + + var equals = DynamicDictionary.Create(ds).SequenceEqual(dds) + || SerializedJsonEquals(dd,dds); Assert.True(equals, "response did not match expected return"); } else Assert.Fail(message); } + + private static void SerializedArrayJsonEquals(object value, object oo) + { + var json = _client.Serializer.Serialize(value); + var otherJson = _client.Serializer.Serialize(oo); + var nJson = JArray.Parse(Encoding.UTF8.GetString(json)).ToString(); + var nOtherJson = JArray.Parse(Encoding.UTF8.GetString(otherJson)).ToString(); + Assert.AreEqual(nJson, nOtherJson); + } + + private static bool SerializedJsonEquals(object value, object oo) + { + var json = _client.Serializer.Serialize(value); + var otherJson = _client.Serializer.Serialize(oo); + var nJson = JObject.Parse(Encoding.UTF8.GetString(json)).ToString(); + var nOtherJson = JObject.Parse(Encoding.UTF8.GetString(otherJson)).ToString(); + Assert.AreEqual(nJson, nOtherJson); + return true; + } } diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/ConcurrencyTests.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/ConcurrencyTests.cs index 0c4d1d31331..61233af8705 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/ConcurrencyTests.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/ConcurrencyTests.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Net; using System.Runtime.InteropServices; @@ -129,23 +130,15 @@ public ConcurrencyTestConnection(IConnectionConfigurationValues settings) { } - public override bool Ping(Uri uri) - { - return true; - } - - public override IList Sniff(Uri uri) - { - return _rnd.Next(1, 11) % 3 == 0 ? _uris : _uris2; - } + - public override ElasticsearchResponse GetSync(Uri uri, object deserializationState = null) + public override ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration requestConfigurationOverrides = null) { var statusCode = _rnd.Next(1, 9) % 3 == 0 ? 503 : 200; if (uri.Port == 9202) statusCode = 200; - return ElasticsearchResponse.Create(this._ConnectionSettings, statusCode, "GET", "/", null); + return ElasticsearchResponse.Create(this._ConnectionSettings, statusCode, "GET", "/", null); } } diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/RetryTests.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/RetryTests.cs index edd02abb503..8f4c6ac8f9b 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/RetryTests.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/RetryTests.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -56,8 +57,8 @@ public async void ThrowsOutOfNodesException_AndRetriesTheSpecifiedTimes_Async() var getCall = FakeCalls.GetCall(fake); //return a started task that throws - Func>> badTask = () => { throw new Exception(); }; - var t = new Task>>(badTask); + Func> badTask = () => { throw new Exception(); }; + var t = new Task>(badTask); t.Start(); getCall.Returns(t); @@ -68,11 +69,7 @@ public async void ThrowsOutOfNodesException_AndRetriesTheSpecifiedTimes_Async() { var result = await client.InfoAsync(); } - catch (AggregateException ae) - { - Assert.AreEqual(typeof(MaxRetryException), ae.InnerException.GetType()); - } - catch (Exception e) + catch (MaxRetryException e) { Assert.AreEqual(typeof(MaxRetryException), e.GetType()); } @@ -107,8 +104,9 @@ public async void ShouldNotRetryOn400_Async() fake.Provide(_connectionConfig); FakeCalls.ProvideDefaultTransport(fake); - var getCall = FakeCalls.GetCall(fake); - getCall.Returns(Task.FromResult(FakeResponse.Any(_connectionConfig, 400))); + var getCall = FakeCalls.GetCall(fake); + var task = Task.FromResult(FakeResponse.Any(_connectionConfig, 400)); + getCall.Returns(task); var client = fake.Resolve(); @@ -190,11 +188,7 @@ public async void ShouldRetryOn503_Async() { var result = await client.InfoAsync(); } - catch (AggregateException e) - { - Assert.AreEqual(e.InnerException.GetType(), typeof(MaxRetryException)); - } - catch (Exception e) + catch (MaxRetryException e) { Assert.AreEqual(e.GetType(), typeof(MaxRetryException)); } diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs index 37bf67ead06..a4bb57d8c69 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SkipDeadNodesTests.cs @@ -49,10 +49,10 @@ public void DeadNodesAreNotVisited_AndPingedAppropiately() ); var seenNodes = new List(); - getCall.Invokes((Uri u, object o) => seenNodes.Add(u)); + getCall.Invokes((Uri u, IRequestConnectionConfiguration o) => seenNodes.Add(u)); - var pingCall = FakeCalls.Ping(fake); - pingCall.Returns(true); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(ok); var client1 = fake.Resolve(); client1.Info(); //info call 1 @@ -100,10 +100,10 @@ public async void DeadNodesAreNotVisited_AndPingedAppropiately_Async() ); var seenNodes = new List(); - getCall.Invokes((Uri u, object o) => seenNodes.Add(u)); + getCall.Invokes((Uri u, IRequestConnectionConfiguration o) => seenNodes.Add(u)); - var pingCall = FakeCalls.Ping(fake); - pingCall.Returns(true); + var pingCall = FakeCalls.PingAtConnectionLevelAsync(fake); + pingCall.Returns(ok); var client1 = fake.Resolve(); await client1.InfoAsync(); //info call 1 @@ -126,10 +126,12 @@ public async void DeadNodesAreNotVisited_AndPingedAppropiately_Async() private static IConnection ProvideConnection(AutoFake fake, ConnectionConfiguration config) { fake.Provide(config); - fake.Provide(fake.Resolve()); + var param = new TypedParameter(typeof(IDateTimeProvider), null); + var transport = fake.Provide(param); var connection = fake.Resolve(); return connection; } + private static ConnectionConfiguration ProvideConfiguration(IDateTimeProvider dateTimeProvider) { var connectionPool = new StaticConnectionPool(new[] diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SniffingConnectionPoolTests.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SniffingConnectionPoolTests.cs index 6a17956f13a..f2b592373ce 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SniffingConnectionPoolTests.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/SniffingConnectionPoolTests.cs @@ -9,9 +9,11 @@ using Elasticsearch.Net.ConnectionPool; using Elasticsearch.Net.Exceptions; using Elasticsearch.Net.Providers; +using Elasticsearch.Net.Serialization; using Elasticsearch.Net.Tests.Unit.Stubs; using FakeItEasy; using FakeItEasy.Configuration; +using FakeItEasy.Core; using FluentAssertions; using NUnit.Framework; @@ -27,18 +29,18 @@ public void SniffOnStartupCallsSniffOnlyOnce() { //It's recommended to only have on instance of your connection pool //Be sure to register it as Singleton in your IOC - var connectionPool = new SniffingConnectionPool(new[] { new Uri("http://localhost:9200") }); + var uris = new[] { new Uri("http://localhost:9200") }; + var connectionPool = new SniffingConnectionPool(uris); var config = new ConnectionConfiguration(connectionPool) + .DisablePing() .SniffOnStartup(); fake.Provide(config); - var param = new TypedParameter(typeof(IDateTimeProvider), null); - fake.Provide(param); - var connection = fake.Resolve(); - var sniffCall = A.CallTo(() => connection.Sniff(A._)); - var client1 = fake.Resolve(); - var client2 = fake.Resolve(); - var client3 = fake.Resolve(); - var client4 = fake.Resolve(); + var sniffCall = FakeCalls.Sniff(fake, config, uris); + var transport = FakeCalls.ProvideDefaultTransport(fake); + var client1 = new ElasticsearchClient(config, transport: transport); + var client2 = new ElasticsearchClient(config, transport: transport); + var client3 = new ElasticsearchClient(config, transport: transport); + var client4 = new ElasticsearchClient(config, transport: transport); sniffCall.MustHaveHappened(Repeated.Exactly.Once); } @@ -61,13 +63,14 @@ public void SniffIsCalledAfterItHasGoneOutOfDate() DateTime.UtcNow.AddMinutes(20), //set now after sniff 4 DateTime.UtcNow.AddMinutes(22) //info call 5 ); - var connectionPool = new SniffingConnectionPool(new[] { new Uri("http://localhost:9200") }); + var uris = new[] { new Uri("http://localhost:9200") }; + var connectionPool = new SniffingConnectionPool(uris); var config = new ConnectionConfiguration(connectionPool) .SniffLifeSpan(TimeSpan.FromMinutes(4)); fake.Provide(config); - fake.Provide(fake.Resolve()); + var transport = FakeCalls.ProvideDefaultTransport(fake, dateTimeProvider); var connection = fake.Resolve(); - var sniffCall = A.CallTo(() => connection.Sniff(A._)); + var sniffCall = FakeCalls.Sniff(fake, config, uris); var getCall = FakeCalls.GetSyncCall(fake); getCall.Returns(FakeResponse.Ok(config)); @@ -81,8 +84,6 @@ public void SniffIsCalledAfterItHasGoneOutOfDate() sniffCall.MustHaveHappened(Repeated.Exactly.Twice); nowCall.MustHaveHappened(Repeated.Exactly.Times(8)); - - //var nowCall = A.CallTo(() => fake.Resolve().Sniff(A._, A._)); } } @@ -102,13 +103,14 @@ public void SniffIsCalledAfterItHasGoneOutOfDate_NotWhenItSeesA503() DateTime.UtcNow.AddMinutes(10), //info call 4 DateTime.UtcNow.AddMinutes(12) //info call 5 ); - var connectionPool = new SniffingConnectionPool(new[] { new Uri("http://localhost:9200") }); + var uris = new[] { new Uri("http://localhost:9200") }; + var connectionPool = new SniffingConnectionPool(uris); var config = new ConnectionConfiguration(connectionPool) - .SniffLifeSpan(TimeSpan.FromMinutes(4)); + .SniffLifeSpan(TimeSpan.FromMinutes(4)) + .ExposeRawResponse(); fake.Provide(config); - fake.Provide(fake.Resolve()); - var connection = fake.Resolve(); - var sniffCall = A.CallTo(() => connection.Sniff(A._)); + var transport = FakeCalls.ProvideDefaultTransport(fake, dateTimeProvider); + var sniffCall = FakeCalls.Sniff(fake, config, uris); var getCall = FakeCalls.GetSyncCall(fake); getCall.ReturnsNextFromSequence( FakeResponse.Ok(config), //info 1 @@ -141,14 +143,14 @@ public void SniffOnConnectionFaultCausesSniffOn503() var dateTimeProvider = fake.Resolve(); var nowCall = A.CallTo(()=>dateTimeProvider.Now()); nowCall.Returns(DateTime.UtcNow); - - var connectionPool = new SniffingConnectionPool(new[] { new Uri("http://localhost:9200") }); + var nodes = new[] { new Uri("http://localhost:9200") }; + var connectionPool = new SniffingConnectionPool(nodes); var config = new ConnectionConfiguration(connectionPool) .SniffOnConnectionFault(); fake.Provide(config); - fake.Provide(fake.Resolve()); + var transport = FakeCalls.ProvideDefaultTransport(fake, dateTimeProvider); var connection = fake.Resolve(); - var sniffCall = A.CallTo(() => connection.Sniff(A._)); + var sniffCall = FakeCalls.Sniff(fake, config, nodes); var getCall = FakeCalls.GetSyncCall(fake); getCall.ReturnsNextFromSequence( @@ -169,7 +171,6 @@ public void SniffOnConnectionFaultCausesSniffOn503() sniffCall.MustHaveHappened(Repeated.Exactly.Once); nowCall.MustHaveHappened(Repeated.Exactly.Times(7)); - //var nowCall = A.CallTo(() => fake.Resolve().Sniff(A._, A._)); } } [Test] @@ -189,9 +190,11 @@ public void HostsReturnedBySniffAreVisited() var config = new ConnectionConfiguration(connectionPool) .SniffOnConnectionFault(); fake.Provide(config); - var connection = fake.Resolve(); - var sniffCall = A.CallTo(() => connection.Sniff(A._)); - sniffCall.Returns(new List() + FakeCalls.ProvideDefaultTransport(fake); + FakeCalls.PingAtConnectionLevel(fake) + .Returns(FakeResponse.Ok(config)); + + var sniffCall = FakeCalls.Sniff(fake, config, new List() { new Uri("http://localhost:9204"), new Uri("http://localhost:9203"), @@ -199,9 +202,12 @@ public void HostsReturnedBySniffAreVisited() new Uri("http://localhost:9201") }); + var connection = fake.Resolve(); var seenNodes = new List(); //var getCall = FakeResponse.GetSyncCall(fake); - var getCall = A.CallTo(() => connection.GetSync>(A._, A._)); + var getCall = A.CallTo(() => connection.GetSync( + A.That.Not.Matches(u=>u.AbsolutePath.StartsWith("/_nodes")), + A._)); getCall.ReturnsNextFromSequence( FakeResponse.Ok(config), //info 1 FakeResponse.Bad(config), //info 2 @@ -214,9 +220,8 @@ public void HostsReturnedBySniffAreVisited() FakeResponse.Ok(config), //info 8 FakeResponse.Ok(config) //info 9 ); - getCall.Invokes((Uri u, object o) => seenNodes.Add(u)); + getCall.Invokes((Uri u, IRequestConnectionConfiguration o) => seenNodes.Add(u)); - fake.Provide(fake.Resolve()); var client1 = fake.Resolve(); client1.Info(); //info call 1 client1.Info(); //info call 2 @@ -233,13 +238,11 @@ public void HostsReturnedBySniffAreVisited() seenNodes[0].Port.Should().Be(9200); seenNodes[1].Port.Should().Be(9201); //after sniff - seenNodes[2].Port.Should().Be(9202); - seenNodes[3].Port.Should().Be(9204, string.Join(",", seenNodes.Select(n=>n.Port))); + seenNodes[2].Port.Should().Be(9202, string.Join(",", seenNodes.Select(n=>n.Port))); + seenNodes[3].Port.Should().Be(9204); seenNodes[4].Port.Should().Be(9203); seenNodes[5].Port.Should().Be(9202); seenNodes[6].Port.Should().Be(9201); - - //var nowCall = A.CallTo(() => fake.Resolve().Sniff(A._, A._)); } } } diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/StaticConnectionPoolRetryTests.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/StaticConnectionPoolRetryTests.cs index e6a64e9bbb8..09b864ce6c4 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/StaticConnectionPoolRetryTests.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Connection/StaticConnectionPoolRetryTests.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Net; using System.Runtime.InteropServices; @@ -31,18 +32,25 @@ public class StaticConnectionPoolRetryTests private static readonly int _retries = _uris.Count() - 1; private readonly StaticConnectionPool _connectionPool; private readonly ConnectionConfiguration _config; + private ElasticsearchResponse _ok; + private ElasticsearchResponse _bad; + public StaticConnectionPoolRetryTests() { _connectionPool = new StaticConnectionPool(_uris); _config = new ConnectionConfiguration(_connectionPool); + + _ok = FakeResponse.Ok(_config); + _bad = FakeResponse.Bad(_config); } - private void ProvideTransport(AutoFake fake) + private ITransport ProvideTransport(AutoFake fake) { var param = new TypedParameter(typeof(IDateTimeProvider), null); - fake.Provide(param); + return fake.Provide(param); } + [Test] public void ThrowsOutOfNodesException_AndRetriesTheSpecifiedTimes() { @@ -59,8 +67,8 @@ public void ThrowsOutOfNodesException_AndRetriesTheSpecifiedTimes() //an exception var getCall = FakeCalls.GetSyncCall(fake); getCall.Throws(); - var pingCall = FakeCalls.Ping(fake); - pingCall.Returns(true); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(_ok); //create a real ElasticsearchClient with it unspecified dependencies //as fakes @@ -126,12 +134,12 @@ public void HardRetryLimitTakesPrecedenceOverNumberOfNodes() .MaximumRetries(7) ); var getCall = A.CallTo(() => - fake.Resolve().GetSync>(A._, A._)); + fake.Resolve().GetSync(A._, A._)); getCall.Throws(); - var pingCall = A.CallTo(() => fake.Resolve().Ping(A._)); - pingCall.Returns(true); - this.ProvideTransport(fake); + var transport = this.ProvideTransport(fake); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(_ok); var client = fake.Resolve(); @@ -157,19 +165,18 @@ public void AConnectionMustBeMadeEvenIfAllNodesAreDead() .MaximumRetries(4) ); //set up our GET to / to return 4 503's followed by a 200 - var getCall = A.CallTo(() => - fake.Resolve().GetSync>(A._, A._)); + var getCall = A.CallTo(() => fake.Resolve().GetSync(A._, A._)); getCall.ReturnsNextFromSequence( - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 200, "GET", "/", null) + _bad, + _bad, + _bad, + _bad, + _ok ); - var pingCall = A.CallTo(() => fake.Resolve().Ping(A._)); - pingCall.Returns(true); + var transport = this.ProvideTransport(fake); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(_ok); //setup client - this.ProvideTransport(fake); var client = fake.Resolve(); //Do not throw because by miracle the 4th retry manages to give back a 200 @@ -215,15 +222,12 @@ public void AllNodesWillBeMarkedDead() call.Returns(DateTime.UtcNow.AddSeconds(60)); //When we do a GET on / we always recieve a 503 - var getCall = A.CallTo(() => - fake.Resolve().GetSync>(A._, A._)); - getCall.Returns( - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null) - ); + var getCall = A.CallTo(() => fake.Resolve().GetSync(A._, A._)); + getCall.Returns(_bad); - var pingCall = A.CallTo(() => fake.Resolve().Ping(A._)); - pingCall.Returns(true); - this.ProvideTransport(fake); + var transport = this.ProvideTransport(fake); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(_ok); var client = fake.Resolve(); //Since we always get a 503 we should see an out of nodes exception @@ -263,21 +267,19 @@ public void IfAConnectionComesBackToLifeOnItsOwnItShouldBeMarked() //fake getsync handler that return a 503 4 times and then a 200 //this will cause all 4 nodes to be marked dead on the first client call - var getCall = A.CallTo(() => - fake.Resolve().GetSync>(A._, A._)); + var getCall = FakeCalls.GetSyncCall(fake); getCall.ReturnsNextFromSequence( - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 503, "GET", "/", null), - ElasticsearchResponse>.Create(_config, 200, "GET", "/", null) + _bad, + _bad, + _bad, + _bad, + _ok ); - var pingCall = A.CallTo(() => fake.Resolve().Ping(A._)); - pingCall.Returns(true); - - //provide a transport with all the dependencies resolved - this.ProvideTransport(fake); + var transport = this.ProvideTransport(fake); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(_ok); + //instantiate connection with faked dependencies var client = fake.Resolve(); @@ -342,11 +344,11 @@ public void IfAllButOneConnectionDiesSubsequentRequestsMustUseTheOneAliveConnect FakeResponse.Ok(config), FakeResponse.Ok(config) ); - var pingCall = A.CallTo(() => fake.Resolve().Ping(A._)); - pingCall.Returns(true); - //provide a transport with all the dependencies resolved - this.ProvideTransport(fake); + var transport = this.ProvideTransport(fake); + var pingCall = FakeCalls.PingAtConnectionLevel(fake); + pingCall.Returns(_ok); + //instantiate connection with faked dependencies var client = fake.Resolve(); diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Elasticsearch.Net.Tests.Unit.csproj b/src/Tests/Elasticsearch.Net.Tests.Unit/Elasticsearch.Net.Tests.Unit.csproj index 7e8daf586e6..7830fb40a0f 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Elasticsearch.Net.Tests.Unit.csproj +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Elasticsearch.Net.Tests.Unit.csproj @@ -30,18 +30,20 @@ 4 - - ..\..\..\dep\Autofac.3.2.0\lib\net40\Autofac.dll + + False + ..\..\..\dep\Autofac.3.3.1\lib\net40\Autofac.dll False - ..\..\..\dep\Autofac.Extras.FakeItEasy.3.0.1\lib\net40\Autofac.Extras.FakeItEasy.dll + ..\..\..\dep\Autofac.Extras.FakeItEasy.3.0.2\lib\net40\Autofac.Extras.FakeItEasy.dll False ..\..\..\dep\FakeItEasy.1.18.0\lib\net40\FakeItEasy.dll - + + False ..\..\..\dep\FluentAssertions.2.2.0.0\lib\net45\FluentAssertions.dll diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeCalls.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeCalls.cs index bc4485a2200..0f12aada3c8 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeCalls.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeCalls.cs @@ -1,11 +1,16 @@ using System; using System.Collections; using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Linq.Expressions; +using System.Text; using System.Threading.Tasks; using Autofac; using Autofac.Extras.FakeItEasy; using Elasticsearch.Net.Connection; using Elasticsearch.Net.Providers; +using Elasticsearch.Net.Serialization; using FakeItEasy; using FakeItEasy.Configuration; @@ -13,26 +18,97 @@ namespace Elasticsearch.Net.Tests.Unit.Stubs { public static class FakeCalls { - public static IReturnValueConfiguration>> GetSyncCall(AutoFake fake) + public static IReturnValueConfiguration> GetSyncCall(AutoFake fake) { - return A.CallTo(() => - fake.Resolve().GetSync>(A._, null)); + return A.CallTo(() => + fake.Resolve().GetSync(A.That.Not.Matches(IsSniffUrl()), null)); } - public static IReturnValueArgumentValidationConfiguration>>> GetCall(AutoFake fake) + public static IReturnValueArgumentValidationConfiguration>> GetCall(AutoFake fake) { - return A.CallTo(() => - fake.Resolve().Get>(A._, A._)); + return A.CallTo(() => fake.Resolve().Get(A.That.Not.Matches(IsSniffUrl()), null)); } + + public static IReturnValueConfiguration> PingAtConnectionLevel(AutoFake fake) + { + return A.CallTo(() => fake.Resolve().HeadSync( + A.That.Matches(IsRoot()), A._)); + } + + - public static IReturnValueArgumentValidationConfiguration Ping(AutoFake fake) + public static IReturnValueConfiguration>> PingAtConnectionLevelAsync(AutoFake fake) { - return A.CallTo(() => fake.Resolve().Ping(A._)); + return A.CallTo(() => fake.Resolve().Head( + A.That.Matches(IsRoot()), A._)); + } + + public static IReturnValueConfiguration> Sniff( + AutoFake fake, + IConnectionConfigurationValues configurationValues = null, + IList nodes = null) + { + var sniffCall = A.CallTo(() => fake.Resolve().GetSync( + A.That.Matches(IsSniffUrl()), + A._)); + if (nodes == null) return sniffCall; + sniffCall.ReturnsLazily(()=> + { + + var stream = SniffResponse(nodes); + var response = FakeResponse.Ok(configurationValues, "GET", "/_nodes/_all/clear", stream); + return response; + }); + + return sniffCall; } - public static ITransport ProvideDefaultTransport(AutoFake fake) + private static Expression> IsSniffUrl() + { + return u=>u.AbsolutePath.StartsWith("/_nodes/_all"); + } + + /// + /// AbsolutePath == "" on .NET 3.5 but "/" thereafter. + /// + /// + private static Expression> IsRoot() { - var param = new TypedParameter(typeof(IDateTimeProvider), null); - return fake.Provide(param); + return u=>u.AbsolutePath == "/" || u.AbsolutePath == ""; + } + public static IReturnValueConfiguration>> SniffAsync( + AutoFake fake, + IConnectionConfigurationValues configurationValues = null, + IList nodes = null + ) + { + var sniffCall = A.CallTo(() => fake.Resolve().Get( + A.That.Matches(IsSniffUrl()), + A._)); + if (nodes == null) return sniffCall; + var stream = SniffResponse(nodes); + var response = FakeResponse.Ok(configurationValues, "GET", "/_nodes/_all/clear", stream); + sniffCall.Returns(Task.FromResult(response)); + return sniffCall; + } + + + + public static ITransport ProvideDefaultTransport(AutoFake fake, IDateTimeProvider dateTimeProvider = null) + { + var param = new TypedParameter(typeof(IDateTimeProvider), dateTimeProvider); + var serializerParam = new TypedParameter(typeof(IElasticsearchSerializer), null); + return fake.Provide(param, serializerParam); + } + + private static readonly string SniffFormat = @" {{ ""cluster_name"" : ""insert_marvel_character"", ""nodes"" : {{ {0} }} }}"; + private static readonly string NodeFormat = @" ""{0}"" : {{ ""name"" : ""node_{1}"", ""http_address"" : ""inet[/{2}]"" }}"; + private static Stream SniffResponse(IList nodes) + { + var nodesFormatted = nodes + .Select((n, i)=> string.Format(NodeFormat, Guid.NewGuid().ToString(), i, n.Host + ":" + n.Port)); + var sniffFormatted = string.Format(SniffFormat, String.Join(",", nodesFormatted)); + return new MemoryStream(Encoding.UTF8.GetBytes(sniffFormatted)); + } } diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeResponse.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeResponse.cs index 843d01de08e..7b0a04e0584 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeResponse.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/FakeResponse.cs @@ -1,32 +1,34 @@ using System.Collections.Generic; +using System.IO; using Elasticsearch.Net.Connection; namespace Elasticsearch.Net.Tests.Unit.Stubs { public static class FakeResponse { - public static ElasticsearchResponse> Ok( + public static ElasticsearchResponse Ok( IConnectionConfigurationValues config, string method = "GET", - string path = "/") + string path = "/", + Stream response = null) { - return ElasticsearchResponse>.Create(config, 200, method, path, null); + return ElasticsearchResponse.Create(config, 200, method, path, null, response); } - public static ElasticsearchResponse> Bad( + public static ElasticsearchResponse Bad( IConnectionConfigurationValues config, string method = "GET", string path = "/") { - return ElasticsearchResponse>.Create(config, 503, method, path, null); + return ElasticsearchResponse.Create(config, 503, method, path, null); } - public static ElasticsearchResponse> Any( + public static ElasticsearchResponse Any( IConnectionConfigurationValues config, int statusCode, string method = "GET", string path = "/") { - return ElasticsearchResponse>.Create(config, statusCode, method, path, null); + return ElasticsearchResponse.Create(config, statusCode, method, path, null); } } } \ No newline at end of file diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs b/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs index 4d7b17e6321..671b65bbc9b 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/Stubs/NoopConnection.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.IO; using System.Linq; using System.Text; using System.Threading.Tasks; @@ -19,12 +20,12 @@ public virtual void Observe(Uri uri) { } public interface IResponseGenerator { - ElasticsearchResponse Create(); + ElasticsearchResponse Create(); } public class ResponseGenerator : IResponseGenerator { - public virtual ElasticsearchResponse Create() + public virtual ElasticsearchResponse Create() { return null; } @@ -47,91 +48,81 @@ IConnectionConfigurationValues configValues } - public virtual Task> Get(Uri uri, object deserializationState = null) + public virtual Task> Get(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { - return DoAsyncRequest(uri); + return DoAsyncRequest(uri); } - public virtual ElasticsearchResponse GetSync(Uri uri, object deserializationState = null) + public virtual ElasticsearchResponse GetSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return _responseGenerator.Create(); + return _responseGenerator.Create(); } - public virtual Task> Head(Uri uri, object deserializationState = null) + public virtual Task> Head(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); + return Task.FromResult(_responseGenerator.Create()); } - public virtual ElasticsearchResponse HeadSync(Uri uri, object deserializationState = null) + public virtual ElasticsearchResponse HeadSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return _responseGenerator.Create(); + return _responseGenerator.Create(); } - public virtual Task> Post(Uri uri, byte[] data, object deserializationState = null) + public virtual Task> Post(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); + return Task.FromResult(_responseGenerator.Create()); } - public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data, object deserializationState = null) + public virtual ElasticsearchResponse PostSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return _responseGenerator.Create(); + return _responseGenerator.Create(); } - public virtual Task> Put(Uri uri, byte[] data, object deserializationState = null) + public virtual Task> Put(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); + return Task.FromResult(_responseGenerator.Create()); } - public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data, object deserializationState = null) + public virtual ElasticsearchResponse PutSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return _responseGenerator.Create(); + return _responseGenerator.Create(); } - public virtual Task> Delete(Uri uri, object deserializationState = null) + public virtual Task> Delete(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); + return Task.FromResult(_responseGenerator.Create()); } - public virtual ElasticsearchResponse DeleteSync(Uri uri, object deserializationState = null) + public virtual ElasticsearchResponse DeleteSync(Uri uri, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return _responseGenerator.Create(); + return _responseGenerator.Create(); } - public virtual Task> Delete(Uri uri, byte[] data, object deserializationState = null) + public virtual Task> Delete(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); + return Task.FromResult(_responseGenerator.Create()); } - public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data, object deserializationState = null) + public virtual ElasticsearchResponse DeleteSync(Uri uri, byte[] data, IRequestConnectionConfiguration requestSpecificConfig = null) { _uriObserver.Observe(uri); - return _responseGenerator.Create(); + return _responseGenerator.Create(); } - public bool Ping(Uri uri) - { - return true; - } - - public IList Sniff(Uri uri) - { - throw new NotImplementedException(); - } - - private Task> DoAsyncRequest(Uri uri) + private Task> DoAsyncRequest(Uri uri) { _uriObserver.Observe(uri); - return Task.FromResult(_responseGenerator.Create()); + return Task.FromResult(_responseGenerator.Create()); } } } diff --git a/src/Tests/Elasticsearch.Net.Tests.Unit/packages.config b/src/Tests/Elasticsearch.Net.Tests.Unit/packages.config index cef089808bc..a31532a474f 100644 --- a/src/Tests/Elasticsearch.Net.Tests.Unit/packages.config +++ b/src/Tests/Elasticsearch.Net.Tests.Unit/packages.config @@ -1,8 +1,7 @@  - - - + + diff --git a/src/Tests/Nest.Tests.Integration/Connection/Thrift/ThiftBugReportTests.cs b/src/Tests/Nest.Tests.Integration/Connection/Thrift/ThiftBugReportTests.cs index 1c522188f02..bfe544d9240 100644 --- a/src/Tests/Nest.Tests.Integration/Connection/Thrift/ThiftBugReportTests.cs +++ b/src/Tests/Nest.Tests.Integration/Connection/Thrift/ThiftBugReportTests.cs @@ -23,8 +23,7 @@ public void IndexExistShouldNotThrowOn404() unknownIndexResult.Exists.Should().BeFalse(); - unknownIndexResult.ConnectionStatus.Error.Should().NotBeNull(); - unknownIndexResult.ConnectionStatus.Error.HttpStatusCode.Should().Be(HttpStatusCode.NotFound); + unknownIndexResult.ConnectionStatus.HttpStatusCode.Should().Be(404); } } diff --git a/src/Tests/Nest.Tests.Integration/ConnectionTests.cs b/src/Tests/Nest.Tests.Integration/ConnectionTests.cs index 83e8d3df81f..6b73fc042d6 100644 --- a/src/Tests/Nest.Tests.Integration/ConnectionTests.cs +++ b/src/Tests/Nest.Tests.Integration/ConnectionTests.cs @@ -24,7 +24,7 @@ public void TestConnectSuccess() { var rootNodeInfo = _client.RootNodeInfo(); Assert.True(rootNodeInfo.IsValid); - Assert.Null(rootNodeInfo.ConnectionStatus.Error); + Assert.True(rootNodeInfo.ConnectionStatus.Success); } [Test] public void construct_client_with_null() @@ -81,7 +81,7 @@ public void TestConnectSuccessWithUri() var result = client.RootNodeInfo(); Assert.True(result.IsValid); - Assert.Null(result.ConnectionStatus.Error); + Assert.NotNull(result.ConnectionStatus.HttpStatusCode); } [Test] public void construct_client_with_null_uri() diff --git a/src/Tests/Nest.Tests.Integration/Core/Get/GetFullTests.cs b/src/Tests/Nest.Tests.Integration/Core/Get/GetFullTests.cs index 42e8ad2c00d..03f7553bee8 100644 --- a/src/Tests/Nest.Tests.Integration/Core/Get/GetFullTests.cs +++ b/src/Tests/Nest.Tests.Integration/Core/Get/GetFullTests.cs @@ -56,7 +56,7 @@ public void GetUsingDescriptorWithTypeAndFields() result.Fields.Should().NotBeNull(); result.Fields.FieldValues.Should().NotBeNull().And.HaveCount(4); result.Fields.FieldValue(p => p.Name).Should().BeEquivalentTo(new [] {"pyelasticsearch"}); - result.Fields.FieldValue(p => p.Id).Should().BeEquivalentTo( new []{1}); + result.Fields.FieldValue(p => p.Id).Should().BeEquivalentTo( new []{1}); result.Fields.FieldValue(p => p.DoubleValue).Should().NotBeEquivalentTo(new [] {default(double) }); } diff --git a/src/Tests/Nest.Tests.Integration/Core/Get/GetMultiTests.cs b/src/Tests/Nest.Tests.Integration/Core/Get/GetMultiTests.cs index 1d0fe823109..4988ab66512 100644 --- a/src/Tests/Nest.Tests.Integration/Core/Get/GetMultiTests.cs +++ b/src/Tests/Nest.Tests.Integration/Core/Get/GetMultiTests.cs @@ -92,7 +92,7 @@ public void GetMultiWithMetaData() var fieldSelection = personHit.FieldSelection; fieldSelection.Should().NotBeNull(); - fieldSelection.FieldValue(p=>p.Id).Should().BeEquivalentTo(new []{authorId}); + fieldSelection.FieldValue(p=>p.Id).Should().BeEquivalentTo(new []{authorId}); fieldSelection.FieldValue(p => p.FirstName) .Should().NotBeEmpty(); diff --git a/src/Tests/Nest.Tests.Integration/Core/IndexTests.cs b/src/Tests/Nest.Tests.Integration/Core/IndexTests.cs index 4c4d4206f4f..bfe70b7baf4 100644 --- a/src/Tests/Nest.Tests.Integration/Core/IndexTests.cs +++ b/src/Tests/Nest.Tests.Integration/Core/IndexTests.cs @@ -45,7 +45,41 @@ public void IndexUsingCreateFlag() // Make sure the index request failed with HTTP status 409 since document with same id already exists. Assert.False(response.OK); - Assert.AreEqual(System.Net.HttpStatusCode.Conflict, response.ConnectionStatus.Error.HttpStatusCode); + Assert.AreEqual(409, response.ConnectionStatus.HttpStatusCode); + } + + [Test] + public void IndexUsingCreateFlagOnNoRawResponseClient() + { + // Document to be indexed. + var doc = new ElasticsearchProject + { + Country = "Mozambique", + Followers = new List(), + Id = idGen.Next(), + Name = "Test Document for 'IndexDocument' Create Flag" + }; + + // Index the document + var indexResult = this._clientNoRawResponse.Index(doc, i => i.OpType(OpTypeOptions.Create)); + indexResult.IsValid.Should().BeTrue(); + + // Grab the indexed document. + var foundDoc = this._clientNoRawResponse.Source(doc.Id); + + // Check that the document was successfully indexed. + Assert.NotNull(foundDoc); + Assert.AreEqual(doc.Country, foundDoc.Country); + Assert.AreEqual(doc.Followers.Count, foundDoc.Followers.Count); + Assert.AreEqual(doc.Id, foundDoc.Id); + Assert.AreEqual(doc.Name, foundDoc.Name); + + // Now try to index the document again while using the Create Flag + var response = this._clientNoRawResponse.Index(doc, i => i.OpType(OpTypeOptions.Create)); + + // Make sure the index request failed with HTTP status 409 since document with same id already exists. + Assert.False(response.OK); + Assert.AreEqual(409, response.ConnectionStatus.HttpStatusCode); } } } diff --git a/src/Tests/Nest.Tests.Integration/ElasticsearchConfiguration.cs b/src/Tests/Nest.Tests.Integration/ElasticsearchConfiguration.cs index 55915a57888..6d86c5367d4 100644 --- a/src/Tests/Nest.Tests.Integration/ElasticsearchConfiguration.cs +++ b/src/Tests/Nest.Tests.Integration/ElasticsearchConfiguration.cs @@ -28,6 +28,7 @@ public static ConnectionSettings Settings(int? port = null) } public static readonly ElasticClient Client = new ElasticClient(Settings()); + public static readonly ElasticClient ClientNoRawResponse = new ElasticClient(Settings().ExposeRawResponse(false)); public static readonly ElasticClient ThriftClient = new ElasticClient(Settings(9500), new ThriftConnection(Settings(9500))); public static string NewUniqueIndexName() diff --git a/src/Tests/Nest.Tests.Integration/Facet/BaseFacetTestFixture.cs b/src/Tests/Nest.Tests.Integration/Facet/BaseFacetTestFixture.cs index 8de6b2ba6ed..a3260396cec 100644 --- a/src/Tests/Nest.Tests.Integration/Facet/BaseFacetTestFixture.cs +++ b/src/Tests/Nest.Tests.Integration/Facet/BaseFacetTestFixture.cs @@ -13,7 +13,7 @@ protected void TestDefaultAssertions(IQueryResponse queryR { Assert.True(queryResponse.IsValid, "response is not valid"); Assert.NotNull(queryResponse.ConnectionStatus, "connection status is null"); - Assert.Null(queryResponse.ConnectionStatus.Error, "connection status error is null"); + Assert.Null(queryResponse.ConnectionStatus.OriginalException, "exception should not be set"); Assert.True(queryResponse.Total > 0, "Query yielded no results as indicated by total returned from ES"); Assert.True(queryResponse.Documents.Any(), "documents.any() is false"); Assert.True(queryResponse.Documents.Count() > 0, "documents.count is 0"); diff --git a/src/Tests/Nest.Tests.Integration/Indices/IndicesTests.cs b/src/Tests/Nest.Tests.Integration/Indices/IndicesTests.cs index f92cb99e83e..7fb6a0ddb34 100644 --- a/src/Tests/Nest.Tests.Integration/Indices/IndicesTests.cs +++ b/src/Tests/Nest.Tests.Integration/Indices/IndicesTests.cs @@ -20,7 +20,7 @@ protected void TestDefaultAssertions(QueryResponse queryRe { Assert.True(queryResponse.IsValid); Assert.NotNull(queryResponse.ConnectionStatus); - Assert.Null(queryResponse.ConnectionStatus.Error); + Assert.Null(queryResponse.ConnectionStatus.OriginalException); Assert.True(queryResponse.Total > 0, "No hits"); Assert.True(queryResponse.Documents.Any()); Assert.True(queryResponse.Documents.Count() > 0); diff --git a/src/Tests/Nest.Tests.Integration/Indices/OpenCloseTests.cs b/src/Tests/Nest.Tests.Integration/Indices/OpenCloseTests.cs index 4ecde991260..9ed46f1acb0 100644 --- a/src/Tests/Nest.Tests.Integration/Indices/OpenCloseTests.cs +++ b/src/Tests/Nest.Tests.Integration/Indices/OpenCloseTests.cs @@ -38,8 +38,9 @@ public void CloseAndSearchAndOpenIndex() ); Assert.False(results.IsValid); - Assert.IsNotNull(results.ConnectionStatus.Error); - Assert.True(results.ConnectionStatus.Error.HttpStatusCode == System.Net.HttpStatusCode.Forbidden, results.ConnectionStatus.Error.HttpStatusCode.ToString()); + Assert.IsNotNull(results.ConnectionStatus); + var statusCode = results.ConnectionStatus.HttpStatusCode; + Assert.AreEqual(statusCode, 403); var result = results.ConnectionStatus.ResponseRaw.Utf8String(); Assert.True(result.Contains("ClusterBlockException")); Assert.True(result.Contains("index closed")); diff --git a/src/Tests/Nest.Tests.Integration/IntegrationTests.cs b/src/Tests/Nest.Tests.Integration/IntegrationTests.cs index 7ab238d03f5..696e94b273c 100644 --- a/src/Tests/Nest.Tests.Integration/IntegrationTests.cs +++ b/src/Tests/Nest.Tests.Integration/IntegrationTests.cs @@ -14,6 +14,7 @@ namespace Nest.Tests.Integration public class IntegrationTests { protected readonly IElasticClient _client = ElasticsearchConfiguration.Client; + protected readonly IElasticClient _clientNoRawResponse = ElasticsearchConfiguration.ClientNoRawResponse; protected readonly ElasticClient _thriftClient = ElasticsearchConfiguration.ThriftClient; protected readonly IConnectionSettingsValues _settings = ElasticsearchConfiguration.Settings(); diff --git a/src/Tests/Nest.Tests.Integration/RawCalls/ReturnTypesTest.cs b/src/Tests/Nest.Tests.Integration/RawCalls/ReturnTypesTest.cs index 46a9c1e4b20..d135001dfec 100644 --- a/src/Tests/Nest.Tests.Integration/RawCalls/ReturnTypesTest.cs +++ b/src/Tests/Nest.Tests.Integration/RawCalls/ReturnTypesTest.cs @@ -10,10 +10,20 @@ namespace Nest.Tests.Integration.RawCalls [TestFixture] public class ReturnTypeTests : IntegrationTests { + private IElasticClient _clientThatDoesNotExpose; + + public ReturnTypeTests() + { + var settings = ElasticsearchConfiguration.Settings() + .ExposeRawResponse(false); + _clientThatDoesNotExpose = new ElasticClient(settings); + } + + [Test] public void StringReturn() { - var r = this._client.Raw.Info(); + var r = this._clientThatDoesNotExpose.Raw.Info(); r.Response.Should().NotBeNullOrEmpty(); r.ResponseRaw.Should().BeNull(); } @@ -21,7 +31,7 @@ public void StringReturn() [Test] public async void StringReturn_Async() { - var r = await this._client.Raw.InfoAsync(); + var r = await this._clientThatDoesNotExpose.Raw.InfoAsync(); r.Response.Should().NotBeNullOrEmpty(); r.ResponseRaw.Should().BeNull(); } @@ -29,7 +39,7 @@ public async void StringReturn_Async() [Test] public void ByteArrayReturn() { - var r = this._client.Raw.Info(); + var r = this._clientThatDoesNotExpose.Raw.Info(); r.Response.Should().NotBeNull(); r.ResponseRaw.Should().BeNull(); } @@ -37,14 +47,14 @@ public void ByteArrayReturn() [Test] public async void ByteArrayReturn_Async() { - var r = await this._client.Raw.InfoAsync(); + var r = await this._clientThatDoesNotExpose.Raw.InfoAsync(); r.Response.Should().NotBeNull(); r.ResponseRaw.Should().BeNull(); } [Test] public void VoidResponseReturn() { - var r = this._client.Raw.Info(); + var r = this._clientThatDoesNotExpose.Raw.Info(); r.Response.Should().BeNull(); r.ResponseRaw.Should().BeNull(); } diff --git a/src/Tests/Nest.Tests.Integration/Search/QueryResponseMapperTests.cs b/src/Tests/Nest.Tests.Integration/Search/QueryResponseMapperTests.cs index d198827c2ac..32dfdb8c077 100644 --- a/src/Tests/Nest.Tests.Integration/Search/QueryResponseMapperTests.cs +++ b/src/Tests/Nest.Tests.Integration/Search/QueryResponseMapperTests.cs @@ -20,7 +20,7 @@ protected void TestDefaultAssertions(IQueryResponse queryR { Assert.True(queryResponse.IsValid); Assert.NotNull(queryResponse.ConnectionStatus); - Assert.Null(queryResponse.ConnectionStatus.Error); + Assert.Null(queryResponse.ConnectionStatus.OriginalException); Assert.True(queryResponse.Total > 0, "No hits"); Assert.True(queryResponse.Documents.Any()); Assert.True(queryResponse.Documents.Count() > 0); @@ -37,9 +37,8 @@ public void BogusQuery() .QueryRaw("here be dragons") ); Assert.False(queryResults.IsValid); - var error = queryResults.ConnectionStatus.Error; - Assert.NotNull(error); - Assert.True(error.HttpStatusCode == System.Net.HttpStatusCode.BadRequest, error.HttpStatusCode.ToString()); + Assert.NotNull(queryResults.ConnectionStatus.HttpStatusCode); + Assert.AreEqual(queryResults.ConnectionStatus.HttpStatusCode, 400); } [Test] diff --git a/src/Tests/Nest.Tests.Integration/Warmers/WarmersTests.cs b/src/Tests/Nest.Tests.Integration/Warmers/WarmersTests.cs index 1c6193a2e28..e9aef301bca 100644 --- a/src/Tests/Nest.Tests.Integration/Warmers/WarmersTests.cs +++ b/src/Tests/Nest.Tests.Integration/Warmers/WarmersTests.cs @@ -132,7 +132,7 @@ public void Delete() Assert.Pass("1.0 GA has a bug that does not return a 404 for missing warmers see #5155"); warmerResponse.IsValid.Should().BeFalse(); - warmerResponse.ConnectionStatus.Error.HttpStatusCode.Should().Be(HttpStatusCode.NotFound); + warmerResponse.ConnectionStatus.HttpStatusCode.Should().Be(404); } } diff --git a/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj b/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj index af1a7082413..0a832d08d80 100644 --- a/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj +++ b/src/Tests/Nest.Tests.MockData/Nest.Tests.MockData.csproj @@ -13,7 +13,7 @@ 512 ..\ true - v4.5 + v4.0 @@ -67,8 +67,9 @@ ..\..\..\dep\AutoPoco.1.0.0.0\lib\AutoPoco.dll - - ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll + + False + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net40\Newtonsoft.Json.dll ..\..\..\dep\NUnit.2.6.3\lib\nunit.framework.dll diff --git a/src/Tests/Nest.Tests.MockData/app.config b/src/Tests/Nest.Tests.MockData/app.config index 04620c92a58..2fa98702c9d 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 5b685f75ff1..6a2d9924ef6 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/Core/Domain/Connection/ConnectionTests.cs b/src/Tests/Nest.Tests.Unit/Core/Domain/Connection/ConnectionTests.cs index 6dc920f284e..2988246e8f1 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Domain/Connection/ConnectionTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Domain/Connection/ConnectionTests.cs @@ -16,7 +16,7 @@ public TestConnection(IConnectionSettingsValues settings) public HttpWebRequest GetConnection(string path, string method) { - return base.CreateHttpWebRequest(new Uri(new Uri("http://localhost"), path), method); + return base.CreateHttpWebRequest(new Uri(new Uri("http://localhost"), path), method, null); } } diff --git a/src/Tests/Nest.Tests.Unit/Core/Validate/ValidateRequestTests.cs b/src/Tests/Nest.Tests.Unit/Core/Validate/ValidateRequestTests.cs index 64a79c1bbbf..0f8b6ce9e57 100644 --- a/src/Tests/Nest.Tests.Unit/Core/Validate/ValidateRequestTests.cs +++ b/src/Tests/Nest.Tests.Unit/Core/Validate/ValidateRequestTests.cs @@ -100,7 +100,10 @@ public void InferredForceQueryString() var status = result.ConnectionStatus; var uri = new Uri(status.RequestUrl); Assert.AreEqual("/nest_test_data/elasticsearchprojects/_validate/query", uri.AbsolutePath); - Assert.AreEqual("?source=%7B%20match_all%20%3A%20%7B%7D%20%7D", uri.Query); + + //normalize difference between .NET 4.5 and prior + var query = uri.Query.Replace("%3A", ":"); + Assert.AreEqual("?source=%7B%20match_all%20:%20%7B%7D%20%7D", query); StringAssert.AreEqualIgnoringCase("GET", 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 ae810103a5a..00955c48a34 100644 --- a/src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj +++ b/src/Tests/Nest.Tests.Unit/Nest.Tests.Unit.csproj @@ -13,7 +13,7 @@ 512 ..\ true - v4.5 + v4.0 @@ -71,18 +71,20 @@ ..\..\..\dep\AutoPoco.1.0.0.0\lib\AutoPoco.dll - + False - ..\..\..\dep\FakeItEasy.1.15.0\lib\net40\FakeItEasy.dll + ..\..\..\dep\FakeItEasy.1.18.0\lib\net40\FakeItEasy.dll - - ..\..\..\dep\FluentAssertions.2.2.0.0\lib\net45\FluentAssertions.dll + + False + ..\..\..\dep\FluentAssertions.2.2.0.0\lib\net40\FluentAssertions.dll ..\..\..\dep\Moq.4.2.1312.1622\lib\net40\Moq.dll - - ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net45\Newtonsoft.Json.dll + + False + ..\..\..\dep\Newtonsoft.Json.6.0.1\lib\net40\Newtonsoft.Json.dll ..\..\..\dep\NUnit.2.6.3\lib\nunit.framework.dll @@ -143,6 +145,7 @@ + @@ -407,6 +410,9 @@ Always + + Always + Always diff --git a/src/Tests/Nest.Tests.Unit/Search/Fields/FieldsTests.cs b/src/Tests/Nest.Tests.Unit/Search/Fields/FieldsTests.cs index bce21d4ec68..b1d2705b50b 100644 --- a/src/Tests/Nest.Tests.Unit/Search/Fields/FieldsTests.cs +++ b/src/Tests/Nest.Tests.Unit/Search/Fields/FieldsTests.cs @@ -51,6 +51,7 @@ public void FieldsSelectionIsCovariantAsWell() var classAHit = classAHits.First(); classAHit.Fields.Should().NotBeNull(); var lang = classAHit.Fields.FieldValue(p => p.Lang).FirstOrDefault(); + lang.Should().NotBeNullOrEmpty(); } diff --git a/src/Tests/Nest.Tests.Unit/Search/SearchOptions/SearchOptionTests.cs b/src/Tests/Nest.Tests.Unit/Search/SearchOptions/SearchOptionTests.cs index f50cfb7fc16..b79113fd0f0 100644 --- a/src/Tests/Nest.Tests.Unit/Search/SearchOptions/SearchOptionTests.cs +++ b/src/Tests/Nest.Tests.Unit/Search/SearchOptions/SearchOptionTests.cs @@ -117,7 +117,9 @@ public void TestExecuteOnNode() .Size(10) .ExecuteOnNode("somenode"); var result = this._client.Search(ss=>s); - StringAssert.Contains("preference=_only_node%3Asomenode", result.ConnectionStatus.RequestUrl); + //normalize difference between .NET 4.5 and prior + var url = result.ConnectionStatus.RequestUrl.Replace("%3A", ":"); + StringAssert.Contains("preference=_only_node:somenode", url); } [Test] public void TestExecuteOnPreferredNode() @@ -127,7 +129,9 @@ public void TestExecuteOnPreferredNode() .Size(10) .ExecuteOnPreferredNode("somenode"); var result = this._client.Search(ss=>s); - StringAssert.Contains("preference=_prefer_node%3Asomenode", result.ConnectionStatus.RequestUrl); + //normalize difference between .NET 4.5 and prior + var url = result.ConnectionStatus.RequestUrl.Replace("%3A", ":"); + StringAssert.Contains("preference=_prefer_node:somenode", url); } [Test] public void TestFields() diff --git a/src/Tests/Nest.Tests.Unit/app.config b/src/Tests/Nest.Tests.Unit/app.config index 8cb2ea39b1c..22ed9de871c 100644 --- a/src/Tests/Nest.Tests.Unit/app.config +++ b/src/Tests/Nest.Tests.Unit/app.config @@ -5,7 +5,7 @@
- + 9200 diff --git a/src/Tests/Nest.Tests.Unit/packages.config b/src/Tests/Nest.Tests.Unit/packages.config index c03f0318ed9..18ccb229ef7 100644 --- a/src/Tests/Nest.Tests.Unit/packages.config +++ b/src/Tests/Nest.Tests.Unit/packages.config @@ -1,9 +1,9 @@  - - + + - + \ No newline at end of file