@azure/arm-machinelearning 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +10 -0
- package/dist/index.js +521 -197
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/azureMachineLearningWorkspaces.d.ts.map +1 -1
- package/dist-esm/src/azureMachineLearningWorkspaces.js +4 -7
- package/dist-esm/src/azureMachineLearningWorkspaces.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/batchDeployments.d.ts.map +1 -1
- package/dist-esm/src/operations/batchDeployments.js +19 -7
- package/dist-esm/src/operations/batchDeployments.js.map +1 -1
- package/dist-esm/src/operations/batchEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/batchEndpoints.js +19 -7
- package/dist-esm/src/operations/batchEndpoints.js.map +1 -1
- package/dist-esm/src/operations/codeContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/codeContainers.js +19 -7
- package/dist-esm/src/operations/codeContainers.js.map +1 -1
- package/dist-esm/src/operations/codeVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/codeVersions.js +19 -7
- package/dist-esm/src/operations/codeVersions.js.map +1 -1
- package/dist-esm/src/operations/componentContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/componentContainers.js +19 -7
- package/dist-esm/src/operations/componentContainers.js.map +1 -1
- package/dist-esm/src/operations/componentVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/componentVersions.js +19 -7
- package/dist-esm/src/operations/componentVersions.js.map +1 -1
- package/dist-esm/src/operations/computeOperations.d.ts.map +1 -1
- package/dist-esm/src/operations/computeOperations.js +37 -14
- package/dist-esm/src/operations/computeOperations.js.map +1 -1
- package/dist-esm/src/operations/dataContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/dataContainers.js +19 -7
- package/dist-esm/src/operations/dataContainers.js.map +1 -1
- package/dist-esm/src/operations/dataVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/dataVersions.js +19 -7
- package/dist-esm/src/operations/dataVersions.js.map +1 -1
- package/dist-esm/src/operations/datastores.d.ts.map +1 -1
- package/dist-esm/src/operations/datastores.js +19 -7
- package/dist-esm/src/operations/datastores.js.map +1 -1
- package/dist-esm/src/operations/environmentContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/environmentContainers.js +19 -7
- package/dist-esm/src/operations/environmentContainers.js.map +1 -1
- package/dist-esm/src/operations/environmentVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/environmentVersions.js +19 -7
- package/dist-esm/src/operations/environmentVersions.js.map +1 -1
- package/dist-esm/src/operations/jobs.d.ts.map +1 -1
- package/dist-esm/src/operations/jobs.js +19 -7
- package/dist-esm/src/operations/jobs.js.map +1 -1
- package/dist-esm/src/operations/modelContainers.d.ts.map +1 -1
- package/dist-esm/src/operations/modelContainers.js +19 -7
- package/dist-esm/src/operations/modelContainers.js.map +1 -1
- package/dist-esm/src/operations/modelVersions.d.ts.map +1 -1
- package/dist-esm/src/operations/modelVersions.js +19 -7
- package/dist-esm/src/operations/modelVersions.js.map +1 -1
- package/dist-esm/src/operations/onlineDeployments.d.ts.map +1 -1
- package/dist-esm/src/operations/onlineDeployments.js +37 -14
- package/dist-esm/src/operations/onlineDeployments.js.map +1 -1
- package/dist-esm/src/operations/onlineEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/onlineEndpoints.js +19 -7
- package/dist-esm/src/operations/onlineEndpoints.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +8 -4
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +8 -4
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/quotas.d.ts.map +1 -1
- package/dist-esm/src/operations/quotas.js +19 -7
- package/dist-esm/src/operations/quotas.js.map +1 -1
- package/dist-esm/src/operations/schedules.d.ts.map +1 -1
- package/dist-esm/src/operations/schedules.js +19 -7
- package/dist-esm/src/operations/schedules.js.map +1 -1
- package/dist-esm/src/operations/usages.d.ts.map +1 -1
- package/dist-esm/src/operations/usages.js +19 -7
- package/dist-esm/src/operations/usages.js.map +1 -1
- package/dist-esm/src/operations/workspaceConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaceConnections.js +19 -7
- package/dist-esm/src/operations/workspaceConnections.js.map +1 -1
- package/dist-esm/src/operations/workspaceFeatures.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaceFeatures.js +19 -7
- package/dist-esm/src/operations/workspaceFeatures.js.map +1 -1
- package/dist-esm/src/operations/workspaces.d.ts.map +1 -1
- package/dist-esm/src/operations/workspaces.js +37 -14
- package/dist-esm/src/operations/workspaces.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +3 -3
- package/review/arm-machinelearning.api.md +3 -0
- package/src/azureMachineLearningWorkspaces.ts +5 -6
- package/src/index.ts +1 -0
- package/src/models/index.ts +135 -135
- package/src/operations/batchDeployments.ts +27 -13
- package/src/operations/batchEndpoints.ts +26 -8
- package/src/operations/codeContainers.ts +26 -8
- package/src/operations/codeVersions.ts +27 -13
- package/src/operations/componentContainers.ts +26 -8
- package/src/operations/componentVersions.ts +27 -13
- package/src/operations/computeOperations.ts +53 -22
- package/src/operations/dataContainers.ts +26 -8
- package/src/operations/dataVersions.ts +27 -13
- package/src/operations/datastores.ts +26 -8
- package/src/operations/environmentContainers.ts +26 -8
- package/src/operations/environmentVersions.ts +27 -13
- package/src/operations/jobs.ts +26 -8
- package/src/operations/modelContainers.ts +26 -8
- package/src/operations/modelVersions.ts +27 -13
- package/src/operations/onlineDeployments.ts +55 -28
- package/src/operations/onlineEndpoints.ts +26 -8
- package/src/operations/operations.ts +10 -5
- package/src/operations/privateEndpointConnections.ts +15 -5
- package/src/operations/quotas.ts +22 -9
- package/src/operations/schedules.ts +26 -8
- package/src/operations/usages.ts +21 -8
- package/src/operations/workspaceConnections.ts +27 -9
- package/src/operations/workspaceFeatures.ts +26 -8
- package/src/operations/workspaces.ts +46 -17
- package/src/pagingHelper.ts +39 -0
- package/types/arm-machinelearning.d.ts +9 -0
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Datastores } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -59,8 +60,16 @@ export class DatastoresImpl implements Datastores {
|
|
|
59
60
|
[Symbol.asyncIterator]() {
|
|
60
61
|
return this;
|
|
61
62
|
},
|
|
62
|
-
byPage: () => {
|
|
63
|
-
|
|
63
|
+
byPage: (settings?: PageSettings) => {
|
|
64
|
+
if (settings?.maxPageSize) {
|
|
65
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
66
|
+
}
|
|
67
|
+
return this.listPagingPage(
|
|
68
|
+
resourceGroupName,
|
|
69
|
+
workspaceName,
|
|
70
|
+
options,
|
|
71
|
+
settings
|
|
72
|
+
);
|
|
64
73
|
}
|
|
65
74
|
};
|
|
66
75
|
}
|
|
@@ -68,11 +77,18 @@ export class DatastoresImpl implements Datastores {
|
|
|
68
77
|
private async *listPagingPage(
|
|
69
78
|
resourceGroupName: string,
|
|
70
79
|
workspaceName: string,
|
|
71
|
-
options?: DatastoresListOptionalParams
|
|
80
|
+
options?: DatastoresListOptionalParams,
|
|
81
|
+
settings?: PageSettings
|
|
72
82
|
): AsyncIterableIterator<Datastore[]> {
|
|
73
|
-
let result
|
|
74
|
-
|
|
75
|
-
|
|
83
|
+
let result: DatastoresListResponse;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
76
92
|
while (continuationToken) {
|
|
77
93
|
result = await this._listNext(
|
|
78
94
|
resourceGroupName,
|
|
@@ -81,7 +97,9 @@ export class DatastoresImpl implements Datastores {
|
|
|
81
97
|
options
|
|
82
98
|
);
|
|
83
99
|
continuationToken = result.nextLink;
|
|
84
|
-
|
|
100
|
+
let page = result.value || [];
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
85
103
|
}
|
|
86
104
|
}
|
|
87
105
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { EnvironmentContainers } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -57,8 +58,16 @@ export class EnvironmentContainersImpl implements EnvironmentContainers {
|
|
|
57
58
|
[Symbol.asyncIterator]() {
|
|
58
59
|
return this;
|
|
59
60
|
},
|
|
60
|
-
byPage: () => {
|
|
61
|
-
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
workspaceName,
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
70
|
+
);
|
|
62
71
|
}
|
|
63
72
|
};
|
|
64
73
|
}
|
|
@@ -66,11 +75,18 @@ export class EnvironmentContainersImpl implements EnvironmentContainers {
|
|
|
66
75
|
private async *listPagingPage(
|
|
67
76
|
resourceGroupName: string,
|
|
68
77
|
workspaceName: string,
|
|
69
|
-
options?: EnvironmentContainersListOptionalParams
|
|
78
|
+
options?: EnvironmentContainersListOptionalParams,
|
|
79
|
+
settings?: PageSettings
|
|
70
80
|
): AsyncIterableIterator<EnvironmentContainer[]> {
|
|
71
|
-
let result
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
let result: EnvironmentContainersListResponse;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
setContinuationToken(page, continuationToken);
|
|
88
|
+
yield page;
|
|
89
|
+
}
|
|
74
90
|
while (continuationToken) {
|
|
75
91
|
result = await this._listNext(
|
|
76
92
|
resourceGroupName,
|
|
@@ -79,7 +95,9 @@ export class EnvironmentContainersImpl implements EnvironmentContainers {
|
|
|
79
95
|
options
|
|
80
96
|
);
|
|
81
97
|
continuationToken = result.nextLink;
|
|
82
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
83
101
|
}
|
|
84
102
|
}
|
|
85
103
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { EnvironmentVersions } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -64,12 +65,16 @@ export class EnvironmentVersionsImpl implements EnvironmentVersions {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listPagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
workspaceName,
|
|
71
75
|
name,
|
|
72
|
-
options
|
|
76
|
+
options,
|
|
77
|
+
settings
|
|
73
78
|
);
|
|
74
79
|
}
|
|
75
80
|
};
|
|
@@ -79,16 +84,23 @@ export class EnvironmentVersionsImpl implements EnvironmentVersions {
|
|
|
79
84
|
resourceGroupName: string,
|
|
80
85
|
workspaceName: string,
|
|
81
86
|
name: string,
|
|
82
|
-
options?: EnvironmentVersionsListOptionalParams
|
|
87
|
+
options?: EnvironmentVersionsListOptionalParams,
|
|
88
|
+
settings?: PageSettings
|
|
83
89
|
): AsyncIterableIterator<EnvironmentVersion[]> {
|
|
84
|
-
let result
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
let result: EnvironmentVersionsListResponse;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._list(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
workspaceName,
|
|
96
|
+
name,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
92
104
|
while (continuationToken) {
|
|
93
105
|
result = await this._listNext(
|
|
94
106
|
resourceGroupName,
|
|
@@ -98,7 +110,9 @@ export class EnvironmentVersionsImpl implements EnvironmentVersions {
|
|
|
98
110
|
options
|
|
99
111
|
);
|
|
100
112
|
continuationToken = result.nextLink;
|
|
101
|
-
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
102
116
|
}
|
|
103
117
|
}
|
|
104
118
|
|
package/src/operations/jobs.ts
CHANGED
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Jobs } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -60,8 +61,16 @@ export class JobsImpl implements Jobs {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
-
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
68
|
+
return this.listPagingPage(
|
|
69
|
+
resourceGroupName,
|
|
70
|
+
workspaceName,
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
73
|
+
);
|
|
65
74
|
}
|
|
66
75
|
};
|
|
67
76
|
}
|
|
@@ -69,11 +78,18 @@ export class JobsImpl implements Jobs {
|
|
|
69
78
|
private async *listPagingPage(
|
|
70
79
|
resourceGroupName: string,
|
|
71
80
|
workspaceName: string,
|
|
72
|
-
options?: JobsListOptionalParams
|
|
81
|
+
options?: JobsListOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
73
83
|
): AsyncIterableIterator<JobBase[]> {
|
|
74
|
-
let result
|
|
75
|
-
|
|
76
|
-
|
|
84
|
+
let result: JobsListResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
88
|
+
let page = result.value || [];
|
|
89
|
+
continuationToken = result.nextLink;
|
|
90
|
+
setContinuationToken(page, continuationToken);
|
|
91
|
+
yield page;
|
|
92
|
+
}
|
|
77
93
|
while (continuationToken) {
|
|
78
94
|
result = await this._listNext(
|
|
79
95
|
resourceGroupName,
|
|
@@ -82,7 +98,9 @@ export class JobsImpl implements Jobs {
|
|
|
82
98
|
options
|
|
83
99
|
);
|
|
84
100
|
continuationToken = result.nextLink;
|
|
85
|
-
|
|
101
|
+
let page = result.value || [];
|
|
102
|
+
setContinuationToken(page, continuationToken);
|
|
103
|
+
yield page;
|
|
86
104
|
}
|
|
87
105
|
}
|
|
88
106
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ModelContainers } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -57,8 +58,16 @@ export class ModelContainersImpl implements ModelContainers {
|
|
|
57
58
|
[Symbol.asyncIterator]() {
|
|
58
59
|
return this;
|
|
59
60
|
},
|
|
60
|
-
byPage: () => {
|
|
61
|
-
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
65
|
+
return this.listPagingPage(
|
|
66
|
+
resourceGroupName,
|
|
67
|
+
workspaceName,
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
70
|
+
);
|
|
62
71
|
}
|
|
63
72
|
};
|
|
64
73
|
}
|
|
@@ -66,11 +75,18 @@ export class ModelContainersImpl implements ModelContainers {
|
|
|
66
75
|
private async *listPagingPage(
|
|
67
76
|
resourceGroupName: string,
|
|
68
77
|
workspaceName: string,
|
|
69
|
-
options?: ModelContainersListOptionalParams
|
|
78
|
+
options?: ModelContainersListOptionalParams,
|
|
79
|
+
settings?: PageSettings
|
|
70
80
|
): AsyncIterableIterator<ModelContainer[]> {
|
|
71
|
-
let result
|
|
72
|
-
|
|
73
|
-
|
|
81
|
+
let result: ModelContainersListResponse;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
85
|
+
let page = result.value || [];
|
|
86
|
+
continuationToken = result.nextLink;
|
|
87
|
+
setContinuationToken(page, continuationToken);
|
|
88
|
+
yield page;
|
|
89
|
+
}
|
|
74
90
|
while (continuationToken) {
|
|
75
91
|
result = await this._listNext(
|
|
76
92
|
resourceGroupName,
|
|
@@ -79,7 +95,9 @@ export class ModelContainersImpl implements ModelContainers {
|
|
|
79
95
|
options
|
|
80
96
|
);
|
|
81
97
|
continuationToken = result.nextLink;
|
|
82
|
-
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
setContinuationToken(page, continuationToken);
|
|
100
|
+
yield page;
|
|
83
101
|
}
|
|
84
102
|
}
|
|
85
103
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ModelVersions } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -64,12 +65,16 @@ export class ModelVersionsImpl implements ModelVersions {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listPagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
workspaceName,
|
|
71
75
|
name,
|
|
72
|
-
options
|
|
76
|
+
options,
|
|
77
|
+
settings
|
|
73
78
|
);
|
|
74
79
|
}
|
|
75
80
|
};
|
|
@@ -79,16 +84,23 @@ export class ModelVersionsImpl implements ModelVersions {
|
|
|
79
84
|
resourceGroupName: string,
|
|
80
85
|
workspaceName: string,
|
|
81
86
|
name: string,
|
|
82
|
-
options?: ModelVersionsListOptionalParams
|
|
87
|
+
options?: ModelVersionsListOptionalParams,
|
|
88
|
+
settings?: PageSettings
|
|
83
89
|
): AsyncIterableIterator<ModelVersion[]> {
|
|
84
|
-
let result
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
let result: ModelVersionsListResponse;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._list(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
workspaceName,
|
|
96
|
+
name,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
92
104
|
while (continuationToken) {
|
|
93
105
|
result = await this._listNext(
|
|
94
106
|
resourceGroupName,
|
|
@@ -98,7 +110,9 @@ export class ModelVersionsImpl implements ModelVersions {
|
|
|
98
110
|
options
|
|
99
111
|
);
|
|
100
112
|
continuationToken = result.nextLink;
|
|
101
|
-
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
102
116
|
}
|
|
103
117
|
}
|
|
104
118
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { OnlineDeployments } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -18,10 +19,11 @@ import {
|
|
|
18
19
|
OnlineDeployment,
|
|
19
20
|
OnlineDeploymentsListNextOptionalParams,
|
|
20
21
|
OnlineDeploymentsListOptionalParams,
|
|
22
|
+
OnlineDeploymentsListResponse,
|
|
21
23
|
SkuResource,
|
|
22
24
|
OnlineDeploymentsListSkusNextOptionalParams,
|
|
23
25
|
OnlineDeploymentsListSkusOptionalParams,
|
|
24
|
-
|
|
26
|
+
OnlineDeploymentsListSkusResponse,
|
|
25
27
|
OnlineDeploymentsDeleteOptionalParams,
|
|
26
28
|
OnlineDeploymentsGetOptionalParams,
|
|
27
29
|
OnlineDeploymentsGetResponse,
|
|
@@ -33,7 +35,6 @@ import {
|
|
|
33
35
|
DeploymentLogsRequest,
|
|
34
36
|
OnlineDeploymentsGetLogsOptionalParams,
|
|
35
37
|
OnlineDeploymentsGetLogsResponse,
|
|
36
|
-
OnlineDeploymentsListSkusResponse,
|
|
37
38
|
OnlineDeploymentsListNextResponse,
|
|
38
39
|
OnlineDeploymentsListSkusNextResponse
|
|
39
40
|
} from "../models";
|
|
@@ -77,12 +78,16 @@ export class OnlineDeploymentsImpl implements OnlineDeployments {
|
|
|
77
78
|
[Symbol.asyncIterator]() {
|
|
78
79
|
return this;
|
|
79
80
|
},
|
|
80
|
-
byPage: () => {
|
|
81
|
+
byPage: (settings?: PageSettings) => {
|
|
82
|
+
if (settings?.maxPageSize) {
|
|
83
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
84
|
+
}
|
|
81
85
|
return this.listPagingPage(
|
|
82
86
|
resourceGroupName,
|
|
83
87
|
workspaceName,
|
|
84
88
|
endpointName,
|
|
85
|
-
options
|
|
89
|
+
options,
|
|
90
|
+
settings
|
|
86
91
|
);
|
|
87
92
|
}
|
|
88
93
|
};
|
|
@@ -92,16 +97,23 @@ export class OnlineDeploymentsImpl implements OnlineDeployments {
|
|
|
92
97
|
resourceGroupName: string,
|
|
93
98
|
workspaceName: string,
|
|
94
99
|
endpointName: string,
|
|
95
|
-
options?: OnlineDeploymentsListOptionalParams
|
|
100
|
+
options?: OnlineDeploymentsListOptionalParams,
|
|
101
|
+
settings?: PageSettings
|
|
96
102
|
): AsyncIterableIterator<OnlineDeployment[]> {
|
|
97
|
-
let result
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
103
|
+
let result: OnlineDeploymentsListResponse;
|
|
104
|
+
let continuationToken = settings?.continuationToken;
|
|
105
|
+
if (!continuationToken) {
|
|
106
|
+
result = await this._list(
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
workspaceName,
|
|
109
|
+
endpointName,
|
|
110
|
+
options
|
|
111
|
+
);
|
|
112
|
+
let page = result.value || [];
|
|
113
|
+
continuationToken = result.nextLink;
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
116
|
+
}
|
|
105
117
|
while (continuationToken) {
|
|
106
118
|
result = await this._listNext(
|
|
107
119
|
resourceGroupName,
|
|
@@ -111,7 +123,9 @@ export class OnlineDeploymentsImpl implements OnlineDeployments {
|
|
|
111
123
|
options
|
|
112
124
|
);
|
|
113
125
|
continuationToken = result.nextLink;
|
|
114
|
-
|
|
126
|
+
let page = result.value || [];
|
|
127
|
+
setContinuationToken(page, continuationToken);
|
|
128
|
+
yield page;
|
|
115
129
|
}
|
|
116
130
|
}
|
|
117
131
|
|
|
@@ -160,13 +174,17 @@ export class OnlineDeploymentsImpl implements OnlineDeployments {
|
|
|
160
174
|
[Symbol.asyncIterator]() {
|
|
161
175
|
return this;
|
|
162
176
|
},
|
|
163
|
-
byPage: () => {
|
|
177
|
+
byPage: (settings?: PageSettings) => {
|
|
178
|
+
if (settings?.maxPageSize) {
|
|
179
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
180
|
+
}
|
|
164
181
|
return this.listSkusPagingPage(
|
|
165
182
|
resourceGroupName,
|
|
166
183
|
workspaceName,
|
|
167
184
|
endpointName,
|
|
168
185
|
deploymentName,
|
|
169
|
-
options
|
|
186
|
+
options,
|
|
187
|
+
settings
|
|
170
188
|
);
|
|
171
189
|
}
|
|
172
190
|
};
|
|
@@ -177,17 +195,24 @@ export class OnlineDeploymentsImpl implements OnlineDeployments {
|
|
|
177
195
|
workspaceName: string,
|
|
178
196
|
endpointName: string,
|
|
179
197
|
deploymentName: string,
|
|
180
|
-
options?: OnlineDeploymentsListSkusOptionalParams
|
|
198
|
+
options?: OnlineDeploymentsListSkusOptionalParams,
|
|
199
|
+
settings?: PageSettings
|
|
181
200
|
): AsyncIterableIterator<SkuResource[]> {
|
|
182
|
-
let result
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
201
|
+
let result: OnlineDeploymentsListSkusResponse;
|
|
202
|
+
let continuationToken = settings?.continuationToken;
|
|
203
|
+
if (!continuationToken) {
|
|
204
|
+
result = await this._listSkus(
|
|
205
|
+
resourceGroupName,
|
|
206
|
+
workspaceName,
|
|
207
|
+
endpointName,
|
|
208
|
+
deploymentName,
|
|
209
|
+
options
|
|
210
|
+
);
|
|
211
|
+
let page = result.value || [];
|
|
212
|
+
continuationToken = result.nextLink;
|
|
213
|
+
setContinuationToken(page, continuationToken);
|
|
214
|
+
yield page;
|
|
215
|
+
}
|
|
191
216
|
while (continuationToken) {
|
|
192
217
|
result = await this._listSkusNext(
|
|
193
218
|
resourceGroupName,
|
|
@@ -198,7 +223,9 @@ export class OnlineDeploymentsImpl implements OnlineDeployments {
|
|
|
198
223
|
options
|
|
199
224
|
);
|
|
200
225
|
continuationToken = result.nextLink;
|
|
201
|
-
|
|
226
|
+
let page = result.value || [];
|
|
227
|
+
setContinuationToken(page, continuationToken);
|
|
228
|
+
yield page;
|
|
202
229
|
}
|
|
203
230
|
}
|
|
204
231
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { OnlineEndpoints } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -68,8 +69,16 @@ export class OnlineEndpointsImpl implements OnlineEndpoints {
|
|
|
68
69
|
[Symbol.asyncIterator]() {
|
|
69
70
|
return this;
|
|
70
71
|
},
|
|
71
|
-
byPage: () => {
|
|
72
|
-
|
|
72
|
+
byPage: (settings?: PageSettings) => {
|
|
73
|
+
if (settings?.maxPageSize) {
|
|
74
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
75
|
+
}
|
|
76
|
+
return this.listPagingPage(
|
|
77
|
+
resourceGroupName,
|
|
78
|
+
workspaceName,
|
|
79
|
+
options,
|
|
80
|
+
settings
|
|
81
|
+
);
|
|
73
82
|
}
|
|
74
83
|
};
|
|
75
84
|
}
|
|
@@ -77,11 +86,18 @@ export class OnlineEndpointsImpl implements OnlineEndpoints {
|
|
|
77
86
|
private async *listPagingPage(
|
|
78
87
|
resourceGroupName: string,
|
|
79
88
|
workspaceName: string,
|
|
80
|
-
options?: OnlineEndpointsListOptionalParams
|
|
89
|
+
options?: OnlineEndpointsListOptionalParams,
|
|
90
|
+
settings?: PageSettings
|
|
81
91
|
): AsyncIterableIterator<OnlineEndpoint[]> {
|
|
82
|
-
let result
|
|
83
|
-
|
|
84
|
-
|
|
92
|
+
let result: OnlineEndpointsListResponse;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._list(resourceGroupName, workspaceName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
85
101
|
while (continuationToken) {
|
|
86
102
|
result = await this._listNext(
|
|
87
103
|
resourceGroupName,
|
|
@@ -90,7 +106,9 @@ export class OnlineEndpointsImpl implements OnlineEndpoints {
|
|
|
90
106
|
options
|
|
91
107
|
);
|
|
92
108
|
continuationToken = result.nextLink;
|
|
93
|
-
|
|
109
|
+
let page = result.value || [];
|
|
110
|
+
setContinuationToken(page, continuationToken);
|
|
111
|
+
yield page;
|
|
94
112
|
}
|
|
95
113
|
}
|
|
96
114
|
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
10
|
import { Operations } from "../operationsInterfaces";
|
|
11
11
|
import * as coreClient from "@azure/core-client";
|
|
12
12
|
import * as Mappers from "../models/mappers";
|
|
@@ -46,16 +46,21 @@ export class OperationsImpl implements Operations {
|
|
|
46
46
|
[Symbol.asyncIterator]() {
|
|
47
47
|
return this;
|
|
48
48
|
},
|
|
49
|
-
byPage: () => {
|
|
50
|
-
|
|
49
|
+
byPage: (settings?: PageSettings) => {
|
|
50
|
+
if (settings?.maxPageSize) {
|
|
51
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
52
|
+
}
|
|
53
|
+
return this.listPagingPage(options, settings);
|
|
51
54
|
}
|
|
52
55
|
};
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
private async *listPagingPage(
|
|
56
|
-
options?: OperationsListOptionalParams
|
|
59
|
+
options?: OperationsListOptionalParams,
|
|
60
|
+
_settings?: PageSettings
|
|
57
61
|
): AsyncIterableIterator<AmlOperation[]> {
|
|
58
|
-
let result
|
|
62
|
+
let result: OperationsListResponse;
|
|
63
|
+
result = await this._list(options);
|
|
59
64
|
yield result.value || [];
|
|
60
65
|
}
|
|
61
66
|
|