Class UpdateTrainedModelDeploymentRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.ml.UpdateTrainedModelDeploymentRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable
public class UpdateTrainedModelDeploymentRequest
extends RequestBase
implements JsonpSerializable
Starts a trained model deployment, which allocates the model to every machine
learning node.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateTrainedModelDeploymentRequest>
Json deserializer forUpdateTrainedModelDeploymentRequest
static final Endpoint<UpdateTrainedModelDeploymentRequest,
UpdateTrainedModelDeploymentResponse, ErrorResponse> Endpoint "ml.update_trained_model_deployment
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
modelId()
Required - The unique identifier of the trained model.final Integer
The number of model allocations on each node where the model is deployed.of
(Function<UpdateTrainedModelDeploymentRequest.Builder, ObjectBuilder<UpdateTrainedModelDeploymentRequest>> fn) void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
setupUpdateTrainedModelDeploymentRequestDeserializer
(ObjectDeserializer<UpdateTrainedModelDeploymentRequest.Builder> op) Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forUpdateTrainedModelDeploymentRequest
-
_ENDPOINT
public static final Endpoint<UpdateTrainedModelDeploymentRequest,UpdateTrainedModelDeploymentResponse, _ENDPOINTErrorResponse> Endpoint "ml.update_trained_model_deployment
".
-
-
Method Details
-
of
-
modelId
Required - The unique identifier of the trained model. Currently, only PyTorch models are supported.API name:
model_id
-
numberOfAllocations
The number of model allocations on each node where the model is deployed. All allocations on a node share the same copy of the model in memory but use a separate set of threads to evaluate the model. Increasing this value generally increases the throughput. If this setting is greater than the number of hardware threads it will automatically be changed to a value less than the number of hardware threads.API name:
number_of_allocations
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupUpdateTrainedModelDeploymentRequestDeserializer
protected static void setupUpdateTrainedModelDeploymentRequestDeserializer(ObjectDeserializer<UpdateTrainedModelDeploymentRequest.Builder> op)
-