@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
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing Catalogs operations. */
|
|
20
20
|
class CatalogsImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class Catalogs class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class CatalogsImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings);
|
|
48
49
|
},
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listByDevCenterPagingPage(resourceGroupName, devCenterName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._listByDevCenter(resourceGroupName, devCenterName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listByDevCenterNext(resourceGroupName, devCenterName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listByDevCenterPagingAll(resourceGroupName, devCenterName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listByDevCenterPagingAll(resourceGroupName, devCenterName, options) {
|
|
71
|
+
for await (const page of this.listByDevCenterPagingPage(resourceGroupName, devCenterName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* Lists catalogs for a devcenter.
|
|
@@ -120,14 +104,19 @@ class CatalogsImpl {
|
|
|
120
104
|
return this.client.sendOperationRequest(args, spec);
|
|
121
105
|
};
|
|
122
106
|
const sendOperationFn = async (args, spec) => {
|
|
123
|
-
var _a;
|
|
124
107
|
let currentRawResponse = undefined;
|
|
125
|
-
const providedCallback =
|
|
108
|
+
const providedCallback = args.options?.onResponse;
|
|
126
109
|
const callback = (rawResponse, flatResponse) => {
|
|
127
110
|
currentRawResponse = rawResponse;
|
|
128
|
-
providedCallback
|
|
111
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
112
|
+
};
|
|
113
|
+
const updatedArgs = {
|
|
114
|
+
...args,
|
|
115
|
+
options: {
|
|
116
|
+
...args.options,
|
|
117
|
+
onResponse: callback,
|
|
118
|
+
},
|
|
129
119
|
};
|
|
130
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
131
120
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
132
121
|
return {
|
|
133
122
|
flatResponse,
|
|
@@ -144,8 +133,8 @@ class CatalogsImpl {
|
|
|
144
133
|
spec: createOrUpdateOperationSpec,
|
|
145
134
|
});
|
|
146
135
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
147
|
-
restoreFrom: options
|
|
148
|
-
intervalInMs: options
|
|
136
|
+
restoreFrom: options?.resumeFrom,
|
|
137
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
149
138
|
resourceLocationConfig: "azure-async-operation",
|
|
150
139
|
});
|
|
151
140
|
await poller.poll();
|
|
@@ -176,14 +165,19 @@ class CatalogsImpl {
|
|
|
176
165
|
return this.client.sendOperationRequest(args, spec);
|
|
177
166
|
};
|
|
178
167
|
const sendOperationFn = async (args, spec) => {
|
|
179
|
-
var _a;
|
|
180
168
|
let currentRawResponse = undefined;
|
|
181
|
-
const providedCallback =
|
|
169
|
+
const providedCallback = args.options?.onResponse;
|
|
182
170
|
const callback = (rawResponse, flatResponse) => {
|
|
183
171
|
currentRawResponse = rawResponse;
|
|
184
|
-
providedCallback
|
|
172
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
173
|
+
};
|
|
174
|
+
const updatedArgs = {
|
|
175
|
+
...args,
|
|
176
|
+
options: {
|
|
177
|
+
...args.options,
|
|
178
|
+
onResponse: callback,
|
|
179
|
+
},
|
|
185
180
|
};
|
|
186
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
187
181
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
188
182
|
return {
|
|
189
183
|
flatResponse,
|
|
@@ -200,8 +194,8 @@ class CatalogsImpl {
|
|
|
200
194
|
spec: updateOperationSpec,
|
|
201
195
|
});
|
|
202
196
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
203
|
-
restoreFrom: options
|
|
204
|
-
intervalInMs: options
|
|
197
|
+
restoreFrom: options?.resumeFrom,
|
|
198
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
205
199
|
resourceLocationConfig: "azure-async-operation",
|
|
206
200
|
});
|
|
207
201
|
await poller.poll();
|
|
@@ -231,14 +225,19 @@ class CatalogsImpl {
|
|
|
231
225
|
return this.client.sendOperationRequest(args, spec);
|
|
232
226
|
};
|
|
233
227
|
const sendOperationFn = async (args, spec) => {
|
|
234
|
-
var _a;
|
|
235
228
|
let currentRawResponse = undefined;
|
|
236
|
-
const providedCallback =
|
|
229
|
+
const providedCallback = args.options?.onResponse;
|
|
237
230
|
const callback = (rawResponse, flatResponse) => {
|
|
238
231
|
currentRawResponse = rawResponse;
|
|
239
|
-
providedCallback
|
|
232
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
233
|
+
};
|
|
234
|
+
const updatedArgs = {
|
|
235
|
+
...args,
|
|
236
|
+
options: {
|
|
237
|
+
...args.options,
|
|
238
|
+
onResponse: callback,
|
|
239
|
+
},
|
|
240
240
|
};
|
|
241
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
242
241
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
243
242
|
return {
|
|
244
243
|
flatResponse,
|
|
@@ -255,8 +254,8 @@ class CatalogsImpl {
|
|
|
255
254
|
spec: deleteOperationSpec,
|
|
256
255
|
});
|
|
257
256
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
258
|
-
restoreFrom: options
|
|
259
|
-
intervalInMs: options
|
|
257
|
+
restoreFrom: options?.resumeFrom,
|
|
258
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
260
259
|
resourceLocationConfig: "azure-async-operation",
|
|
261
260
|
});
|
|
262
261
|
await poller.poll();
|
|
@@ -295,14 +294,19 @@ class CatalogsImpl {
|
|
|
295
294
|
return this.client.sendOperationRequest(args, spec);
|
|
296
295
|
};
|
|
297
296
|
const sendOperationFn = async (args, spec) => {
|
|
298
|
-
var _a;
|
|
299
297
|
let currentRawResponse = undefined;
|
|
300
|
-
const providedCallback =
|
|
298
|
+
const providedCallback = args.options?.onResponse;
|
|
301
299
|
const callback = (rawResponse, flatResponse) => {
|
|
302
300
|
currentRawResponse = rawResponse;
|
|
303
|
-
providedCallback
|
|
301
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
302
|
+
};
|
|
303
|
+
const updatedArgs = {
|
|
304
|
+
...args,
|
|
305
|
+
options: {
|
|
306
|
+
...args.options,
|
|
307
|
+
onResponse: callback,
|
|
308
|
+
},
|
|
304
309
|
};
|
|
305
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
306
310
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
307
311
|
return {
|
|
308
312
|
flatResponse,
|
|
@@ -319,8 +323,8 @@ class CatalogsImpl {
|
|
|
319
323
|
spec: syncOperationSpec,
|
|
320
324
|
});
|
|
321
325
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
322
|
-
restoreFrom: options
|
|
323
|
-
intervalInMs: options
|
|
326
|
+
restoreFrom: options?.resumeFrom,
|
|
327
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
324
328
|
resourceLocationConfig: "azure-async-operation",
|
|
325
329
|
});
|
|
326
330
|
await poller.poll();
|
|
@@ -349,14 +353,19 @@ class CatalogsImpl {
|
|
|
349
353
|
return this.client.sendOperationRequest(args, spec);
|
|
350
354
|
};
|
|
351
355
|
const sendOperationFn = async (args, spec) => {
|
|
352
|
-
var _a;
|
|
353
356
|
let currentRawResponse = undefined;
|
|
354
|
-
const providedCallback =
|
|
357
|
+
const providedCallback = args.options?.onResponse;
|
|
355
358
|
const callback = (rawResponse, flatResponse) => {
|
|
356
359
|
currentRawResponse = rawResponse;
|
|
357
|
-
providedCallback
|
|
360
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
361
|
+
};
|
|
362
|
+
const updatedArgs = {
|
|
363
|
+
...args,
|
|
364
|
+
options: {
|
|
365
|
+
...args.options,
|
|
366
|
+
onResponse: callback,
|
|
367
|
+
},
|
|
358
368
|
};
|
|
359
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
360
369
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
361
370
|
return {
|
|
362
371
|
flatResponse,
|
|
@@ -373,8 +382,8 @@ class CatalogsImpl {
|
|
|
373
382
|
spec: connectOperationSpec,
|
|
374
383
|
});
|
|
375
384
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
376
|
-
restoreFrom: options
|
|
377
|
-
intervalInMs: options
|
|
385
|
+
restoreFrom: options?.resumeFrom,
|
|
386
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
378
387
|
resourceLocationConfig: "azure-async-operation",
|
|
379
388
|
});
|
|
380
389
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"catalogs.js","sourceRoot":"","sources":["../../../src/operations/catalogs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAwB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IAGvB;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA+C;QAE/C,MAAM,IAAI,GAAG,IAAI,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microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Catalogs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Catalog,\n CatalogsListByDevCenterNextOptionalParams,\n CatalogsListByDevCenterOptionalParams,\n CatalogsListByDevCenterResponse,\n CatalogsGetOptionalParams,\n CatalogsGetResponse,\n CatalogsCreateOrUpdateOptionalParams,\n CatalogsCreateOrUpdateResponse,\n CatalogUpdate,\n CatalogsUpdateOptionalParams,\n CatalogsUpdateResponse,\n CatalogsDeleteOptionalParams,\n CatalogsDeleteResponse,\n CatalogsGetSyncErrorDetailsOptionalParams,\n CatalogsGetSyncErrorDetailsResponse,\n CatalogsSyncOptionalParams,\n CatalogsSyncResponse,\n CatalogsConnectOptionalParams,\n CatalogsConnectResponse,\n CatalogsListByDevCenterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Catalogs operations. */\nexport class CatalogsImpl implements Catalogs {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Catalogs class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists catalogs for a devcenter.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param options The options parameters.\n */\n public listByDevCenter(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n ): PagedAsyncIterableIterator<Catalog> {\n const iter = this.listByDevCenterPagingAll(\n resourceGroupName,\n devCenterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDevCenterPagingPage(\n resourceGroupName,\n devCenterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDevCenterPagingPage(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Catalog[]> {\n let result: CatalogsListByDevCenterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDevCenter(\n resourceGroupName,\n devCenterName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDevCenterNext(\n resourceGroupName,\n devCenterName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDevCenterPagingAll(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n ): AsyncIterableIterator<Catalog> {\n for await (const page of this.listByDevCenterPagingPage(\n resourceGroupName,\n devCenterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists catalogs for a devcenter.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param options The options parameters.\n */\n private _listByDevCenter(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n ): Promise<CatalogsListByDevCenterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, options },\n listByDevCenterOperationSpec,\n );\n }\n\n /**\n * Gets a catalog\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsGetOptionalParams,\n ): Promise<CatalogsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, catalogName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Represents a catalog.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: Catalog,\n options?: CatalogsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsCreateOrUpdateResponse>,\n CatalogsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, body, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsCreateOrUpdateResponse,\n OperationState<CatalogsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Represents a catalog.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: Catalog,\n options?: CatalogsCreateOrUpdateOptionalParams,\n ): Promise<CatalogsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n devCenterName,\n catalogName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Partially updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Updatable catalog properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: CatalogUpdate,\n options?: CatalogsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsUpdateResponse>,\n CatalogsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, body, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsUpdateResponse,\n OperationState<CatalogsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Partially updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Updatable catalog properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: CatalogUpdate,\n options?: CatalogsUpdateOptionalParams,\n ): Promise<CatalogsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n devCenterName,\n catalogName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a catalog resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsDeleteResponse>,\n CatalogsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsDeleteResponse,\n OperationState<CatalogsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a catalog resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsDeleteOptionalParams,\n ): Promise<CatalogsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n devCenterName,\n catalogName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets catalog synchronization error details\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n getSyncErrorDetails(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsGetSyncErrorDetailsOptionalParams,\n ): Promise<CatalogsGetSyncErrorDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, catalogName, options },\n getSyncErrorDetailsOperationSpec,\n );\n }\n\n /**\n * Syncs templates for a template source.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginSync(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsSyncOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<CatalogsSyncResponse>, CatalogsSyncResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsSyncResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, options },\n spec: syncOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsSyncResponse,\n OperationState<CatalogsSyncResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Syncs templates for a template source.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginSyncAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsSyncOptionalParams,\n ): Promise<CatalogsSyncResponse> {\n const poller = await this.beginSync(\n resourceGroupName,\n devCenterName,\n catalogName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Connects a catalog to enable syncing.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginConnect(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsConnectOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsConnectResponse>,\n CatalogsConnectResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsConnectResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, options },\n spec: connectOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsConnectResponse,\n OperationState<CatalogsConnectResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Connects a catalog to enable syncing.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginConnectAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsConnectOptionalParams,\n ): Promise<CatalogsConnectResponse> {\n const poller = await this.beginConnect(\n resourceGroupName,\n devCenterName,\n catalogName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByDevCenterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.\n * @param options The options parameters.\n */\n private _listByDevCenterNext(\n resourceGroupName: string,\n devCenterName: string,\n nextLink: string,\n options?: CatalogsListByDevCenterNextOptionalParams,\n ): Promise<CatalogsListByDevCenterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, nextLink, options },\n listByDevCenterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDevCenterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CatalogListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Catalog,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Catalog,\n },\n 201: {\n bodyMapper: Mappers.Catalog,\n },\n 202: {\n bodyMapper: Mappers.Catalog,\n },\n 204: {\n bodyMapper: Mappers.Catalog,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Catalog,\n },\n 201: {\n bodyMapper: Mappers.Catalog,\n },\n 202: {\n bodyMapper: Mappers.Catalog,\n },\n 204: {\n bodyMapper: Mappers.Catalog,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSyncErrorDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncErrorDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst syncOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n 201: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n 202: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n 204: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst connectOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n 201: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n 202: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n 204: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDevCenterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CatalogListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"catalogs.js","sourceRoot":"","sources":["../../../src/operations/catalogs.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAwB9C,4CAA4C;AAC5C,4CAA4C;AAC5C,MAAa,YAAY;IACN,MAAM,CAAkB;IAEzC;;;OAGG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O,CAAC,sBAAsB;SAC9C;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sBAAsB;SAC9C;QACD,GAAG,EAAE;YACH,aAAa,EAAE,OAAO,CAAC,sBAAsB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Catalogs } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n Catalog,\n CatalogsListByDevCenterNextOptionalParams,\n CatalogsListByDevCenterOptionalParams,\n CatalogsListByDevCenterResponse,\n CatalogsGetOptionalParams,\n CatalogsGetResponse,\n CatalogsCreateOrUpdateOptionalParams,\n CatalogsCreateOrUpdateResponse,\n CatalogUpdate,\n CatalogsUpdateOptionalParams,\n CatalogsUpdateResponse,\n CatalogsDeleteOptionalParams,\n CatalogsDeleteResponse,\n CatalogsGetSyncErrorDetailsOptionalParams,\n CatalogsGetSyncErrorDetailsResponse,\n CatalogsSyncOptionalParams,\n CatalogsSyncResponse,\n CatalogsConnectOptionalParams,\n CatalogsConnectResponse,\n CatalogsListByDevCenterNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Catalogs operations. */\nexport class CatalogsImpl implements Catalogs {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class Catalogs class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Lists catalogs for a devcenter.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param options The options parameters.\n */\n public listByDevCenter(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n ): PagedAsyncIterableIterator<Catalog> {\n const iter = this.listByDevCenterPagingAll(\n resourceGroupName,\n devCenterName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByDevCenterPagingPage(\n resourceGroupName,\n devCenterName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByDevCenterPagingPage(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Catalog[]> {\n let result: CatalogsListByDevCenterResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByDevCenter(\n resourceGroupName,\n devCenterName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByDevCenterNext(\n resourceGroupName,\n devCenterName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByDevCenterPagingAll(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n ): AsyncIterableIterator<Catalog> {\n for await (const page of this.listByDevCenterPagingPage(\n resourceGroupName,\n devCenterName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists catalogs for a devcenter.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param options The options parameters.\n */\n private _listByDevCenter(\n resourceGroupName: string,\n devCenterName: string,\n options?: CatalogsListByDevCenterOptionalParams,\n ): Promise<CatalogsListByDevCenterResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, options },\n listByDevCenterOperationSpec,\n );\n }\n\n /**\n * Gets a catalog\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsGetOptionalParams,\n ): Promise<CatalogsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, catalogName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Represents a catalog.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: Catalog,\n options?: CatalogsCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsCreateOrUpdateResponse>,\n CatalogsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, body, options },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsCreateOrUpdateResponse,\n OperationState<CatalogsCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Represents a catalog.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: Catalog,\n options?: CatalogsCreateOrUpdateOptionalParams,\n ): Promise<CatalogsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n devCenterName,\n catalogName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Partially updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Updatable catalog properties.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: CatalogUpdate,\n options?: CatalogsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsUpdateResponse>,\n CatalogsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, body, options },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsUpdateResponse,\n OperationState<CatalogsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Partially updates a catalog.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param body Updatable catalog properties.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n body: CatalogUpdate,\n options?: CatalogsUpdateOptionalParams,\n ): Promise<CatalogsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n devCenterName,\n catalogName,\n body,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes a catalog resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsDeleteResponse>,\n CatalogsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsDeleteResponse,\n OperationState<CatalogsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a catalog resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsDeleteOptionalParams,\n ): Promise<CatalogsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n devCenterName,\n catalogName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Gets catalog synchronization error details\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n getSyncErrorDetails(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsGetSyncErrorDetailsOptionalParams,\n ): Promise<CatalogsGetSyncErrorDetailsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, catalogName, options },\n getSyncErrorDetailsOperationSpec,\n );\n }\n\n /**\n * Syncs templates for a template source.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginSync(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsSyncOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<CatalogsSyncResponse>, CatalogsSyncResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsSyncResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, options },\n spec: syncOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsSyncResponse,\n OperationState<CatalogsSyncResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Syncs templates for a template source.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginSyncAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsSyncOptionalParams,\n ): Promise<CatalogsSyncResponse> {\n const poller = await this.beginSync(\n resourceGroupName,\n devCenterName,\n catalogName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Connects a catalog to enable syncing.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginConnect(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsConnectOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<CatalogsConnectResponse>,\n CatalogsConnectResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<CatalogsConnectResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: { resourceGroupName, devCenterName, catalogName, options },\n spec: connectOperationSpec,\n });\n const poller = await createHttpPoller<\n CatalogsConnectResponse,\n OperationState<CatalogsConnectResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Connects a catalog to enable syncing.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param catalogName The name of the Catalog.\n * @param options The options parameters.\n */\n async beginConnectAndWait(\n resourceGroupName: string,\n devCenterName: string,\n catalogName: string,\n options?: CatalogsConnectOptionalParams,\n ): Promise<CatalogsConnectResponse> {\n const poller = await this.beginConnect(\n resourceGroupName,\n devCenterName,\n catalogName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListByDevCenterNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param devCenterName The name of the devcenter.\n * @param nextLink The nextLink from the previous successful call to the ListByDevCenter method.\n * @param options The options parameters.\n */\n private _listByDevCenterNext(\n resourceGroupName: string,\n devCenterName: string,\n nextLink: string,\n options?: CatalogsListByDevCenterNextOptionalParams,\n ): Promise<CatalogsListByDevCenterNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, devCenterName, nextLink, options },\n listByDevCenterNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByDevCenterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CatalogListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.top],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Catalog,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Catalog,\n },\n 201: {\n bodyMapper: Mappers.Catalog,\n },\n 202: {\n bodyMapper: Mappers.Catalog,\n },\n 204: {\n bodyMapper: Mappers.Catalog,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Catalog,\n },\n 201: {\n bodyMapper: Mappers.Catalog,\n },\n 202: {\n bodyMapper: Mappers.Catalog,\n },\n 204: {\n bodyMapper: Mappers.Catalog,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.body6,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.CatalogsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSyncErrorDetailsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/getSyncErrorDetails\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.SyncErrorDetails,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst syncOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/sync\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n 201: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n 202: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n 204: {\n headersMapper: Mappers.CatalogsSyncHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst connectOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DevCenter/devcenters/{devCenterName}/catalogs/{catalogName}/connect\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n 201: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n 202: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n 204: {\n headersMapper: Mappers.CatalogsConnectHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.catalogName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByDevCenterNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CatalogListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.devCenterName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing CheckNameAvailability operations. */
|
|
16
16
|
class CheckNameAvailabilityImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class CheckNameAvailability class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkNameAvailability.js","sourceRoot":"","sources":["../../../src/operations/checkNameAvailability.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,yDAAyD;AACzD,MAAa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"checkNameAvailability.js","sourceRoot":"","sources":["../../../src/operations/checkNameAvailability.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAAkB;IAEzC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,OAAO,CACL,uBAAqD,EACrD,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,uBAAuB,EAAE,OAAO,EAAE,EACpC,oBAAoB,CACrB,CAAC;IACJ,CAAC;CACF;AAzBD,8DAyBC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,qFAAqF;IAC3F,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,uBAAuB;IAC/C,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CheckNameAvailability } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityExecuteOptionalParams,\n CheckNameAvailabilityExecuteResponse,\n} from \"../models/index.js\";\n\n/** Class containing CheckNameAvailability operations. */\nexport class CheckNameAvailabilityImpl implements CheckNameAvailability {\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class CheckNameAvailability class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Check the availability of name for resource\n * @param nameAvailabilityRequest The required parameters for checking if resource name is available.\n * @param options The options parameters.\n */\n execute(\n nameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityExecuteOptionalParams,\n ): Promise<CheckNameAvailabilityExecuteResponse> {\n return this.client.sendOperationRequest(\n { nameAvailabilityRequest, options },\n executeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst executeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.nameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing CheckScopedNameAvailability operations. */
|
|
16
16
|
class CheckScopedNameAvailabilityImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class CheckScopedNameAvailability class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkScopedNameAvailability.js","sourceRoot":"","sources":["../../../src/operations/checkScopedNameAvailability.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,+DAA+D;AAC/D,MAAa,+BAA+B;
|
|
1
|
+
{"version":3,"file":"checkScopedNameAvailability.js","sourceRoot":"","sources":["../../../src/operations/checkScopedNameAvailability.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,+DAA+D;AAC/D,MAAa,+BAA+B;IAGzB,MAAM,CAAkB;IAEzC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,OAAO,CACL,uBAA2D,EAC3D,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,uBAAuB,EAAE,OAAO,EAAE,EACpC,oBAAoB,CACrB,CAAC;IACJ,CAAC;CACF;AA3BD,0EA2BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,2FAA2F;IACjG,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wBAAwB;IAChD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { CheckScopedNameAvailability } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { DevCenterClient } from \"../devCenterClient.js\";\nimport {\n CheckScopedNameAvailabilityRequest,\n CheckScopedNameAvailabilityExecuteOptionalParams,\n CheckScopedNameAvailabilityExecuteResponse,\n} from \"../models/index.js\";\n\n/** Class containing CheckScopedNameAvailability operations. */\nexport class CheckScopedNameAvailabilityImpl\n implements CheckScopedNameAvailability\n{\n private readonly client: DevCenterClient;\n\n /**\n * Initialize a new instance of the class CheckScopedNameAvailability class.\n * @param client Reference to the service client\n */\n constructor(client: DevCenterClient) {\n this.client = client;\n }\n\n /**\n * Check the availability of name for resource\n * @param nameAvailabilityRequest The required parameters for checking if resource name is available.\n * @param options The options parameters.\n */\n execute(\n nameAvailabilityRequest: CheckScopedNameAvailabilityRequest,\n options?: CheckScopedNameAvailabilityExecuteOptionalParams,\n ): Promise<CheckScopedNameAvailabilityExecuteResponse> {\n return this.client.sendOperationRequest(\n { nameAvailabilityRequest, options },\n executeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst executeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DevCenter/checkScopedNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.nameAvailabilityRequest1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|