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
Update a trained model deployment.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<UpdateTrainedModelDeploymentRequest>
Json deserializer forUpdateTrainedModelDeploymentRequest
static final Endpoint<UpdateTrainedModelDeploymentRequest,
UpdateTrainedModelDeploymentResponse, ErrorResponse> Endpoint "ml.update_trained_model_deployment
". -
Method Summary
Modifier and TypeMethodDescriptionAdaptive allocations configuration.final 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
-
adaptiveAllocations
Adaptive allocations configuration. When enabled, the number of allocations is set based on the current load. If adaptive_allocations is enabled, do not set the number of allocations manually.API name:
adaptive_allocations
-
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. If adaptive_allocations is enabled, do not set this value, because it’s automatically set.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)
-