Skip to content

Commit

Permalink
Ensure codegen uptodate
Browse files Browse the repository at this point in the history
Signed-off-by: Thomas Farr <tsfarr@amazon.com>
  • Loading branch information
Xtansia committed Sep 23, 2024
1 parent c68117a commit 2f6f3db
Show file tree
Hide file tree
Showing 18 changed files with 34 additions and 130 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,7 @@ public ErrorCause build() {
return new ErrorCause(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ public ShardFailure build() {
return new ShardFailure(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,7 @@ public ShardStatistics build() {
return new ShardStatistics(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ public final BuilderT version(long value) {

protected abstract BuilderT self();
}

// ---------------------------------------------------------------------------------------------

protected static <BuilderT extends AbstractBuilder<BuilderT>> void setupWriteResponseBaseDeserializer(ObjectDeserializer<BuilderT> op) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public DeleteModelGroupResponse build() {
return new DeleteModelGroupResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public DeleteModelResponse build() {
return new DeleteModelResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ public DeleteTaskResponse build() {
return new DeleteTaskResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ public DeployModelResponse build() {
return new DeployModelResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public GetModelGroupResponse build() {
return new GetModelGroupResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,7 @@ public GetTaskResponse build() {
return new GetTaskResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@
import javax.annotation.Generated;
import javax.annotation.Nullable;
import org.opensearch.client.ApiClient;
import org.opensearch.client.opensearch._types.ErrorResponse;
import org.opensearch.client.opensearch._types.OpenSearchException;
import org.opensearch.client.transport.JsonEndpoint;
import org.opensearch.client.transport.OpenSearchTransport;
import org.opensearch.client.transport.TransportOptions;
import org.opensearch.client.util.ObjectBuilder;
Expand Down Expand Up @@ -111,13 +109,7 @@ public final CompletableFuture<DeleteConnectorResponse> deleteConnector(
* Deletes a model.
*/
public CompletableFuture<DeleteModelResponse> deleteModel(DeleteModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeleteModelRequest, DeleteModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeleteModelRequest,
DeleteModelResponse,
ErrorResponse>) DeleteModelRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, DeleteModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -138,13 +130,7 @@ public final CompletableFuture<DeleteModelResponse> deleteModel(
*/
public CompletableFuture<DeleteModelGroupResponse> deleteModelGroup(DeleteModelGroupRequest request) throws IOException,
OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeleteModelGroupRequest, DeleteModelGroupResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeleteModelGroupRequest,
DeleteModelGroupResponse,
ErrorResponse>) DeleteModelGroupRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, DeleteModelGroupRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -164,13 +150,7 @@ public final CompletableFuture<DeleteModelGroupResponse> deleteModelGroup(
* Deletes a task.
*/
public CompletableFuture<DeleteTaskResponse> deleteTask(DeleteTaskRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeleteTaskRequest, DeleteTaskResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeleteTaskRequest,
DeleteTaskResponse,
ErrorResponse>) DeleteTaskRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, DeleteTaskRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -189,13 +169,7 @@ public final CompletableFuture<DeleteTaskResponse> deleteTask(Function<DeleteTas
* Deploys a model.
*/
public CompletableFuture<DeployModelResponse> deployModel(DeployModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeployModelRequest, DeployModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeployModelRequest,
DeployModelResponse,
ErrorResponse>) DeployModelRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, DeployModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -215,13 +189,7 @@ public final CompletableFuture<DeployModelResponse> deployModel(
* Retrieves a model group.
*/
public CompletableFuture<GetModelGroupResponse> getModelGroup(GetModelGroupRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<GetModelGroupRequest, GetModelGroupResponse, ErrorResponse> endpoint = (JsonEndpoint<
GetModelGroupRequest,
GetModelGroupResponse,
ErrorResponse>) GetModelGroupRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, GetModelGroupRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -241,13 +209,7 @@ public final CompletableFuture<GetModelGroupResponse> getModelGroup(
* Retrieves a task.
*/
public CompletableFuture<GetTaskResponse> getTask(GetTaskRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<GetTaskRequest, GetTaskResponse, ErrorResponse> endpoint = (JsonEndpoint<
GetTaskRequest,
GetTaskResponse,
ErrorResponse>) GetTaskRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, GetTaskRequest._ENDPOINT, this.transportOptions);
}

/**
Expand Down Expand Up @@ -286,13 +248,7 @@ public final CompletableFuture<RegisterAgentsResponse> registerAgents(
* Registers a model.
*/
public CompletableFuture<RegisterModelResponse> registerModel(RegisterModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<RegisterModelRequest, RegisterModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
RegisterModelRequest,
RegisterModelResponse,
ErrorResponse>) RegisterModelRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, RegisterModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -313,13 +269,7 @@ public final CompletableFuture<RegisterModelResponse> registerModel(
*/
public CompletableFuture<RegisterModelGroupResponse> registerModelGroup(RegisterModelGroupRequest request) throws IOException,
OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<RegisterModelGroupRequest, RegisterModelGroupResponse, ErrorResponse> endpoint = (JsonEndpoint<
RegisterModelGroupRequest,
RegisterModelGroupResponse,
ErrorResponse>) RegisterModelGroupRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, RegisterModelGroupRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -339,13 +289,7 @@ public final CompletableFuture<RegisterModelGroupResponse> registerModelGroup(
* Undeploys a model.
*/
public CompletableFuture<UndeployModelResponse> undeployModel(UndeployModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<UndeployModelRequest, UndeployModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
UndeployModelRequest,
UndeployModelResponse,
ErrorResponse>) UndeployModelRequest._ENDPOINT;

return this.transport.performRequestAsync(request, endpoint, this.transportOptions);
return this.transport.performRequestAsync(request, UndeployModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
import javax.annotation.Generated;
import javax.annotation.Nullable;
import org.opensearch.client.ApiClient;
import org.opensearch.client.opensearch._types.ErrorResponse;
import org.opensearch.client.opensearch._types.OpenSearchException;
import org.opensearch.client.transport.JsonEndpoint;
import org.opensearch.client.transport.OpenSearchTransport;
import org.opensearch.client.transport.TransportOptions;
import org.opensearch.client.util.ObjectBuilder;
Expand Down Expand Up @@ -105,13 +103,7 @@ public final DeleteConnectorResponse deleteConnector(Function<DeleteConnectorReq
* Deletes a model.
*/
public DeleteModelResponse deleteModel(DeleteModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeleteModelRequest, DeleteModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeleteModelRequest,
DeleteModelResponse,
ErrorResponse>) DeleteModelRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, DeleteModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -130,13 +122,7 @@ public final DeleteModelResponse deleteModel(Function<DeleteModelRequest.Builder
* Deletes a model group.
*/
public DeleteModelGroupResponse deleteModelGroup(DeleteModelGroupRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeleteModelGroupRequest, DeleteModelGroupResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeleteModelGroupRequest,
DeleteModelGroupResponse,
ErrorResponse>) DeleteModelGroupRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, DeleteModelGroupRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -156,13 +142,7 @@ public final DeleteModelGroupResponse deleteModelGroup(
* Deletes a task.
*/
public DeleteTaskResponse deleteTask(DeleteTaskRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeleteTaskRequest, DeleteTaskResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeleteTaskRequest,
DeleteTaskResponse,
ErrorResponse>) DeleteTaskRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, DeleteTaskRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -181,13 +161,7 @@ public final DeleteTaskResponse deleteTask(Function<DeleteTaskRequest.Builder, O
* Deploys a model.
*/
public DeployModelResponse deployModel(DeployModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<DeployModelRequest, DeployModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
DeployModelRequest,
DeployModelResponse,
ErrorResponse>) DeployModelRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, DeployModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -206,13 +180,7 @@ public final DeployModelResponse deployModel(Function<DeployModelRequest.Builder
* Retrieves a model group.
*/
public GetModelGroupResponse getModelGroup(GetModelGroupRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<GetModelGroupRequest, GetModelGroupResponse, ErrorResponse> endpoint = (JsonEndpoint<
GetModelGroupRequest,
GetModelGroupResponse,
ErrorResponse>) GetModelGroupRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, GetModelGroupRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -231,13 +199,7 @@ public final GetModelGroupResponse getModelGroup(Function<GetModelGroupRequest.B
* Retrieves a task.
*/
public GetTaskResponse getTask(GetTaskRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<GetTaskRequest, GetTaskResponse, ErrorResponse> endpoint = (JsonEndpoint<
GetTaskRequest,
GetTaskResponse,
ErrorResponse>) GetTaskRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, GetTaskRequest._ENDPOINT, this.transportOptions);
}

/**
Expand Down Expand Up @@ -275,13 +237,7 @@ public final RegisterAgentsResponse registerAgents(Function<RegisterAgentsReques
* Registers a model.
*/
public RegisterModelResponse registerModel(RegisterModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<RegisterModelRequest, RegisterModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
RegisterModelRequest,
RegisterModelResponse,
ErrorResponse>) RegisterModelRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, RegisterModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -300,13 +256,7 @@ public final RegisterModelResponse registerModel(Function<RegisterModelRequest.B
* Registers a model group.
*/
public RegisterModelGroupResponse registerModelGroup(RegisterModelGroupRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<RegisterModelGroupRequest, RegisterModelGroupResponse, ErrorResponse> endpoint = (JsonEndpoint<
RegisterModelGroupRequest,
RegisterModelGroupResponse,
ErrorResponse>) RegisterModelGroupRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, RegisterModelGroupRequest._ENDPOINT, this.transportOptions);
}

/**
Expand All @@ -326,13 +276,7 @@ public final RegisterModelGroupResponse registerModelGroup(
* Undeploys a model.
*/
public UndeployModelResponse undeployModel(UndeployModelRequest request) throws IOException, OpenSearchException {
@SuppressWarnings("unchecked")
JsonEndpoint<UndeployModelRequest, UndeployModelResponse, ErrorResponse> endpoint = (JsonEndpoint<
UndeployModelRequest,
UndeployModelResponse,
ErrorResponse>) UndeployModelRequest._ENDPOINT;

return this.transport.performRequest(request, endpoint, this.transportOptions);
return this.transport.performRequest(request, UndeployModelRequest._ENDPOINT, this.transportOptions);
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,7 @@ public RegisterModelGroupRequest build() {
return new RegisterModelGroupRequest(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ public RegisterModelGroupResponse build() {
return new RegisterModelGroupResponse(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ public RegisterModelRequest build() {
return new RegisterModelRequest(this);
}
}

// ---------------------------------------------------------------------------------------------

/**
Expand Down
Loading

0 comments on commit 2f6f3db

Please sign in to comment.