@azure/arm-devcenter 1.1.1-alpha.20250718.1 → 1.1.1-alpha.20250721.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/dist/browser/devCenterClient.js +36 -5
- package/dist/browser/devCenterClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +445 -205
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/attachedNetworks.js +67 -91
- package/dist/browser/operations/attachedNetworks.js.map +1 -1
- package/dist/browser/operations/catalogs.js +78 -70
- package/dist/browser/operations/catalogs.js.map +1 -1
- package/dist/browser/operations/checkNameAvailability.js +1 -0
- package/dist/browser/operations/checkNameAvailability.js.map +1 -1
- package/dist/browser/operations/checkScopedNameAvailability.js +1 -0
- package/dist/browser/operations/checkScopedNameAvailability.js.map +1 -1
- package/dist/browser/operations/devBoxDefinitions.js +78 -97
- package/dist/browser/operations/devBoxDefinitions.js.map +1 -1
- package/dist/browser/operations/devCenters.js +78 -97
- package/dist/browser/operations/devCenters.js.map +1 -1
- package/dist/browser/operations/environmentDefinitions.js +45 -79
- package/dist/browser/operations/environmentDefinitions.js.map +1 -1
- package/dist/browser/operations/environmentTypes.js +23 -40
- package/dist/browser/operations/environmentTypes.js.map +1 -1
- package/dist/browser/operations/galleries.js +45 -52
- package/dist/browser/operations/galleries.js.map +1 -1
- package/dist/browser/operations/imageVersions.js +23 -40
- package/dist/browser/operations/imageVersions.js.map +1 -1
- package/dist/browser/operations/images.js +45 -79
- package/dist/browser/operations/images.js.map +1 -1
- package/dist/browser/operations/networkConnections.js +120 -168
- package/dist/browser/operations/networkConnections.js.map +1 -1
- package/dist/browser/operations/operationStatuses.js +1 -0
- package/dist/browser/operations/operationStatuses.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/pools.js +67 -64
- package/dist/browser/operations/pools.js.map +1 -1
- package/dist/browser/operations/projectAllowedEnvironmentTypes.js +23 -40
- package/dist/browser/operations/projectAllowedEnvironmentTypes.js.map +1 -1
- package/dist/browser/operations/projectCatalogEnvironmentDefinitions.js +1 -0
- package/dist/browser/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
- package/dist/browser/operations/projectCatalogs.js +78 -70
- package/dist/browser/operations/projectCatalogs.js.map +1 -1
- package/dist/browser/operations/projectEnvironmentTypes.js +23 -40
- package/dist/browser/operations/projectEnvironmentTypes.js.map +1 -1
- package/dist/browser/operations/projects.js +78 -97
- package/dist/browser/operations/projects.js.map +1 -1
- package/dist/browser/operations/schedules.js +56 -58
- package/dist/browser/operations/schedules.js.map +1 -1
- package/dist/browser/operations/skus.js +23 -40
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/devCenterClient.js +36 -5
- package/dist/commonjs/devCenterClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +445 -205
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/attachedNetworks.js +67 -90
- package/dist/commonjs/operations/attachedNetworks.js.map +1 -1
- package/dist/commonjs/operations/catalogs.js +78 -69
- package/dist/commonjs/operations/catalogs.js.map +1 -1
- package/dist/commonjs/operations/checkNameAvailability.js +1 -0
- package/dist/commonjs/operations/checkNameAvailability.js.map +1 -1
- package/dist/commonjs/operations/checkScopedNameAvailability.js +1 -0
- package/dist/commonjs/operations/checkScopedNameAvailability.js.map +1 -1
- package/dist/commonjs/operations/devBoxDefinitions.js +78 -96
- package/dist/commonjs/operations/devBoxDefinitions.js.map +1 -1
- package/dist/commonjs/operations/devCenters.js +78 -96
- package/dist/commonjs/operations/devCenters.js.map +1 -1
- package/dist/commonjs/operations/environmentDefinitions.js +45 -78
- package/dist/commonjs/operations/environmentDefinitions.js.map +1 -1
- package/dist/commonjs/operations/environmentTypes.js +23 -39
- package/dist/commonjs/operations/environmentTypes.js.map +1 -1
- package/dist/commonjs/operations/galleries.js +45 -51
- package/dist/commonjs/operations/galleries.js.map +1 -1
- package/dist/commonjs/operations/imageVersions.js +23 -39
- package/dist/commonjs/operations/imageVersions.js.map +1 -1
- package/dist/commonjs/operations/images.js +45 -78
- package/dist/commonjs/operations/images.js.map +1 -1
- package/dist/commonjs/operations/networkConnections.js +120 -167
- package/dist/commonjs/operations/networkConnections.js.map +1 -1
- package/dist/commonjs/operations/operationStatuses.js +1 -0
- package/dist/commonjs/operations/operationStatuses.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/pools.js +67 -63
- package/dist/commonjs/operations/pools.js.map +1 -1
- package/dist/commonjs/operations/projectAllowedEnvironmentTypes.js +23 -39
- package/dist/commonjs/operations/projectAllowedEnvironmentTypes.js.map +1 -1
- package/dist/commonjs/operations/projectCatalogEnvironmentDefinitions.js +1 -0
- package/dist/commonjs/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
- package/dist/commonjs/operations/projectCatalogs.js +78 -69
- package/dist/commonjs/operations/projectCatalogs.js.map +1 -1
- package/dist/commonjs/operations/projectEnvironmentTypes.js +23 -39
- package/dist/commonjs/operations/projectEnvironmentTypes.js.map +1 -1
- package/dist/commonjs/operations/projects.js +78 -96
- package/dist/commonjs/operations/projects.js.map +1 -1
- package/dist/commonjs/operations/schedules.js +56 -57
- package/dist/commonjs/operations/schedules.js.map +1 -1
- package/dist/commonjs/operations/skus.js +23 -39
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/devCenterClient.js +36 -5
- package/dist/esm/devCenterClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +445 -205
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/attachedNetworks.js +67 -91
- package/dist/esm/operations/attachedNetworks.js.map +1 -1
- package/dist/esm/operations/catalogs.js +78 -70
- package/dist/esm/operations/catalogs.js.map +1 -1
- package/dist/esm/operations/checkNameAvailability.js +1 -0
- package/dist/esm/operations/checkNameAvailability.js.map +1 -1
- package/dist/esm/operations/checkScopedNameAvailability.js +1 -0
- package/dist/esm/operations/checkScopedNameAvailability.js.map +1 -1
- package/dist/esm/operations/devBoxDefinitions.js +78 -97
- package/dist/esm/operations/devBoxDefinitions.js.map +1 -1
- package/dist/esm/operations/devCenters.js +78 -97
- package/dist/esm/operations/devCenters.js.map +1 -1
- package/dist/esm/operations/environmentDefinitions.js +45 -79
- package/dist/esm/operations/environmentDefinitions.js.map +1 -1
- package/dist/esm/operations/environmentTypes.js +23 -40
- package/dist/esm/operations/environmentTypes.js.map +1 -1
- package/dist/esm/operations/galleries.js +45 -52
- package/dist/esm/operations/galleries.js.map +1 -1
- package/dist/esm/operations/imageVersions.js +23 -40
- package/dist/esm/operations/imageVersions.js.map +1 -1
- package/dist/esm/operations/images.js +45 -79
- package/dist/esm/operations/images.js.map +1 -1
- package/dist/esm/operations/networkConnections.js +120 -168
- package/dist/esm/operations/networkConnections.js.map +1 -1
- package/dist/esm/operations/operationStatuses.js +1 -0
- package/dist/esm/operations/operationStatuses.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/pools.js +67 -64
- package/dist/esm/operations/pools.js.map +1 -1
- package/dist/esm/operations/projectAllowedEnvironmentTypes.js +23 -40
- package/dist/esm/operations/projectAllowedEnvironmentTypes.js.map +1 -1
- package/dist/esm/operations/projectCatalogEnvironmentDefinitions.js +1 -0
- package/dist/esm/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
- package/dist/esm/operations/projectCatalogs.js +78 -70
- package/dist/esm/operations/projectCatalogs.js.map +1 -1
- package/dist/esm/operations/projectEnvironmentTypes.js +23 -40
- package/dist/esm/operations/projectEnvironmentTypes.js.map +1 -1
- package/dist/esm/operations/projects.js +78 -97
- package/dist/esm/operations/projects.js.map +1 -1
- package/dist/esm/operations/schedules.js +56 -58
- package/dist/esm/operations/schedules.js.map +1 -1
- package/dist/esm/operations/skus.js +23 -40
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/devCenterClient.js +36 -5
- package/dist/react-native/devCenterClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +445 -205
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/attachedNetworks.js +67 -91
- package/dist/react-native/operations/attachedNetworks.js.map +1 -1
- package/dist/react-native/operations/catalogs.js +78 -70
- package/dist/react-native/operations/catalogs.js.map +1 -1
- package/dist/react-native/operations/checkNameAvailability.js +1 -0
- package/dist/react-native/operations/checkNameAvailability.js.map +1 -1
- package/dist/react-native/operations/checkScopedNameAvailability.js +1 -0
- package/dist/react-native/operations/checkScopedNameAvailability.js.map +1 -1
- package/dist/react-native/operations/devBoxDefinitions.js +78 -97
- package/dist/react-native/operations/devBoxDefinitions.js.map +1 -1
- package/dist/react-native/operations/devCenters.js +78 -97
- package/dist/react-native/operations/devCenters.js.map +1 -1
- package/dist/react-native/operations/environmentDefinitions.js +45 -79
- package/dist/react-native/operations/environmentDefinitions.js.map +1 -1
- package/dist/react-native/operations/environmentTypes.js +23 -40
- package/dist/react-native/operations/environmentTypes.js.map +1 -1
- package/dist/react-native/operations/galleries.js +45 -52
- package/dist/react-native/operations/galleries.js.map +1 -1
- package/dist/react-native/operations/imageVersions.js +23 -40
- package/dist/react-native/operations/imageVersions.js.map +1 -1
- package/dist/react-native/operations/images.js +45 -79
- package/dist/react-native/operations/images.js.map +1 -1
- package/dist/react-native/operations/networkConnections.js +120 -168
- package/dist/react-native/operations/networkConnections.js.map +1 -1
- package/dist/react-native/operations/operationStatuses.js +1 -0
- package/dist/react-native/operations/operationStatuses.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/pools.js +67 -64
- package/dist/react-native/operations/pools.js.map +1 -1
- package/dist/react-native/operations/projectAllowedEnvironmentTypes.js +23 -40
- package/dist/react-native/operations/projectAllowedEnvironmentTypes.js.map +1 -1
- package/dist/react-native/operations/projectCatalogEnvironmentDefinitions.js +1 -0
- package/dist/react-native/operations/projectCatalogEnvironmentDefinitions.js.map +1 -1
- package/dist/react-native/operations/projectCatalogs.js +78 -70
- package/dist/react-native/operations/projectCatalogs.js.map +1 -1
- package/dist/react-native/operations/projectEnvironmentTypes.js +23 -40
- package/dist/react-native/operations/projectEnvironmentTypes.js.map +1 -1
- package/dist/react-native/operations/projects.js +78 -97
- package/dist/react-native/operations/projects.js.map +1 -1
- package/dist/react-native/operations/schedules.js +56 -58
- package/dist/react-native/operations/schedules.js.map +1 -1
- package/dist/react-native/operations/skus.js +23 -40
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-devcenter-node.api.md +2567 -2567
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing NetworkConnections operations. */
|
|
17
16
|
export class NetworkConnectionsImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class NetworkConnections class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class NetworkConnectionsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listBySubscriptionPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listBySubscription(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listBySubscriptionNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listBySubscriptionPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listBySubscriptionPagingAll(options) {
|
|
65
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Lists network connections in a resource group
|
|
@@ -98,52 +81,35 @@ export class NetworkConnectionsImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Lists health check status details
|
|
@@ -161,39 +127,22 @@ export class NetworkConnectionsImpl {
|
|
|
161
127
|
return this;
|
|
162
128
|
},
|
|
163
129
|
byPage: (settings) => {
|
|
164
|
-
if (settings
|
|
130
|
+
if (settings?.maxPageSize) {
|
|
165
131
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
166
132
|
}
|
|
167
133
|
return this.listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options, settings);
|
|
168
134
|
},
|
|
169
135
|
};
|
|
170
136
|
}
|
|
171
|
-
listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options, _settings) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
yield yield __await(result.value || []);
|
|
176
|
-
});
|
|
137
|
+
async *listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options, _settings) {
|
|
138
|
+
let result;
|
|
139
|
+
result = await this._listHealthDetails(resourceGroupName, networkConnectionName, options);
|
|
140
|
+
yield result.value || [];
|
|
177
141
|
}
|
|
178
|
-
listHealthDetailsPagingAll(resourceGroupName, networkConnectionName, options) {
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
for (var _d = true, _e = __asyncValues(this.listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
183
|
-
_c = _f.value;
|
|
184
|
-
_d = false;
|
|
185
|
-
const page = _c;
|
|
186
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
190
|
-
finally {
|
|
191
|
-
try {
|
|
192
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
193
|
-
}
|
|
194
|
-
finally { if (e_3) throw e_3.error; }
|
|
195
|
-
}
|
|
196
|
-
});
|
|
142
|
+
async *listHealthDetailsPagingAll(resourceGroupName, networkConnectionName, options) {
|
|
143
|
+
for await (const page of this.listHealthDetailsPagingPage(resourceGroupName, networkConnectionName, options)) {
|
|
144
|
+
yield* page;
|
|
145
|
+
}
|
|
197
146
|
}
|
|
198
147
|
/**
|
|
199
148
|
* Lists the endpoints that agents may call as part of Dev Box service administration. These FQDNs
|
|
@@ -212,52 +161,35 @@ export class NetworkConnectionsImpl {
|
|
|
212
161
|
return this;
|
|
213
162
|
},
|
|
214
163
|
byPage: (settings) => {
|
|
215
|
-
if (settings
|
|
164
|
+
if (settings?.maxPageSize) {
|
|
216
165
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
217
166
|
}
|
|
218
167
|
return this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options, settings);
|
|
219
168
|
},
|
|
220
169
|
};
|
|
221
170
|
}
|
|
222
|
-
listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options, settings) {
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
}
|
|
240
|
-
});
|
|
171
|
+
async *listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options, settings) {
|
|
172
|
+
let result;
|
|
173
|
+
let continuationToken = settings?.continuationToken;
|
|
174
|
+
if (!continuationToken) {
|
|
175
|
+
result = await this._listOutboundNetworkDependenciesEndpoints(resourceGroupName, networkConnectionName, options);
|
|
176
|
+
let page = result.value || [];
|
|
177
|
+
continuationToken = result.nextLink;
|
|
178
|
+
setContinuationToken(page, continuationToken);
|
|
179
|
+
yield page;
|
|
180
|
+
}
|
|
181
|
+
while (continuationToken) {
|
|
182
|
+
result = await this._listOutboundNetworkDependenciesEndpointsNext(resourceGroupName, networkConnectionName, continuationToken, options);
|
|
183
|
+
continuationToken = result.nextLink;
|
|
184
|
+
let page = result.value || [];
|
|
185
|
+
setContinuationToken(page, continuationToken);
|
|
186
|
+
yield page;
|
|
187
|
+
}
|
|
241
188
|
}
|
|
242
|
-
listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, networkConnectionName, options) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
for (var _d = true, _e = __asyncValues(this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
247
|
-
_c = _f.value;
|
|
248
|
-
_d = false;
|
|
249
|
-
const page = _c;
|
|
250
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
254
|
-
finally {
|
|
255
|
-
try {
|
|
256
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
257
|
-
}
|
|
258
|
-
finally { if (e_4) throw e_4.error; }
|
|
259
|
-
}
|
|
260
|
-
});
|
|
189
|
+
async *listOutboundNetworkDependenciesEndpointsPagingAll(resourceGroupName, networkConnectionName, options) {
|
|
190
|
+
for await (const page of this.listOutboundNetworkDependenciesEndpointsPagingPage(resourceGroupName, networkConnectionName, options)) {
|
|
191
|
+
yield* page;
|
|
192
|
+
}
|
|
261
193
|
}
|
|
262
194
|
/**
|
|
263
195
|
* Lists network connections in a subscription
|
|
@@ -295,14 +227,19 @@ export class NetworkConnectionsImpl {
|
|
|
295
227
|
return this.client.sendOperationRequest(args, spec);
|
|
296
228
|
};
|
|
297
229
|
const sendOperationFn = async (args, spec) => {
|
|
298
|
-
var _a;
|
|
299
230
|
let currentRawResponse = undefined;
|
|
300
|
-
const providedCallback =
|
|
231
|
+
const providedCallback = args.options?.onResponse;
|
|
301
232
|
const callback = (rawResponse, flatResponse) => {
|
|
302
233
|
currentRawResponse = rawResponse;
|
|
303
|
-
providedCallback
|
|
234
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
235
|
+
};
|
|
236
|
+
const updatedArgs = {
|
|
237
|
+
...args,
|
|
238
|
+
options: {
|
|
239
|
+
...args.options,
|
|
240
|
+
onResponse: callback,
|
|
241
|
+
},
|
|
304
242
|
};
|
|
305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
306
243
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
244
|
return {
|
|
308
245
|
flatResponse,
|
|
@@ -319,8 +256,8 @@ export class NetworkConnectionsImpl {
|
|
|
319
256
|
spec: createOrUpdateOperationSpec,
|
|
320
257
|
});
|
|
321
258
|
const poller = await createHttpPoller(lro, {
|
|
322
|
-
restoreFrom: options
|
|
323
|
-
intervalInMs: options
|
|
259
|
+
restoreFrom: options?.resumeFrom,
|
|
260
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
324
261
|
resourceLocationConfig: "azure-async-operation",
|
|
325
262
|
});
|
|
326
263
|
await poller.poll();
|
|
@@ -349,14 +286,19 @@ export class NetworkConnectionsImpl {
|
|
|
349
286
|
return this.client.sendOperationRequest(args, spec);
|
|
350
287
|
};
|
|
351
288
|
const sendOperationFn = async (args, spec) => {
|
|
352
|
-
var _a;
|
|
353
289
|
let currentRawResponse = undefined;
|
|
354
|
-
const providedCallback =
|
|
290
|
+
const providedCallback = args.options?.onResponse;
|
|
355
291
|
const callback = (rawResponse, flatResponse) => {
|
|
356
292
|
currentRawResponse = rawResponse;
|
|
357
|
-
providedCallback
|
|
293
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
294
|
+
};
|
|
295
|
+
const updatedArgs = {
|
|
296
|
+
...args,
|
|
297
|
+
options: {
|
|
298
|
+
...args.options,
|
|
299
|
+
onResponse: callback,
|
|
300
|
+
},
|
|
358
301
|
};
|
|
359
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
302
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
361
303
|
return {
|
|
362
304
|
flatResponse,
|
|
@@ -373,8 +315,8 @@ export class NetworkConnectionsImpl {
|
|
|
373
315
|
spec: updateOperationSpec,
|
|
374
316
|
});
|
|
375
317
|
const poller = await createHttpPoller(lro, {
|
|
376
|
-
restoreFrom: options
|
|
377
|
-
intervalInMs: options
|
|
318
|
+
restoreFrom: options?.resumeFrom,
|
|
319
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
378
320
|
resourceLocationConfig: "azure-async-operation",
|
|
379
321
|
});
|
|
380
322
|
await poller.poll();
|
|
@@ -402,14 +344,19 @@ export class NetworkConnectionsImpl {
|
|
|
402
344
|
return this.client.sendOperationRequest(args, spec);
|
|
403
345
|
};
|
|
404
346
|
const sendOperationFn = async (args, spec) => {
|
|
405
|
-
var _a;
|
|
406
347
|
let currentRawResponse = undefined;
|
|
407
|
-
const providedCallback =
|
|
348
|
+
const providedCallback = args.options?.onResponse;
|
|
408
349
|
const callback = (rawResponse, flatResponse) => {
|
|
409
350
|
currentRawResponse = rawResponse;
|
|
410
|
-
providedCallback
|
|
351
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
352
|
+
};
|
|
353
|
+
const updatedArgs = {
|
|
354
|
+
...args,
|
|
355
|
+
options: {
|
|
356
|
+
...args.options,
|
|
357
|
+
onResponse: callback,
|
|
358
|
+
},
|
|
411
359
|
};
|
|
412
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
413
360
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
414
361
|
return {
|
|
415
362
|
flatResponse,
|
|
@@ -426,8 +373,8 @@ export class NetworkConnectionsImpl {
|
|
|
426
373
|
spec: deleteOperationSpec,
|
|
427
374
|
});
|
|
428
375
|
const poller = await createHttpPoller(lro, {
|
|
429
|
-
restoreFrom: options
|
|
430
|
-
intervalInMs: options
|
|
376
|
+
restoreFrom: options?.resumeFrom,
|
|
377
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
431
378
|
resourceLocationConfig: "azure-async-operation",
|
|
432
379
|
});
|
|
433
380
|
await poller.poll();
|
|
@@ -473,14 +420,19 @@ export class NetworkConnectionsImpl {
|
|
|
473
420
|
return this.client.sendOperationRequest(args, spec);
|
|
474
421
|
};
|
|
475
422
|
const sendOperationFn = async (args, spec) => {
|
|
476
|
-
var _a;
|
|
477
423
|
let currentRawResponse = undefined;
|
|
478
|
-
const providedCallback =
|
|
424
|
+
const providedCallback = args.options?.onResponse;
|
|
479
425
|
const callback = (rawResponse, flatResponse) => {
|
|
480
426
|
currentRawResponse = rawResponse;
|
|
481
|
-
providedCallback
|
|
427
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
428
|
+
};
|
|
429
|
+
const updatedArgs = {
|
|
430
|
+
...args,
|
|
431
|
+
options: {
|
|
432
|
+
...args.options,
|
|
433
|
+
onResponse: callback,
|
|
434
|
+
},
|
|
482
435
|
};
|
|
483
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
484
436
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
485
437
|
return {
|
|
486
438
|
flatResponse,
|
|
@@ -497,8 +449,8 @@ export class NetworkConnectionsImpl {
|
|
|
497
449
|
spec: runHealthChecksOperationSpec,
|
|
498
450
|
});
|
|
499
451
|
const poller = await createHttpPoller(lro, {
|
|
500
|
-
restoreFrom: options
|
|
501
|
-
intervalInMs: options
|
|
452
|
+
restoreFrom: options?.resumeFrom,
|
|
453
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
502
454
|
resourceLocationConfig: "azure-async-operation",
|
|
503
455
|
});
|
|
504
456
|
await poller.poll();
|