ModelsRepositoryClient Class
- java.
lang. Object - com.
azure. iot. modelsrepository. ModelsRepositoryClient
- com.
public final class ModelsRepositoryClient
This class provides a client for interacting synchronously with a ModelsRepository instance. This client is instantiated through ModelsRepositoryClientBuilder.
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Map<String,String> |
getModels(Iterable<String> dtmis)
Gets a collection of model definitions. |
| Map<String,String> |
getModels(Iterable<String> dtmis, ModelDependencyResolution dependencyResolution, Context context)
Gets a collection of model definitions. |
| Map<String,String> |
getModels(String dtmi)
Gets a collection of model definitions. |
| Map<String,String> |
getModels(String dtmi, ModelDependencyResolution dependencyResolution, Context context)
Gets a collection of model definitions. |
| String |
getRepositoryEndpoint()
Gets the repository endpoint that the client has been initialized with. |
|
Models |
getServiceVersion()
Gets the Azure Models Repository service API version that this client is configured to use for all service requests. |
Methods inherited from java.lang.Object
Method Details
getModels
public Map<String,String> getModels(Iterable<String> dtmis)
Gets a collection of model definitions.
Parameters:
Returns:
getModels
public Map<String,String> getModels(Iterable<String> dtmis, ModelDependencyResolution dependencyResolution, Context context)
Gets a collection of model definitions.
Parameters:
Returns:
getModels
public Map<String,String> getModels(String dtmi)
Gets a collection of model definitions.
Parameters:
Returns:
getModels
public Map<String,String> getModels(String dtmi, ModelDependencyResolution dependencyResolution, Context context)
Gets a collection of model definitions.
Parameters:
Returns:
getRepositoryEndpoint
public String getRepositoryEndpoint()
Gets the repository endpoint that the client has been initialized with.
Returns:
getServiceVersion
public ModelsRepositoryServiceVersion getServiceVersion()
Gets the Azure Models Repository service API version that this client is configured to use for all service requests. Unless configured while building this client through serviceVersion(ModelsRepositoryServiceVersion serviceVersion), this value will be equal to the latest service API version supported by this client.
Returns: