ModelVersion Class
- java.
lang. Object - com.
azure. ai. projects. models. ModelVersion
- com.
Implements
public final class ModelVersion
implements JsonSerializable<ModelVersion>
Model Version Definition.
Constructor Summary
| Constructor | Description |
|---|---|
| ModelVersion(String blobUrl) |
Creates an instance of Model |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Model |
fromJson(JsonReader jsonReader)
Reads an instance of Model |
|
Artifact |
getArtifactProfile()
Get the artifact |
| String |
getBaseModel()
Get the base |
| String |
getBlobUrl()
Get the blob |
| String |
getDescription()
Get the description property: The asset description text. |
| String |
getId()
Get the id property: Asset ID, a unique identifier for the asset. |
|
Lora |
getLoraConfig()
Get the lora |
| String |
getName()
Get the name property: The name of the resource. |
|
Model |
getSource()
Get the source property: The source of the model. |
| Map<String,String> |
getTags()
Get the tags property: Tag dictionary. |
| String |
getVersion()
Get the version property: The version of the resource. |
|
List<Foundry |
getWarnings()
Get the warnings property: Service-computed advisory warnings derived from the artifact profile. |
|
Foundry |
getWeightType()
Get the weight |
|
Model |
setBaseModel(String baseModel)
Set the base |
|
Model |
setDescription(String description)
Set the description property: The asset description text. |
|
Model |
setLoraConfig(LoraConfig loraConfig)
Set the lora |
|
Model |
setSource(ModelSourceData source)
Set the source property: The source of the model. |
|
Model |
setTags(Map<String,String> tags)
Set the tags property: Tag dictionary. |
|
Model |
setWeightType(FoundryModelWeightType weightType)
Set the weight |
|
Json |
toJson(JsonWriter jsonWriter) |
Methods inherited from java.lang.Object
Constructor Details
ModelVersion
public ModelVersion(String blobUrl)
Creates an instance of ModelVersion class.
Parameters:
Method Details
fromJson
public static ModelVersion fromJson(JsonReader jsonReader)
Reads an instance of ModelVersion from the JsonReader.
Parameters:
Returns:
Throws:
getArtifactProfile
public ArtifactProfile getArtifactProfile()
Get the artifactProfile property: The artifact profile of the model.
Returns:
getBaseModel
public String getBaseModel()
Get the baseModel property: Base model asset ID.
Returns:
getBlobUrl
public String getBlobUrl()
Get the blobUrl property: URI of the model artifact in blob storage.
Returns:
getDescription
public String getDescription()
Get the description property: The asset description text.
Returns:
getId
public String getId()
Get the id property: Asset ID, a unique identifier for the asset.
Returns:
getLoraConfig
public LoraConfig getLoraConfig()
Get the loraConfig property: Adapter-specific configuration. Required when weight_type is lora; ignored otherwise. May be auto-populated from adapter_config.json when present in the uploaded files — user-provided values take precedence over auto-detected values.
Returns:
getName
public String getName()
Get the name property: The name of the resource.
Returns:
getSource
public ModelSourceData getSource()
Get the source property: The source of the model.
Returns:
getTags
public Map<String,String> getTags()
Get the tags property: Tag dictionary. Tags can be added, removed, and updated.
Returns:
getVersion
public String getVersion()
Get the version property: The version of the resource.
Returns:
getWarnings
public List<FoundryModelWarning> getWarnings()
Get the warnings property: Service-computed advisory warnings derived from the artifact profile.
Returns:
getWeightType
public FoundryModelWeightType getWeightType()
Get the weightType property: The weight type of the model.
Returns:
setBaseModel
public ModelVersion setBaseModel(String baseModel)
Set the baseModel property: Base model asset ID.
Parameters:
Returns:
setDescription
public ModelVersion setDescription(String description)
Set the description property: The asset description text.
Parameters:
Returns:
setLoraConfig
public ModelVersion setLoraConfig(LoraConfig loraConfig)
Set the loraConfig property: Adapter-specific configuration. Required when weight_type is lora; ignored otherwise. May be auto-populated from adapter_config.json when present in the uploaded files — user-provided values take precedence over auto-detected values.
Parameters:
Returns:
setSource
public ModelVersion setSource(ModelSourceData source)
Set the source property: The source of the model.
Parameters:
Returns:
setTags
public ModelVersion setTags(Map<String,String> tags)
Set the tags property: Tag dictionary. Tags can be added, removed, and updated.
Parameters:
Returns:
setWeightType
public ModelVersion setWeightType(FoundryModelWeightType weightType)
Set the weightType property: The weight type of the model.
Parameters:
Returns: