Class MLRegisterModelInput
java.lang.Object
org.opensearch.ml.common.transport.register.MLRegisterModelInput
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.ToXContentObject
public class MLRegisterModelInput
extends Object
implements org.opensearch.core.xcontent.ToXContentObject, org.opensearch.core.common.io.stream.Writeable
ML input data: algirithm name, parameters and input data set.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final org.opensearch.Versionstatic final org.opensearch.Versionstatic final org.opensearch.Versionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from interface org.opensearch.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionMLRegisterModelInput(org.opensearch.core.common.io.stream.StreamInput in) MLRegisterModelInput(FunctionName functionName, String modelName, String modelGroupId, String version, String description, Boolean isEnabled, MLRateLimiter rateLimiter, String url, String hashValue, MLModelFormat modelFormat, MLModelConfig modelConfig, MLDeploySetting deploySetting, boolean deployModel, String[] modelNodeIds, Connector connector, String connectorId, List<String> backendRoles, Boolean addAllBackendRoles, AccessMode accessMode, Boolean doesVersionCreateModelGroup, Boolean isHidden, Guardrails guardrails) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()protected booleanbooleanString[]getUrl()inthashCode()booleanstatic MLRegisterModelInputparse(org.opensearch.core.xcontent.XContentParser parser, boolean deployModel) static MLRegisterModelInputparse(org.opensearch.core.xcontent.XContentParser parser, String modelName, String version, boolean deployModel) voidsetAccessMode(AccessMode accessMode) voidsetAddAllBackendRoles(Boolean addAllBackendRoles) voidsetBackendRoles(List<String> backendRoles) voidsetConnector(Connector connector) voidsetConnectorId(String connectorId) voidsetDeployModel(boolean deployModel) voidsetDeploySetting(MLDeploySetting deploySetting) voidsetDescription(String description) voidsetDoesVersionCreateModelGroup(Boolean doesVersionCreateModelGroup) voidsetFunctionName(FunctionName functionName) voidsetGuardrails(Guardrails guardrails) voidsetHashValue(String hashValue) voidsetIsEnabled(Boolean isEnabled) voidsetIsHidden(Boolean isHidden) voidsetModelConfig(MLModelConfig modelConfig) voidsetModelFormat(MLModelFormat modelFormat) voidsetModelGroupId(String modelGroupId) voidsetModelName(String modelName) voidsetModelNodeIds(String[] modelNodeIds) voidsetRateLimiter(MLRateLimiter rateLimiter) voidvoidsetVersion(String version) toString()org.opensearch.core.xcontent.XContentBuildertoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) voidwriteTo(org.opensearch.core.common.io.stream.StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
FUNCTION_NAME_FIELD
- See Also:
-
NAME_FIELD
- See Also:
-
MODEL_GROUP_ID_FIELD
- See Also:
-
DESCRIPTION_FIELD
- See Also:
-
VERSION_FIELD
- See Also:
-
IS_ENABLED_FIELD
- See Also:
-
RATE_LIMITER_FIELD
- See Also:
-
URL_FIELD
- See Also:
-
MODEL_FORMAT_FIELD
- See Also:
-
MODEL_CONFIG_FIELD
- See Also:
-
DEPLOY_SETTING_FIELD
- See Also:
-
DEPLOY_MODEL_FIELD
- See Also:
-
MODEL_NODE_IDS_FIELD
- See Also:
-
CONNECTOR_FIELD
- See Also:
-
CONNECTOR_ID_FIELD
- See Also:
-
MODEL_CONTENT_HASH_VALUE_FIELD
- See Also:
-
ACCESS_MODE_FIELD
- See Also:
-
BACKEND_ROLES_FIELD
- See Also:
-
ADD_ALL_BACKEND_ROLES_FIELD
- See Also:
-
DOES_VERSION_CREATE_MODEL_GROUP
- See Also:
-
GUARDRAILS_FIELD
- See Also:
-
MINIMAL_SUPPORTED_VERSION_FOR_DOES_VERSION_CREATE_MODEL_GROUP
public static final org.opensearch.Version MINIMAL_SUPPORTED_VERSION_FOR_DOES_VERSION_CREATE_MODEL_GROUP -
MINIMAL_SUPPORTED_VERSION_FOR_AGENT_FRAMEWORK
public static final org.opensearch.Version MINIMAL_SUPPORTED_VERSION_FOR_AGENT_FRAMEWORK -
MINIMAL_SUPPORTED_VERSION_FOR_GUARDRAILS_AND_AUTO_DEPLOY
public static final org.opensearch.Version MINIMAL_SUPPORTED_VERSION_FOR_GUARDRAILS_AND_AUTO_DEPLOY
-
-
Constructor Details
-
MLRegisterModelInput
public MLRegisterModelInput(FunctionName functionName, String modelName, String modelGroupId, String version, String description, Boolean isEnabled, MLRateLimiter rateLimiter, String url, String hashValue, MLModelFormat modelFormat, MLModelConfig modelConfig, MLDeploySetting deploySetting, boolean deployModel, String[] modelNodeIds, Connector connector, String connectorId, List<String> backendRoles, Boolean addAllBackendRoles, AccessMode accessMode, Boolean doesVersionCreateModelGroup, Boolean isHidden, Guardrails guardrails) -
MLRegisterModelInput
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceorg.opensearch.core.common.io.stream.Writeable- Throws:
IOException
-
toXContent
public org.opensearch.core.xcontent.XContentBuilder toXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.opensearch.core.xcontent.ToXContent- Throws:
IOException
-
parse
public static MLRegisterModelInput parse(org.opensearch.core.xcontent.XContentParser parser, String modelName, String version, boolean deployModel) throws IOException - Throws:
IOException
-
parse
public static MLRegisterModelInput parse(org.opensearch.core.xcontent.XContentParser parser, boolean deployModel) throws IOException - Throws:
IOException
-
builder
-
toBuilder
-
getFunctionName
-
getModelName
-
getModelGroupId
-
getVersion
-
getDescription
-
getIsEnabled
-
getRateLimiter
-
getUrl
-
getHashValue
-
getModelFormat
-
getModelConfig
-
getDeploySetting
-
isDeployModel
public boolean isDeployModel() -
getModelNodeIds
-
getConnector
-
getConnectorId
-
getBackendRoles
-
getAddAllBackendRoles
-
getAccessMode
-
getDoesVersionCreateModelGroup
-
getIsHidden
-
getGuardrails
-
setFunctionName
-
setModelName
-
setModelGroupId
-
setVersion
-
setDescription
-
setIsEnabled
-
setRateLimiter
-
setUrl
-
setHashValue
-
setModelFormat
-
setModelConfig
-
setDeploySetting
-
setDeployModel
public void setDeployModel(boolean deployModel) -
setModelNodeIds
-
setConnector
-
setConnectorId
-
setBackendRoles
-
setAddAllBackendRoles
-
setAccessMode
-
setDoesVersionCreateModelGroup
-
setIsHidden
-
setGuardrails
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-