[Rename] refactor client/rest-high-level module. (#312)
rename `org.elasticsearch.client` to `org.opensearch.client` in package names and references. Signed-off-by: Rabi Panda <adnapibar@gmail.com>
This commit is contained in:
parent
d65bccc25d
commit
4eb92c581e
|
@ -1,5 +1,5 @@
|
|||
import org.elasticsearch.gradle.test.RestIntegTestTask
|
||||
import org.elasticsearch.gradle.info.BuildParams
|
||||
import org.opensearch.gradle.test.RestIntegTestTask
|
||||
import org.opensearch.gradle.info.BuildParams
|
||||
|
||||
/*
|
||||
* Licensed to Elasticsearch under one or more contributor
|
||||
|
@ -19,14 +19,14 @@ import org.elasticsearch.gradle.info.BuildParams
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
apply plugin: 'elasticsearch.testclusters'
|
||||
apply plugin: 'elasticsearch.build'
|
||||
apply plugin: 'elasticsearch.rest-test'
|
||||
apply plugin: 'elasticsearch.publish'
|
||||
apply plugin: 'elasticsearch.rest-resources'
|
||||
apply plugin: 'opensearch.testclusters'
|
||||
apply plugin: 'opensearch.build'
|
||||
apply plugin: 'opensearch.rest-test'
|
||||
apply plugin: 'opensearch.publish'
|
||||
apply plugin: 'opensearch.rest-resources'
|
||||
|
||||
group = 'org.elasticsearch.client'
|
||||
archivesBaseName = 'elasticsearch-rest-high-level-client'
|
||||
group = 'org.opensearch.client'
|
||||
archivesBaseName = 'opensearch-rest-high-level-client'
|
||||
|
||||
restResources {
|
||||
//we need to copy the yaml spec so we can check naming (see RestHighlevelClientTests#testApiNamingConventions)
|
||||
|
@ -61,7 +61,7 @@ tasks.named('forbiddenApisMain').configure {
|
|||
|
||||
File nodeCert = file("./testnode.crt")
|
||||
File nodeTrustStore = file("./testnode.jks")
|
||||
File pkiTrustCert = file("./src/test/resources/org/elasticsearch/client/security/delegate_pki/testRootCA.crt")
|
||||
File pkiTrustCert = file("./src/test/resources/org/opensearch/client/security/delegate_pki/testRootCA.crt")
|
||||
|
||||
integTest {
|
||||
systemProperty 'tests.rest.async', 'false'
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
* not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing,
|
||||
* software distributed under the License is distributed on an
|
||||
|
@ -17,8 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.client.Cancellable;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.cluster.health.ClusterHealthRequest;
|
||||
import org.opensearch.action.admin.cluster.health.ClusterHealthResponse;
|
||||
|
@ -27,13 +29,13 @@ import org.opensearch.action.admin.cluster.settings.ClusterGetSettingsResponse;
|
|||
import org.opensearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest;
|
||||
import org.opensearch.action.admin.cluster.settings.ClusterUpdateSettingsResponse;
|
||||
import org.opensearch.action.support.master.AcknowledgedResponse;
|
||||
import org.elasticsearch.client.cluster.RemoteInfoRequest;
|
||||
import org.elasticsearch.client.cluster.RemoteInfoResponse;
|
||||
import org.elasticsearch.client.indices.ComponentTemplatesExistRequest;
|
||||
import org.elasticsearch.client.indices.DeleteComponentTemplateRequest;
|
||||
import org.elasticsearch.client.indices.GetComponentTemplatesRequest;
|
||||
import org.elasticsearch.client.indices.GetComponentTemplatesResponse;
|
||||
import org.elasticsearch.client.indices.PutComponentTemplateRequest;
|
||||
import org.opensearch.client.cluster.RemoteInfoRequest;
|
||||
import org.opensearch.client.cluster.RemoteInfoResponse;
|
||||
import org.opensearch.client.indices.ComponentTemplatesExistRequest;
|
||||
import org.opensearch.client.indices.DeleteComponentTemplateRequest;
|
||||
import org.opensearch.client.indices.GetComponentTemplatesRequest;
|
||||
import org.opensearch.client.indices.GetComponentTemplatesResponse;
|
||||
import org.opensearch.client.indices.PutComponentTemplateRequest;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
import java.io.IOException;
|
|
@ -17,21 +17,22 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpHead;
|
||||
import org.apache.http.client.methods.HttpPut;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.opensearch.action.admin.cluster.health.ClusterHealthRequest;
|
||||
import org.opensearch.action.admin.cluster.settings.ClusterGetSettingsRequest;
|
||||
import org.opensearch.action.admin.cluster.settings.ClusterUpdateSettingsRequest;
|
||||
import org.opensearch.action.support.ActiveShardCount;
|
||||
import org.elasticsearch.client.cluster.RemoteInfoRequest;
|
||||
import org.elasticsearch.client.indices.ComponentTemplatesExistRequest;
|
||||
import org.elasticsearch.client.indices.DeleteComponentTemplateRequest;
|
||||
import org.elasticsearch.client.indices.GetComponentTemplatesRequest;
|
||||
import org.elasticsearch.client.indices.PutComponentTemplateRequest;
|
||||
import org.opensearch.client.cluster.RemoteInfoRequest;
|
||||
import org.opensearch.client.indices.ComponentTemplatesExistRequest;
|
||||
import org.opensearch.client.indices.DeleteComponentTemplateRequest;
|
||||
import org.opensearch.client.indices.GetComponentTemplatesRequest;
|
||||
import org.opensearch.client.indices.PutComponentTemplateRequest;
|
||||
import org.opensearch.common.Strings;
|
||||
|
||||
import java.io.IOException;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.cluster.metadata.AliasMetadata;
|
|
@ -17,8 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.client.Cancellable;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.indices.alias.IndicesAliasesRequest;
|
||||
import org.opensearch.action.admin.indices.alias.get.GetAliasesRequest;
|
||||
|
@ -41,41 +43,41 @@ import org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateRe
|
|||
import org.opensearch.action.admin.indices.validate.query.ValidateQueryRequest;
|
||||
import org.opensearch.action.admin.indices.validate.query.ValidateQueryResponse;
|
||||
import org.opensearch.action.support.master.AcknowledgedResponse;
|
||||
import org.elasticsearch.client.indices.AnalyzeRequest;
|
||||
import org.elasticsearch.client.indices.AnalyzeResponse;
|
||||
import org.elasticsearch.client.indices.CloseIndexRequest;
|
||||
import org.elasticsearch.client.indices.CloseIndexResponse;
|
||||
import org.elasticsearch.client.indices.ComposableIndexTemplateExistRequest;
|
||||
import org.elasticsearch.client.indices.CreateDataStreamRequest;
|
||||
import org.elasticsearch.client.indices.CreateIndexRequest;
|
||||
import org.elasticsearch.client.indices.CreateIndexResponse;
|
||||
import org.elasticsearch.client.indices.DataStreamsStatsRequest;
|
||||
import org.elasticsearch.client.indices.DataStreamsStatsResponse;
|
||||
import org.elasticsearch.client.indices.DeleteAliasRequest;
|
||||
import org.elasticsearch.client.indices.DeleteComposableIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.DeleteDataStreamRequest;
|
||||
import org.elasticsearch.client.indices.GetComposableIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.GetComposableIndexTemplatesResponse;
|
||||
import org.elasticsearch.client.indices.GetDataStreamRequest;
|
||||
import org.elasticsearch.client.indices.GetDataStreamResponse;
|
||||
import org.elasticsearch.client.indices.GetFieldMappingsRequest;
|
||||
import org.elasticsearch.client.indices.GetFieldMappingsResponse;
|
||||
import org.elasticsearch.client.indices.GetIndexRequest;
|
||||
import org.elasticsearch.client.indices.GetIndexResponse;
|
||||
import org.elasticsearch.client.indices.GetIndexTemplatesRequest;
|
||||
import org.elasticsearch.client.indices.GetIndexTemplatesResponse;
|
||||
import org.elasticsearch.client.indices.GetMappingsRequest;
|
||||
import org.elasticsearch.client.indices.GetMappingsResponse;
|
||||
import org.elasticsearch.client.indices.IndexTemplatesExistRequest;
|
||||
import org.elasticsearch.client.indices.PutComposableIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.PutIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.PutMappingRequest;
|
||||
import org.elasticsearch.client.indices.ResizeRequest;
|
||||
import org.elasticsearch.client.indices.ResizeResponse;
|
||||
import org.elasticsearch.client.indices.SimulateIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.SimulateIndexTemplateResponse;
|
||||
import org.elasticsearch.client.indices.rollover.RolloverRequest;
|
||||
import org.elasticsearch.client.indices.rollover.RolloverResponse;
|
||||
import org.opensearch.client.indices.AnalyzeRequest;
|
||||
import org.opensearch.client.indices.AnalyzeResponse;
|
||||
import org.opensearch.client.indices.CloseIndexRequest;
|
||||
import org.opensearch.client.indices.CloseIndexResponse;
|
||||
import org.opensearch.client.indices.ComposableIndexTemplateExistRequest;
|
||||
import org.opensearch.client.indices.CreateDataStreamRequest;
|
||||
import org.opensearch.client.indices.CreateIndexRequest;
|
||||
import org.opensearch.client.indices.CreateIndexResponse;
|
||||
import org.opensearch.client.indices.DataStreamsStatsRequest;
|
||||
import org.opensearch.client.indices.DataStreamsStatsResponse;
|
||||
import org.opensearch.client.indices.DeleteAliasRequest;
|
||||
import org.opensearch.client.indices.DeleteComposableIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.DeleteDataStreamRequest;
|
||||
import org.opensearch.client.indices.GetComposableIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.GetComposableIndexTemplatesResponse;
|
||||
import org.opensearch.client.indices.GetDataStreamRequest;
|
||||
import org.opensearch.client.indices.GetDataStreamResponse;
|
||||
import org.opensearch.client.indices.GetFieldMappingsRequest;
|
||||
import org.opensearch.client.indices.GetFieldMappingsResponse;
|
||||
import org.opensearch.client.indices.GetIndexRequest;
|
||||
import org.opensearch.client.indices.GetIndexResponse;
|
||||
import org.opensearch.client.indices.GetIndexTemplatesRequest;
|
||||
import org.opensearch.client.indices.GetIndexTemplatesResponse;
|
||||
import org.opensearch.client.indices.GetMappingsRequest;
|
||||
import org.opensearch.client.indices.GetMappingsResponse;
|
||||
import org.opensearch.client.indices.IndexTemplatesExistRequest;
|
||||
import org.opensearch.client.indices.PutComposableIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.PutIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.PutMappingRequest;
|
||||
import org.opensearch.client.indices.ResizeRequest;
|
||||
import org.opensearch.client.indices.ResizeResponse;
|
||||
import org.opensearch.client.indices.SimulateIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.SimulateIndexTemplateResponse;
|
||||
import org.opensearch.client.indices.rollover.RolloverRequest;
|
||||
import org.opensearch.client.indices.rollover.RolloverResponse;
|
||||
import org.opensearch.rest.RestStatus;
|
||||
|
||||
import java.io.IOException;
|
||||
|
@ -544,7 +546,7 @@ public final class IndicesClient {
|
|||
* @throws IOException in case there is a problem sending the request or parsing back the response
|
||||
*/
|
||||
public GetFieldMappingsResponse getFieldMapping(GetFieldMappingsRequest getFieldMappingsRequest,
|
||||
RequestOptions options) throws IOException {
|
||||
RequestOptions options) throws IOException {
|
||||
return restHighLevelClient.performRequestAndParseEntity(getFieldMappingsRequest, IndicesRequestConverters::getFieldMapping,
|
||||
options, GetFieldMappingsResponse::fromXContent, emptySet()
|
||||
);
|
|
@ -17,13 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpHead;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.methods.HttpPut;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.opensearch.action.admin.indices.alias.IndicesAliasesRequest;
|
||||
import org.opensearch.action.admin.indices.alias.get.GetAliasesRequest;
|
||||
import org.opensearch.action.admin.indices.cache.clear.ClearIndicesCacheRequest;
|
||||
|
@ -38,28 +39,28 @@ import org.opensearch.action.admin.indices.settings.put.UpdateSettingsRequest;
|
|||
import org.opensearch.action.admin.indices.shrink.ResizeType;
|
||||
import org.opensearch.action.admin.indices.template.delete.DeleteIndexTemplateRequest;
|
||||
import org.opensearch.action.admin.indices.validate.query.ValidateQueryRequest;
|
||||
import org.elasticsearch.client.indices.AnalyzeRequest;
|
||||
import org.elasticsearch.client.indices.CloseIndexRequest;
|
||||
import org.elasticsearch.client.indices.CreateDataStreamRequest;
|
||||
import org.elasticsearch.client.indices.CreateIndexRequest;
|
||||
import org.elasticsearch.client.indices.DataStreamsStatsRequest;
|
||||
import org.elasticsearch.client.indices.GetDataStreamRequest;
|
||||
import org.elasticsearch.client.indices.DeleteAliasRequest;
|
||||
import org.elasticsearch.client.indices.DeleteComposableIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.DeleteDataStreamRequest;
|
||||
import org.elasticsearch.client.indices.GetFieldMappingsRequest;
|
||||
import org.elasticsearch.client.indices.GetIndexRequest;
|
||||
import org.elasticsearch.client.indices.GetComposableIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.GetIndexTemplatesRequest;
|
||||
import org.elasticsearch.client.indices.GetMappingsRequest;
|
||||
import org.elasticsearch.client.indices.ComposableIndexTemplateExistRequest;
|
||||
import org.elasticsearch.client.indices.IndexTemplatesExistRequest;
|
||||
import org.elasticsearch.client.indices.PutIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.PutComposableIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.PutMappingRequest;
|
||||
import org.elasticsearch.client.indices.ResizeRequest;
|
||||
import org.elasticsearch.client.indices.SimulateIndexTemplateRequest;
|
||||
import org.elasticsearch.client.indices.rollover.RolloverRequest;
|
||||
import org.opensearch.client.indices.AnalyzeRequest;
|
||||
import org.opensearch.client.indices.CloseIndexRequest;
|
||||
import org.opensearch.client.indices.CreateDataStreamRequest;
|
||||
import org.opensearch.client.indices.CreateIndexRequest;
|
||||
import org.opensearch.client.indices.DataStreamsStatsRequest;
|
||||
import org.opensearch.client.indices.GetDataStreamRequest;
|
||||
import org.opensearch.client.indices.DeleteAliasRequest;
|
||||
import org.opensearch.client.indices.DeleteComposableIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.DeleteDataStreamRequest;
|
||||
import org.opensearch.client.indices.GetFieldMappingsRequest;
|
||||
import org.opensearch.client.indices.GetIndexRequest;
|
||||
import org.opensearch.client.indices.GetComposableIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.GetIndexTemplatesRequest;
|
||||
import org.opensearch.client.indices.GetMappingsRequest;
|
||||
import org.opensearch.client.indices.ComposableIndexTemplateExistRequest;
|
||||
import org.opensearch.client.indices.IndexTemplatesExistRequest;
|
||||
import org.opensearch.client.indices.PutIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.PutComposableIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.PutMappingRequest;
|
||||
import org.opensearch.client.indices.ResizeRequest;
|
||||
import org.opensearch.client.indices.SimulateIndexTemplateRequest;
|
||||
import org.opensearch.client.indices.rollover.RolloverRequest;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
||||
import org.opensearch.common.Strings;
|
||||
|
|
@ -17,8 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.client.Cancellable;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.elasticsearch.action.ingest.DeletePipelineRequest;
|
||||
import org.elasticsearch.action.ingest.GetPipelineRequest;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
|
@ -27,6 +27,7 @@ import org.elasticsearch.action.ingest.DeletePipelineRequest;
|
|||
import org.elasticsearch.action.ingest.GetPipelineRequest;
|
||||
import org.elasticsearch.action.ingest.PutPipelineRequest;
|
||||
import org.elasticsearch.action.ingest.SimulatePipelineRequest;
|
||||
import org.elasticsearch.client.Request;
|
||||
|
||||
import java.io.IOException;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.action.support.nodes.BaseNodesResponse;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
|
@ -28,6 +28,7 @@ import org.apache.http.client.methods.HttpPut;
|
|||
import org.apache.http.entity.ContentType;
|
||||
import org.apache.http.nio.entity.NByteArrayEntity;
|
||||
import org.apache.lucene.util.BytesRef;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.opensearch.action.DocWriteRequest;
|
||||
import org.opensearch.action.admin.cluster.health.ClusterHealthRequest;
|
||||
import org.opensearch.action.admin.cluster.storedscripts.DeleteStoredScriptRequest;
|
||||
|
@ -48,12 +49,12 @@ import org.opensearch.action.support.ActiveShardCount;
|
|||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.opensearch.action.support.WriteRequest;
|
||||
import org.elasticsearch.action.update.UpdateRequest;
|
||||
import org.elasticsearch.client.core.CountRequest;
|
||||
import org.elasticsearch.client.core.GetSourceRequest;
|
||||
import org.elasticsearch.client.core.MultiTermVectorsRequest;
|
||||
import org.elasticsearch.client.core.TermVectorsRequest;
|
||||
import org.elasticsearch.client.indices.AnalyzeRequest;
|
||||
import org.elasticsearch.client.tasks.TaskId;
|
||||
import org.opensearch.client.core.CountRequest;
|
||||
import org.opensearch.client.core.GetSourceRequest;
|
||||
import org.opensearch.client.core.MultiTermVectorsRequest;
|
||||
import org.opensearch.client.core.TermVectorsRequest;
|
||||
import org.opensearch.client.indices.AnalyzeRequest;
|
||||
import org.opensearch.client.tasks.TaskId;
|
||||
import org.opensearch.cluster.health.ClusterHealthStatus;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.Priority;
|
|
@ -17,9 +17,17 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.HttpEntity;
|
||||
import org.elasticsearch.client.Cancellable;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.elasticsearch.client.Response;
|
||||
import org.elasticsearch.client.ResponseException;
|
||||
import org.elasticsearch.client.ResponseListener;
|
||||
import org.elasticsearch.client.RestClient;
|
||||
import org.elasticsearch.client.RestClientBuilder;
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.OpenSearchStatusException;
|
||||
import org.opensearch.action.ActionListener;
|
||||
|
@ -54,17 +62,17 @@ import org.elasticsearch.action.search.SearchScrollRequest;
|
|||
import org.opensearch.action.support.master.AcknowledgedResponse;
|
||||
import org.elasticsearch.action.update.UpdateRequest;
|
||||
import org.elasticsearch.action.update.UpdateResponse;
|
||||
import org.elasticsearch.client.core.CountRequest;
|
||||
import org.elasticsearch.client.core.CountResponse;
|
||||
import org.elasticsearch.client.core.GetSourceRequest;
|
||||
import org.elasticsearch.client.core.GetSourceResponse;
|
||||
import org.elasticsearch.client.core.MainRequest;
|
||||
import org.elasticsearch.client.core.MainResponse;
|
||||
import org.elasticsearch.client.core.MultiTermVectorsRequest;
|
||||
import org.elasticsearch.client.core.MultiTermVectorsResponse;
|
||||
import org.elasticsearch.client.core.TermVectorsRequest;
|
||||
import org.elasticsearch.client.core.TermVectorsResponse;
|
||||
import org.elasticsearch.client.tasks.TaskSubmissionResponse;
|
||||
import org.opensearch.client.core.CountRequest;
|
||||
import org.opensearch.client.core.CountResponse;
|
||||
import org.opensearch.client.core.GetSourceRequest;
|
||||
import org.opensearch.client.core.GetSourceResponse;
|
||||
import org.opensearch.client.core.MainRequest;
|
||||
import org.opensearch.client.core.MainResponse;
|
||||
import org.opensearch.client.core.MultiTermVectorsRequest;
|
||||
import org.opensearch.client.core.MultiTermVectorsResponse;
|
||||
import org.opensearch.client.core.TermVectorsRequest;
|
||||
import org.opensearch.client.core.TermVectorsResponse;
|
||||
import org.opensearch.client.tasks.TaskSubmissionResponse;
|
||||
import org.elasticsearch.common.CheckedConsumer;
|
||||
import org.elasticsearch.common.CheckedFunction;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.opensearch.tasks.TaskId;
|
||||
|
|
@ -17,8 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.client.Cancellable;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryRequest;
|
||||
import org.opensearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryResponse;
|
|
@ -17,12 +17,13 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.client.methods.HttpDelete;
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.apache.http.client.methods.HttpPut;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.opensearch.action.admin.cluster.repositories.cleanup.CleanupRepositoryRequest;
|
||||
import org.opensearch.action.admin.cluster.repositories.delete.DeleteRepositoryRequest;
|
||||
import org.opensearch.action.admin.cluster.repositories.get.GetRepositoriesRequest;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.ParsingException;
|
|
@ -17,15 +17,17 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.client.Cancellable;
|
||||
import org.elasticsearch.client.RequestOptions;
|
||||
import org.opensearch.action.ActionListener;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksRequest;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksResponse;
|
||||
import org.elasticsearch.client.tasks.CancelTasksRequest;
|
||||
import org.elasticsearch.client.tasks.CancelTasksResponse;
|
||||
import org.elasticsearch.client.tasks.GetTaskRequest;
|
||||
import org.elasticsearch.client.tasks.GetTaskResponse;
|
||||
import org.opensearch.client.tasks.CancelTasksRequest;
|
||||
import org.opensearch.client.tasks.CancelTasksResponse;
|
||||
import org.opensearch.client.tasks.GetTaskRequest;
|
||||
import org.opensearch.client.tasks.GetTaskResponse;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.Optional;
|
|
@ -17,14 +17,15 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.apache.http.client.methods.HttpGet;
|
||||
import org.apache.http.client.methods.HttpPost;
|
||||
import org.elasticsearch.client.Request;
|
||||
import org.opensearch.action.admin.cluster.node.tasks.list.ListTasksRequest;
|
||||
import org.elasticsearch.client.RequestConverters.EndpointBuilder;
|
||||
import org.elasticsearch.client.tasks.CancelTasksRequest;
|
||||
import org.elasticsearch.client.tasks.GetTaskRequest;
|
||||
import org.opensearch.client.RequestConverters.EndpointBuilder;
|
||||
import org.opensearch.client.tasks.CancelTasksRequest;
|
||||
import org.opensearch.client.tasks.GetTaskRequest;
|
||||
|
||||
final class TasksRequestConverters {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import java.util.Optional;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client;
|
||||
package org.opensearch.client;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.cluster;
|
||||
package org.opensearch.client.cluster;
|
||||
|
||||
import java.util.Objects;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.cluster;
|
||||
package org.opensearch.client.cluster;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -16,9 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.cluster;
|
||||
package org.opensearch.client.cluster;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
|
||||
/**
|
||||
* The request object used by the Remote cluster info API.
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.cluster;
|
||||
package org.opensearch.client.cluster;
|
||||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.cluster;
|
||||
package org.opensearch.client.cluster;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.opensearch.action.support.DefaultShardOperationFailedException;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.opensearch.action.ActionRequest;
|
||||
import org.opensearch.action.ActionRequestValidationException;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.action.search.ShardSearchFailure;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.action.get.GetRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.opensearch.search.fetch.subphase.FetchSourceContext;
|
||||
|
||||
public final class GetSourceRequest implements Validatable {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
|
||||
import java.util.Locale;
|
||||
|
@ -56,4 +56,4 @@ public enum IndexerState {
|
|||
public String value() {
|
||||
return name().toLowerCase(Locale.ROOT);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
|
||||
public class MainRequest implements Validatable {
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
|
||||
|
@ -27,7 +27,7 @@ import java.io.IOException;
|
|||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
import static org.elasticsearch.client.core.TermVectorsRequest.createFromTemplate;
|
||||
import static org.opensearch.client.core.TermVectorsRequest.createFromTemplate;
|
||||
|
||||
public class MultiTermVectorsRequest implements ToXContentObject, Validatable {
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.core;
|
||||
package org.opensearch.client.core;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.xcontent.ToXContentFragment;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,14 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.action.admin.indices.open.OpenIndexResponse;
|
||||
import org.opensearch.action.support.ActiveShardCount;
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.elasticsearch.client.ValidationException;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.opensearch.client.ValidationException;
|
||||
|
||||
import java.util.Optional;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.OpenSearchException;
|
||||
import org.opensearch.action.support.DefaultShardOperationFailedException;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.common.Strings;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.common.Strings;
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
|
||||
public class CreateDataStreamRequest implements Validatable {
|
||||
|
|
@ -17,14 +17,14 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.OpenSearchGenerationException;
|
||||
import org.opensearch.OpenSearchParseException;
|
||||
import org.opensearch.action.admin.indices.alias.Alias;
|
||||
import org.opensearch.action.support.ActiveShardCount;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.opensearch.common.bytes.BytesArray;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.action.support.master.ShardsAcknowledgedResponse;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.cluster.health.ClusterHealthStatus;
|
||||
import org.elasticsearch.common.Nullable;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
|
||||
public class DataStreamsStatsRequest implements Validatable {
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.core.BroadcastResponse;
|
||||
import org.opensearch.client.core.BroadcastResponse;
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
public class DeleteAliasRequest extends TimedRequest {
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
public class DeleteComponentTemplateRequest extends TimedRequest {
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
public class DeleteComposableIndexTemplateRequest extends TimedRequest {
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
|
||||
public class DeleteDataStreamRequest implements Validatable {
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.Strings;
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.cluster.metadata.ComponentTemplate;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.cluster.metadata.ComposableIndexTemplate;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
|
||||
public class GetDataStreamRequest implements Validatable {
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.opensearch.common.Strings;
|
||||
|
||||
/** Request the mappings of specific fields */
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.elasticsearch.common.util.ArrayUtils;
|
||||
|
||||
/**
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.apache.lucene.util.CollectionUtil;
|
||||
import org.opensearch.cluster.metadata.AliasMetadata;
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.common.xcontent.XContentParser;
|
||||
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.common.Strings;
|
||||
|
||||
public class GetMappingsRequest extends TimedRequest {
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.cluster.metadata.MappingMetadata;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.cluster.metadata.AliasMetadata;
|
||||
import org.opensearch.cluster.metadata.IndexMetadata;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
|
@ -16,9 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.cluster.metadata.ComponentTemplate;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
|
@ -16,9 +16,9 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.cluster.metadata.ComposableIndexTemplate;
|
||||
import org.opensearch.common.Strings;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.OpenSearchGenerationException;
|
||||
import org.opensearch.OpenSearchParseException;
|
|
@ -17,12 +17,12 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.OpenSearchGenerationException;
|
||||
import org.opensearch.action.IndicesRequest;
|
||||
import org.opensearch.action.support.IndicesOptions;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.common.bytes.BytesArray;
|
||||
import org.opensearch.common.bytes.BytesReference;
|
||||
import org.elasticsearch.common.xcontent.ToXContent;
|
|
@ -16,13 +16,13 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.action.admin.indices.alias.Alias;
|
||||
import org.opensearch.action.support.ActiveShardCount;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.Validatable;
|
||||
import org.elasticsearch.client.ValidationException;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.Validatable;
|
||||
import org.opensearch.client.ValidationException;
|
||||
import org.elasticsearch.common.settings.Settings;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
|
@ -17,10 +17,10 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.core.AcknowledgedResponse;
|
||||
import org.elasticsearch.client.core.ShardsAcknowledgedResponse;
|
||||
import org.opensearch.client.core.AcknowledgedResponse;
|
||||
import org.opensearch.client.core.ShardsAcknowledgedResponse;
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
||||
import org.elasticsearch.common.xcontent.ObjectParser;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.opensearch.common.Strings;
|
||||
|
|
@ -16,7 +16,7 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices;
|
||||
package org.opensearch.client.indices;
|
||||
|
||||
import org.opensearch.cluster.metadata.Template;
|
||||
import org.elasticsearch.common.Nullable;
|
|
@ -16,14 +16,14 @@
|
|||
* specific language governing permissions and limitations
|
||||
* under the License.
|
||||
*/
|
||||
package org.elasticsearch.client.indices.rollover;
|
||||
package org.opensearch.client.indices.rollover;
|
||||
|
||||
import org.opensearch.action.admin.indices.rollover.Condition;
|
||||
import org.opensearch.action.admin.indices.rollover.MaxAgeCondition;
|
||||
import org.opensearch.action.admin.indices.rollover.MaxDocsCondition;
|
||||
import org.opensearch.action.admin.indices.rollover.MaxSizeCondition;
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.elasticsearch.client.indices.CreateIndexRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.opensearch.client.indices.CreateIndexRequest;
|
||||
import org.elasticsearch.common.unit.ByteSizeValue;
|
||||
import org.elasticsearch.common.unit.TimeValue;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.indices.rollover;
|
||||
package org.opensearch.client.indices.rollover;
|
||||
|
||||
import org.opensearch.action.support.master.ShardsAcknowledgedResponse;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
import java.util.Objects;
|
||||
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
import java.util.Objects;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
public class ExecuteSnapshotLifecycleRetentionRequest extends TimedRequest {
|
||||
}
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
import java.util.Arrays;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
public class GetSnapshotLifecycleStatsRequest extends TimedRequest {
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
import org.elasticsearch.common.xcontent.ToXContentObject;
|
||||
import org.elasticsearch.common.xcontent.XContentBuilder;
|
||||
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.elasticsearch.common.xcontent.ConstructingObjectParser;
|
|
@ -17,9 +17,9 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.client.TimedRequest;
|
||||
import org.opensearch.client.TimedRequest;
|
||||
|
||||
public class SnapshotLifecycleManagementStatusRequest extends TimedRequest {
|
||||
}
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.ParseField;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.ParseField;
|
||||
import org.opensearch.common.Strings;
|
|
@ -17,7 +17,7 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.client.slm;
|
||||
package org.opensearch.client.slm;
|
||||
|
||||
import org.elasticsearch.common.Nullable;
|
||||
import org.elasticsearch.common.ParseField;
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue