Skip to content

Commit 9feff2d

Browse files
mvad, hide list with top/skip (Azure#32506)
1 parent d836145 commit 9feff2d

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/AnomalyDetectorAsyncClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -940,9 +940,8 @@ public Mono<AnomalyDetectionModel> trainMultivariateModel(ModelInfo modelInfo) {
940940
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
941941
* @return response of listing models as paginated response with {@link PagedFlux}.
942942
*/
943-
@Generated
944943
@ServiceMethod(returns = ReturnType.COLLECTION)
945-
public PagedFlux<AnomalyDetectionModel> listMultivariateModels(Integer skip, Integer top) {
944+
PagedFlux<AnomalyDetectionModel> listMultivariateModels(Integer skip, Integer top) {
946945
// Generated convenience method for listMultivariateModels
947946
RequestOptions requestOptions = new RequestOptions();
948947
if (skip != null) {

sdk/anomalydetector/azure-ai-anomalydetector/src/main/java/com/azure/ai/anomalydetector/AnomalyDetectorClient.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -928,9 +928,8 @@ public AnomalyDetectionModel trainMultivariateModel(ModelInfo modelInfo) {
928928
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
929929
* @return response of listing models as paginated response with {@link PagedIterable}.
930930
*/
931-
@Generated
932931
@ServiceMethod(returns = ReturnType.COLLECTION)
933-
public PagedIterable<AnomalyDetectionModel> listMultivariateModels(Integer skip, Integer top) {
932+
PagedIterable<AnomalyDetectionModel> listMultivariateModels(Integer skip, Integer top) {
934933
// Generated convenience method for listMultivariateModels
935934
return new PagedIterable<>(client.listMultivariateModels(skip, top));
936935
}

sdk/anomalydetector/azure-ai-anomalydetector/src/samples/java/com/azure/ai/anomalydetector/MultivariateSample.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ private static MultivariateBatchDetectionStatus getInferenceStatus(AnomalyDetect
8787
return detectionResult.getSummary().getStatus();
8888
}
8989

90-
private static void getModelList(AnomalyDetectorClient client, Integer skip, Integer top) {
91-
PagedIterable<AnomalyDetectionModel> response = client.listMultivariateModels(skip, top);
90+
private static void getModelList(AnomalyDetectorClient client) {
91+
PagedIterable<AnomalyDetectionModel> response = client.listMultivariateModels();
9292

9393
System.out.println("ModelList: ");
9494
response.streamByPage().forEach(models -> {
@@ -180,9 +180,7 @@ public static void run(String datasource, DataSchema dataSchema) throws Exceptio
180180
client.deleteMultivariateModel(modelId.toString());
181181

182182
//Get model list
183-
Integer skip = 0;
184-
Integer top = 5;
185-
getModelList(client, skip, top);
183+
getModelList(client);
186184
}
187185

188186
public static void main(final String[] args) throws Exception {

0 commit comments

Comments
 (0)