Interface PredictionsClient
public interface PredictionsClient
An instance of this class provides access to all the operations defined in PredictionsClient.
-
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PredictionResourceFormatInner>,
PredictionResourceFormatInner> beginCreateOrUpdate
(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters) Creates a Prediction or updates an existing Prediction in the hub.com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PredictionResourceFormatInner>,
PredictionResourceFormatInner> beginCreateOrUpdate
(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters, com.azure.core.util.Context context) Creates a Prediction or updates an existing Prediction in the hub.beginDelete
(String resourceGroupName, String hubName, String predictionName) Deletes a Prediction in the hub.beginDelete
(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Deletes a Prediction in the hub.createOrUpdate
(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters) Creates a Prediction or updates an existing Prediction in the hub.createOrUpdate
(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters, com.azure.core.util.Context context) Creates a Prediction or updates an existing Prediction in the hub.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.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<PredictionModelStatusInner>
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<PredictionTrainingResultsInner>
getTrainingResultsWithResponse
(String resourceGroupName, String hubName, String predictionName, com.azure.core.util.Context context) Gets training results.com.azure.core.http.rest.Response<PredictionResourceFormatInner>
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<PredictionResourceFormatInner>
Gets all the predictions in the specified hub.com.azure.core.http.rest.PagedIterable<PredictionResourceFormatInner>
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
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PredictionResourceFormatInner>,PredictionResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters) Creates a Prediction or updates an existing Prediction in the hub.- 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 operation.- Returns:
- the
SyncPoller
for polling of the prediction resource format. - 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.
-
beginCreateOrUpdate
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<PredictionResourceFormatInner>,PredictionResourceFormatInner> beginCreateOrUpdate(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters, com.azure.core.util.Context context) Creates a Prediction or updates an existing Prediction in the hub.- 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 operation.context
- The context to associate with this operation.- Returns:
- the
SyncPoller
for polling of the prediction resource format. - 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.
-
createOrUpdate
PredictionResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters) Creates a Prediction or updates an existing Prediction in the hub.- 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 operation.- Returns:
- the prediction resource format.
- 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.
-
createOrUpdate
PredictionResourceFormatInner createOrUpdate(String resourceGroupName, String hubName, String predictionName, PredictionResourceFormatInner parameters, com.azure.core.util.Context context) Creates a Prediction or updates an existing Prediction in the hub.- 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 operation.context
- The context to associate with this operation.- Returns:
- the prediction resource format.
- 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.
-
getWithResponse
com.azure.core.http.rest.Response<PredictionResourceFormatInner> 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(String resourceGroupName, String hubName, String predictionName) 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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
beginDelete
com.azure.core.util.polling.SyncPoller<com.azure.core.management.polling.PollResult<Void>,Void> beginDelete(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.- Returns:
- the
SyncPoller
for polling of long-running 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.
-
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<PredictionTrainingResultsInner> 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
PredictionTrainingResultsInner 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<PredictionModelStatusInner> 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
PredictionModelStatusInner 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<PredictionResourceFormatInner> 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<PredictionResourceFormatInner> 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.
-