Interface Predictions
public interface Predictions
Resource collection API of Predictions.
-
Method Summary
Modifier and TypeMethodDescriptionBegins definition for a new PredictionResourceFormat resource.void
Deletes a Prediction in the hub.void
delete
(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Deletes a Prediction in the hub.void
deleteById
(String id) Deletes a Prediction in the hub.void
deleteByIdWithResponse
(String id, com.azure.core.util.Context context) Deletes a Prediction in the hub.Gets a Prediction in the hub.Gets a Prediction in the hub.com.azure.core.http.rest.Response<PredictionResourceFormat>
getByIdWithResponse
(String id, com.azure.core.util.Context context) Gets a Prediction in the hub.getModelStatus
(String resourceGroupName, String hubName, String predictionName) Gets model status of the prediction.com.azure.core.http.rest.Response<PredictionModelStatus>
getModelStatusWithResponse
(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets model status of the prediction.getTrainingResults
(String resourceGroupName, String hubName, String predictionName) Gets training results.com.azure.core.http.rest.Response<PredictionTrainingResults>
getTrainingResultsWithResponse
(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets training results.com.azure.core.http.rest.Response<PredictionResourceFormat>
getWithResponse
(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets a Prediction in the hub.com.azure.core.http.rest.PagedIterable<PredictionResourceFormat>
Gets all the predictions in the specified hub.com.azure.core.http.rest.PagedIterable<PredictionResourceFormat>
Gets all the predictions in the specified hub.void
modelStatus
(String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters) Creates or updates the model status of prediction.com.azure.core.http.rest.Response<Void>
modelStatusWithResponse
(String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters, com.azure.core.util.Context context) Creates or updates the model status of prediction.
-
Method Details
-
getWithResponse
com.azure.core.http.rest.Response<PredictionResourceFormat> getWithResponse(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets a Prediction in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.context
- The context to associate with this operation.- Returns:
- a Prediction in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
get
Gets a Prediction in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.- Returns:
- a Prediction in the hub.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
Deletes a Prediction in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
delete
void delete(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Deletes a Prediction in the hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getTrainingResultsWithResponse
com.azure.core.http.rest.Response<PredictionTrainingResults> getTrainingResultsWithResponse(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets training results.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.context
- The context to associate with this operation.- Returns:
- training results along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getTrainingResults
PredictionTrainingResults getTrainingResults(String resourceGroupName, String hubName, String predictionName) Gets training results.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.- Returns:
- training results.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getModelStatusWithResponse
com.azure.core.http.rest.Response<PredictionModelStatus> getModelStatusWithResponse(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets model status of the prediction.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.context
- The context to associate with this operation.- Returns:
- model status of the prediction along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getModelStatus
PredictionModelStatus getModelStatus(String resourceGroupName, String hubName, String predictionName) Gets model status of the prediction.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.- Returns:
- model status of the prediction.
- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
modelStatusWithResponse
com.azure.core.http.rest.Response<Void> modelStatusWithResponse(String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters, com.azure.core.util.Context context) Creates or updates the model status of prediction.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.parameters
- Parameters supplied to the create/update prediction model status operation.context
- The context to associate with this operation.- Returns:
- the
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
modelStatus
void modelStatus(String resourceGroupName, String hubName, String predictionName, PredictionModelStatusInner parameters) Creates or updates the model status of prediction.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.predictionName
- The name of the Prediction.parameters
- Parameters supplied to the create/update prediction model status operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByHub
com.azure.core.http.rest.PagedIterable<PredictionResourceFormat> listByHub(String resourceGroupName, String hubName) Gets all the predictions in the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.- Returns:
- all the predictions in the specified hub as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
listByHub
com.azure.core.http.rest.PagedIterable<PredictionResourceFormat> listByHub(String resourceGroupName, String hubName, com.azure.core.util.Context context) Gets all the predictions in the specified hub.- Parameters:
resourceGroupName
- The name of the resource group.hubName
- The name of the hub.context
- The context to associate with this operation.- Returns:
- all the predictions in the specified hub as paginated response with
PagedIterable
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getById
Gets a Prediction in the hub.- Parameters:
id
- the resource ID.- Returns:
- a Prediction in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
getByIdWithResponse
com.azure.core.http.rest.Response<PredictionResourceFormat> getByIdWithResponse(String id, com.azure.core.util.Context context) Gets a Prediction in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Returns:
- a Prediction in the hub along with
Response
. - Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteById
Deletes a Prediction in the hub.- Parameters:
id
- the resource ID.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
deleteByIdWithResponse
Deletes a Prediction in the hub.- Parameters:
id
- the resource ID.context
- The context to associate with this operation.- Throws:
IllegalArgumentException
- thrown if parameters fail the validation.com.azure.core.management.exception.ManagementException
- thrown if the request is rejected by server.RuntimeException
- all other wrapped checked exceptions if the request fails to be sent.
-
define
Begins definition for a new PredictionResourceFormat resource.- Parameters:
name
- resource name.- Returns:
- the first stage of the new PredictionResourceFormat definition.
-