@azure/arm-durabletask 1.0.0 → 1.1.0
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/README.md +1 -1
- package/dist/browser/api/durableTaskContext.d.ts +3 -3
- package/dist/browser/api/durableTaskContext.js +3 -18
- package/dist/browser/api/durableTaskContext.js.map +1 -1
- package/dist/browser/api/index.d.ts +2 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +1 -1
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.js +3 -6
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/retentionPolicies/index.d.ts +1 -1
- package/dist/browser/api/retentionPolicies/index.js.map +1 -1
- package/dist/browser/api/retentionPolicies/operations.js +19 -36
- package/dist/browser/api/retentionPolicies/operations.js.map +1 -1
- package/dist/browser/api/schedulers/index.d.ts +2 -2
- package/dist/browser/api/schedulers/index.js +1 -1
- package/dist/browser/api/schedulers/index.js.map +1 -1
- package/dist/browser/api/schedulers/operations.d.ts +30 -2
- package/dist/browser/api/schedulers/operations.js +234 -31
- package/dist/browser/api/schedulers/operations.js.map +1 -1
- package/dist/browser/api/schedulers/options.d.ts +27 -0
- package/dist/browser/api/schedulers/options.js.map +1 -1
- package/dist/browser/api/taskHubs/index.d.ts +1 -1
- package/dist/browser/api/taskHubs/index.js.map +1 -1
- package/dist/browser/api/taskHubs/operations.js +10 -17
- package/dist/browser/api/taskHubs/operations.js.map +1 -1
- package/dist/browser/classic/index.d.ts +4 -4
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/schedulers/index.d.ts +16 -2
- package/dist/browser/classic/schedulers/index.js +8 -1
- package/dist/browser/classic/schedulers/index.js.map +1 -1
- package/dist/browser/durableTaskClient.d.ts +1 -1
- package/dist/browser/durableTaskClient.js.map +1 -1
- package/dist/browser/index.d.ts +16 -12
- package/dist/browser/index.js +1 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +166 -10
- package/dist/browser/models/models.js +184 -6
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +22 -25
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/browser/static-helpers/pagingHelpers.js +28 -3
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/browser/static-helpers/pollingHelpers.js +18 -2
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +20 -5
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/durableTaskContext.d.ts +3 -3
- package/dist/commonjs/api/durableTaskContext.js +43 -39
- package/dist/commonjs/api/durableTaskContext.js.map +7 -1
- package/dist/commonjs/api/index.d.ts +2 -1
- package/dist/commonjs/api/index.js +28 -8
- package/dist/commonjs/api/index.js.map +7 -1
- package/dist/commonjs/api/operations/index.d.ts +1 -1
- package/dist/commonjs/api/operations/index.js +28 -8
- package/dist/commonjs/api/operations/index.js.map +7 -1
- package/dist/commonjs/api/operations/operations.js +62 -33
- package/dist/commonjs/api/operations/operations.js.map +7 -1
- package/dist/commonjs/api/operations/options.js +16 -5
- package/dist/commonjs/api/operations/options.js.map +7 -1
- package/dist/commonjs/api/retentionPolicies/index.d.ts +1 -1
- package/dist/commonjs/api/retentionPolicies/index.js +36 -12
- package/dist/commonjs/api/retentionPolicies/index.js.map +7 -1
- package/dist/commonjs/api/retentionPolicies/operations.js +210 -176
- package/dist/commonjs/api/retentionPolicies/operations.js.map +7 -1
- package/dist/commonjs/api/retentionPolicies/options.js +16 -5
- package/dist/commonjs/api/retentionPolicies/options.js.map +7 -1
- package/dist/commonjs/api/schedulers/index.d.ts +2 -2
- package/dist/commonjs/api/schedulers/index.js +52 -13
- package/dist/commonjs/api/schedulers/index.js.map +7 -1
- package/dist/commonjs/api/schedulers/operations.d.ts +30 -2
- package/dist/commonjs/api/schedulers/operations.js +577 -189
- package/dist/commonjs/api/schedulers/operations.js.map +7 -1
- package/dist/commonjs/api/schedulers/options.d.ts +27 -0
- package/dist/commonjs/api/schedulers/options.js +16 -5
- package/dist/commonjs/api/schedulers/options.js.map +7 -1
- package/dist/commonjs/api/taskHubs/index.d.ts +1 -1
- package/dist/commonjs/api/taskHubs/index.js +34 -11
- package/dist/commonjs/api/taskHubs/index.js.map +7 -1
- package/dist/commonjs/api/taskHubs/operations.js +178 -133
- package/dist/commonjs/api/taskHubs/operations.js.map +7 -1
- package/dist/commonjs/api/taskHubs/options.js +16 -5
- package/dist/commonjs/api/taskHubs/options.js.map +7 -1
- package/dist/commonjs/classic/index.d.ts +4 -4
- package/dist/commonjs/classic/index.js +16 -5
- package/dist/commonjs/classic/index.js.map +7 -1
- package/dist/commonjs/classic/operations/index.js +34 -13
- package/dist/commonjs/classic/operations/index.js.map +7 -1
- package/dist/commonjs/classic/retentionPolicies/index.js +38 -17
- package/dist/commonjs/classic/retentionPolicies/index.js.map +7 -1
- package/dist/commonjs/classic/schedulers/index.d.ts +16 -2
- package/dist/commonjs/classic/schedulers/index.js +72 -18
- package/dist/commonjs/classic/schedulers/index.js.map +7 -1
- package/dist/commonjs/classic/taskHubs/index.js +37 -16
- package/dist/commonjs/classic/taskHubs/index.js.map +7 -1
- package/dist/commonjs/durableTaskClient.d.ts +1 -1
- package/dist/commonjs/durableTaskClient.js +56 -38
- package/dist/commonjs/durableTaskClient.js.map +7 -1
- package/dist/commonjs/index.d.ts +16 -12
- package/dist/commonjs/index.js +57 -21
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.js +29 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +2 -1
- package/dist/commonjs/models/index.js +48 -15
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +166 -10
- package/dist/commonjs/models/models.js +560 -370
- package/dist/commonjs/models/models.js.map +7 -1
- package/dist/commonjs/restorePollerHelpers.js +117 -110
- package/dist/commonjs/restorePollerHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +50 -40
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +125 -103
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +95 -76
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +167 -158
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/durableTaskContext.d.ts +3 -3
- package/dist/esm/api/durableTaskContext.js +3 -18
- package/dist/esm/api/durableTaskContext.js.map +1 -1
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +1 -1
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.js +3 -6
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/retentionPolicies/index.d.ts +1 -1
- package/dist/esm/api/retentionPolicies/index.js.map +1 -1
- package/dist/esm/api/retentionPolicies/operations.js +19 -36
- package/dist/esm/api/retentionPolicies/operations.js.map +1 -1
- package/dist/esm/api/schedulers/index.d.ts +2 -2
- package/dist/esm/api/schedulers/index.js +1 -1
- package/dist/esm/api/schedulers/index.js.map +1 -1
- package/dist/esm/api/schedulers/operations.d.ts +30 -2
- package/dist/esm/api/schedulers/operations.js +234 -31
- package/dist/esm/api/schedulers/operations.js.map +1 -1
- package/dist/esm/api/schedulers/options.d.ts +27 -0
- package/dist/esm/api/schedulers/options.js.map +1 -1
- package/dist/esm/api/taskHubs/index.d.ts +1 -1
- package/dist/esm/api/taskHubs/index.js.map +1 -1
- package/dist/esm/api/taskHubs/operations.js +10 -17
- package/dist/esm/api/taskHubs/operations.js.map +1 -1
- package/dist/esm/classic/index.d.ts +4 -4
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/schedulers/index.d.ts +16 -2
- package/dist/esm/classic/schedulers/index.js +8 -1
- package/dist/esm/classic/schedulers/index.js.map +1 -1
- package/dist/esm/durableTaskClient.d.ts +1 -1
- package/dist/esm/durableTaskClient.js.map +1 -1
- package/dist/esm/index.d.ts +16 -12
- package/dist/esm/index.js +1 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +166 -10
- package/dist/esm/models/models.js +184 -6
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +22 -25
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/esm/static-helpers/pagingHelpers.js +28 -3
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/esm/static-helpers/pollingHelpers.js +18 -2
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +20 -5
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/durableTaskContext.d.ts +3 -3
- package/dist/react-native/api/durableTaskContext.js +3 -18
- package/dist/react-native/api/durableTaskContext.js.map +1 -1
- package/dist/react-native/api/index.d.ts +2 -1
- package/dist/react-native/api/index.js +1 -1
- package/dist/react-native/api/index.js.map +1 -1
- package/dist/react-native/api/operations/index.d.ts +1 -1
- package/dist/react-native/api/operations/index.js.map +1 -1
- package/dist/react-native/api/operations/operations.js +3 -6
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/retentionPolicies/index.d.ts +1 -1
- package/dist/react-native/api/retentionPolicies/index.js.map +1 -1
- package/dist/react-native/api/retentionPolicies/operations.js +19 -36
- package/dist/react-native/api/retentionPolicies/operations.js.map +1 -1
- package/dist/react-native/api/schedulers/index.d.ts +2 -2
- package/dist/react-native/api/schedulers/index.js +1 -1
- package/dist/react-native/api/schedulers/index.js.map +1 -1
- package/dist/react-native/api/schedulers/operations.d.ts +30 -2
- package/dist/react-native/api/schedulers/operations.js +234 -31
- package/dist/react-native/api/schedulers/operations.js.map +1 -1
- package/dist/react-native/api/schedulers/options.d.ts +27 -0
- package/dist/react-native/api/schedulers/options.js.map +1 -1
- package/dist/react-native/api/taskHubs/index.d.ts +1 -1
- package/dist/react-native/api/taskHubs/index.js.map +1 -1
- package/dist/react-native/api/taskHubs/operations.js +10 -17
- package/dist/react-native/api/taskHubs/operations.js.map +1 -1
- package/dist/react-native/classic/index.d.ts +4 -4
- package/dist/react-native/classic/index.js.map +1 -1
- package/dist/react-native/classic/schedulers/index.d.ts +16 -2
- package/dist/react-native/classic/schedulers/index.js +8 -1
- package/dist/react-native/classic/schedulers/index.js.map +1 -1
- package/dist/react-native/durableTaskClient.d.ts +1 -1
- package/dist/react-native/durableTaskClient.js.map +1 -1
- package/dist/react-native/index.d.ts +16 -12
- package/dist/react-native/index.js +1 -1
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/models/index.d.ts +2 -1
- package/dist/react-native/models/index.js +1 -1
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +166 -10
- package/dist/react-native/models/models.js +184 -6
- package/dist/react-native/models/models.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +22 -25
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +2 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +28 -3
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +4 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +18 -2
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +20 -5
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +50 -59
|
@@ -1,224 +1,612 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var operations_exports = {};
|
|
19
|
+
__export(operations_exports, {
|
|
20
|
+
$delete: () => $delete,
|
|
21
|
+
_$deleteDeserialize: () => _$deleteDeserialize,
|
|
22
|
+
_$deleteSend: () => _$deleteSend,
|
|
23
|
+
_createOrUpdateDeserialize: () => _createOrUpdateDeserialize,
|
|
24
|
+
_createOrUpdatePrivateEndpointConnectionDeserialize: () => _createOrUpdatePrivateEndpointConnectionDeserialize,
|
|
25
|
+
_createOrUpdatePrivateEndpointConnectionSend: () => _createOrUpdatePrivateEndpointConnectionSend,
|
|
26
|
+
_createOrUpdateSend: () => _createOrUpdateSend,
|
|
27
|
+
_deletePrivateEndpointConnectionDeserialize: () => _deletePrivateEndpointConnectionDeserialize,
|
|
28
|
+
_deletePrivateEndpointConnectionSend: () => _deletePrivateEndpointConnectionSend,
|
|
29
|
+
_getDeserialize: () => _getDeserialize,
|
|
30
|
+
_getPrivateEndpointConnectionDeserialize: () => _getPrivateEndpointConnectionDeserialize,
|
|
31
|
+
_getPrivateEndpointConnectionSend: () => _getPrivateEndpointConnectionSend,
|
|
32
|
+
_getPrivateLinkDeserialize: () => _getPrivateLinkDeserialize,
|
|
33
|
+
_getPrivateLinkSend: () => _getPrivateLinkSend,
|
|
34
|
+
_getSend: () => _getSend,
|
|
35
|
+
_listByResourceGroupDeserialize: () => _listByResourceGroupDeserialize,
|
|
36
|
+
_listByResourceGroupSend: () => _listByResourceGroupSend,
|
|
37
|
+
_listBySubscriptionDeserialize: () => _listBySubscriptionDeserialize,
|
|
38
|
+
_listBySubscriptionSend: () => _listBySubscriptionSend,
|
|
39
|
+
_listPrivateEndpointConnectionsDeserialize: () => _listPrivateEndpointConnectionsDeserialize,
|
|
40
|
+
_listPrivateEndpointConnectionsSend: () => _listPrivateEndpointConnectionsSend,
|
|
41
|
+
_listPrivateLinksDeserialize: () => _listPrivateLinksDeserialize,
|
|
42
|
+
_listPrivateLinksSend: () => _listPrivateLinksSend,
|
|
43
|
+
_updateDeserialize: () => _updateDeserialize,
|
|
44
|
+
_updatePrivateEndpointConnectionDeserialize: () => _updatePrivateEndpointConnectionDeserialize,
|
|
45
|
+
_updatePrivateEndpointConnectionSend: () => _updatePrivateEndpointConnectionSend,
|
|
46
|
+
_updateSend: () => _updateSend,
|
|
47
|
+
createOrUpdate: () => createOrUpdate,
|
|
48
|
+
createOrUpdatePrivateEndpointConnection: () => createOrUpdatePrivateEndpointConnection,
|
|
49
|
+
deletePrivateEndpointConnection: () => deletePrivateEndpointConnection,
|
|
50
|
+
get: () => get,
|
|
51
|
+
getPrivateEndpointConnection: () => getPrivateEndpointConnection,
|
|
52
|
+
getPrivateLink: () => getPrivateLink,
|
|
53
|
+
listByResourceGroup: () => listByResourceGroup,
|
|
54
|
+
listBySubscription: () => listBySubscription,
|
|
55
|
+
listPrivateEndpointConnections: () => listPrivateEndpointConnections,
|
|
56
|
+
listPrivateLinks: () => listPrivateLinks,
|
|
57
|
+
update: () => update,
|
|
58
|
+
updatePrivateEndpointConnection: () => updatePrivateEndpointConnection
|
|
59
|
+
});
|
|
60
|
+
module.exports = __toCommonJS(operations_exports);
|
|
61
|
+
var import_models = require("../../models/models.js");
|
|
62
|
+
var import_pagingHelpers = require("../../static-helpers/pagingHelpers.js");
|
|
63
|
+
var import_pollingHelpers = require("../../static-helpers/pollingHelpers.js");
|
|
64
|
+
var import_urlTemplate = require("../../static-helpers/urlTemplate.js");
|
|
65
|
+
var import_core_client = require("@azure-rest/core-client");
|
|
66
|
+
function _listPrivateEndpointConnectionsSend(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
67
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
68
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections{?api%2Dversion}",
|
|
69
|
+
{
|
|
70
|
+
subscriptionId: context.subscriptionId,
|
|
71
|
+
resourceGroupName,
|
|
72
|
+
schedulerName,
|
|
73
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
return context.path(path).get({
|
|
80
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
81
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
async function _listPrivateEndpointConnectionsDeserialize(result) {
|
|
85
|
+
const expectedStatuses = ["200"];
|
|
86
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
87
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
88
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
89
|
+
throw error;
|
|
90
|
+
}
|
|
91
|
+
return (0, import_models._privateEndpointConnectionListResultDeserializer)(result.body);
|
|
92
|
+
}
|
|
93
|
+
function listPrivateEndpointConnections(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
94
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
95
|
+
context,
|
|
96
|
+
() => _listPrivateEndpointConnectionsSend(context, resourceGroupName, schedulerName, options),
|
|
97
|
+
_listPrivateEndpointConnectionsDeserialize,
|
|
98
|
+
["200"],
|
|
99
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" }
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function _deletePrivateEndpointConnectionSend(context, resourceGroupName, schedulerName, privateEndpointConnectionName, options = { requestOptions: {} }) {
|
|
103
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
104
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}",
|
|
105
|
+
{
|
|
106
|
+
subscriptionId: context.subscriptionId,
|
|
107
|
+
resourceGroupName,
|
|
108
|
+
schedulerName,
|
|
109
|
+
privateEndpointConnectionName,
|
|
110
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
|
|
117
|
+
}
|
|
118
|
+
async function _deletePrivateEndpointConnectionDeserialize(result) {
|
|
119
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
120
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
121
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
122
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
123
|
+
throw error;
|
|
124
|
+
}
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
function deletePrivateEndpointConnection(context, resourceGroupName, schedulerName, privateEndpointConnectionName, options = { requestOptions: {} }) {
|
|
128
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(
|
|
129
|
+
context,
|
|
130
|
+
_deletePrivateEndpointConnectionDeserialize,
|
|
131
|
+
["202", "204", "200"],
|
|
132
|
+
{
|
|
133
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
134
|
+
abortSignal: options?.abortSignal,
|
|
135
|
+
getInitialResponse: () => _deletePrivateEndpointConnectionSend(
|
|
136
|
+
context,
|
|
137
|
+
resourceGroupName,
|
|
138
|
+
schedulerName,
|
|
139
|
+
privateEndpointConnectionName,
|
|
140
|
+
options
|
|
141
|
+
),
|
|
142
|
+
resourceLocationConfig: "location",
|
|
143
|
+
apiVersion: context.apiVersion ?? "2026-02-01"
|
|
144
|
+
}
|
|
145
|
+
);
|
|
146
|
+
}
|
|
147
|
+
function _updatePrivateEndpointConnectionSend(context, resourceGroupName, schedulerName, privateEndpointConnectionName, properties, options = { requestOptions: {} }) {
|
|
148
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
149
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}",
|
|
150
|
+
{
|
|
151
|
+
subscriptionId: context.subscriptionId,
|
|
152
|
+
resourceGroupName,
|
|
153
|
+
schedulerName,
|
|
154
|
+
privateEndpointConnectionName,
|
|
155
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
156
|
+
},
|
|
157
|
+
{
|
|
158
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
159
|
+
}
|
|
160
|
+
);
|
|
161
|
+
return context.path(path).patch({
|
|
162
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
163
|
+
contentType: "application/json",
|
|
164
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
165
|
+
body: (0, import_models.privateEndpointConnectionUpdateSerializer)(properties)
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
async function _updatePrivateEndpointConnectionDeserialize(result) {
|
|
169
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
170
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
171
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
172
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
173
|
+
throw error;
|
|
174
|
+
}
|
|
175
|
+
return (0, import_models.privateEndpointConnectionDeserializer)(result.body);
|
|
176
|
+
}
|
|
177
|
+
function updatePrivateEndpointConnection(context, resourceGroupName, schedulerName, privateEndpointConnectionName, properties, options = { requestOptions: {} }) {
|
|
178
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(
|
|
179
|
+
context,
|
|
180
|
+
_updatePrivateEndpointConnectionDeserialize,
|
|
181
|
+
["200", "202", "201"],
|
|
182
|
+
{
|
|
183
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
184
|
+
abortSignal: options?.abortSignal,
|
|
185
|
+
getInitialResponse: () => _updatePrivateEndpointConnectionSend(
|
|
186
|
+
context,
|
|
187
|
+
resourceGroupName,
|
|
188
|
+
schedulerName,
|
|
189
|
+
privateEndpointConnectionName,
|
|
190
|
+
properties,
|
|
191
|
+
options
|
|
192
|
+
),
|
|
193
|
+
resourceLocationConfig: "location",
|
|
194
|
+
apiVersion: context.apiVersion ?? "2026-02-01"
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
function _createOrUpdatePrivateEndpointConnectionSend(context, resourceGroupName, schedulerName, privateEndpointConnectionName, resource, options = { requestOptions: {} }) {
|
|
199
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
200
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}",
|
|
201
|
+
{
|
|
202
|
+
subscriptionId: context.subscriptionId,
|
|
203
|
+
resourceGroupName,
|
|
204
|
+
schedulerName,
|
|
205
|
+
privateEndpointConnectionName,
|
|
206
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
210
|
+
}
|
|
211
|
+
);
|
|
212
|
+
return context.path(path).put({
|
|
213
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
214
|
+
contentType: "application/json",
|
|
215
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
216
|
+
body: (0, import_models.privateEndpointConnectionSerializer)(resource)
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
async function _createOrUpdatePrivateEndpointConnectionDeserialize(result) {
|
|
220
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
221
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
222
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
223
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
224
|
+
throw error;
|
|
225
|
+
}
|
|
226
|
+
return (0, import_models.privateEndpointConnectionDeserializer)(result.body);
|
|
227
|
+
}
|
|
228
|
+
function createOrUpdatePrivateEndpointConnection(context, resourceGroupName, schedulerName, privateEndpointConnectionName, resource, options = { requestOptions: {} }) {
|
|
229
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(
|
|
230
|
+
context,
|
|
231
|
+
_createOrUpdatePrivateEndpointConnectionDeserialize,
|
|
232
|
+
["200", "201", "202"],
|
|
233
|
+
{
|
|
234
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
235
|
+
abortSignal: options?.abortSignal,
|
|
236
|
+
getInitialResponse: () => _createOrUpdatePrivateEndpointConnectionSend(
|
|
237
|
+
context,
|
|
238
|
+
resourceGroupName,
|
|
239
|
+
schedulerName,
|
|
240
|
+
privateEndpointConnectionName,
|
|
241
|
+
resource,
|
|
242
|
+
options
|
|
243
|
+
),
|
|
244
|
+
resourceLocationConfig: "azure-async-operation",
|
|
245
|
+
apiVersion: context.apiVersion ?? "2026-02-01"
|
|
246
|
+
}
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
function _getPrivateEndpointConnectionSend(context, resourceGroupName, schedulerName, privateEndpointConnectionName, options = { requestOptions: {} }) {
|
|
250
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
251
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}",
|
|
252
|
+
{
|
|
253
|
+
subscriptionId: context.subscriptionId,
|
|
254
|
+
resourceGroupName,
|
|
255
|
+
schedulerName,
|
|
256
|
+
privateEndpointConnectionName,
|
|
257
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
258
|
+
},
|
|
259
|
+
{
|
|
260
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
261
|
+
}
|
|
262
|
+
);
|
|
263
|
+
return context.path(path).get({
|
|
264
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
265
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
async function _getPrivateEndpointConnectionDeserialize(result) {
|
|
269
|
+
const expectedStatuses = ["200"];
|
|
270
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
271
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
272
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
273
|
+
throw error;
|
|
274
|
+
}
|
|
275
|
+
return (0, import_models.privateEndpointConnectionDeserializer)(result.body);
|
|
276
|
+
}
|
|
277
|
+
async function getPrivateEndpointConnection(context, resourceGroupName, schedulerName, privateEndpointConnectionName, options = { requestOptions: {} }) {
|
|
278
|
+
const result = await _getPrivateEndpointConnectionSend(
|
|
279
|
+
context,
|
|
280
|
+
resourceGroupName,
|
|
281
|
+
schedulerName,
|
|
282
|
+
privateEndpointConnectionName,
|
|
283
|
+
options
|
|
284
|
+
);
|
|
285
|
+
return _getPrivateEndpointConnectionDeserialize(result);
|
|
286
|
+
}
|
|
287
|
+
function _listPrivateLinksSend(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
288
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
289
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateLinkResources{?api%2Dversion}",
|
|
290
|
+
{
|
|
291
|
+
subscriptionId: context.subscriptionId,
|
|
292
|
+
resourceGroupName,
|
|
293
|
+
schedulerName,
|
|
294
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
298
|
+
}
|
|
299
|
+
);
|
|
300
|
+
return context.path(path).get({
|
|
301
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
302
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
async function _listPrivateLinksDeserialize(result) {
|
|
306
|
+
const expectedStatuses = ["200"];
|
|
307
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
308
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
309
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
310
|
+
throw error;
|
|
311
|
+
}
|
|
312
|
+
return (0, import_models._schedulerPrivateLinkResourceListResultDeserializer)(result.body);
|
|
313
|
+
}
|
|
314
|
+
function listPrivateLinks(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
315
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
316
|
+
context,
|
|
317
|
+
() => _listPrivateLinksSend(context, resourceGroupName, schedulerName, options),
|
|
318
|
+
_listPrivateLinksDeserialize,
|
|
319
|
+
["200"],
|
|
320
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" }
|
|
321
|
+
);
|
|
322
|
+
}
|
|
323
|
+
function _getPrivateLinkSend(context, resourceGroupName, schedulerName, privateLinkResourceName, options = { requestOptions: {} }) {
|
|
324
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
325
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}/privateLinkResources/{privateLinkResourceName}{?api%2Dversion}",
|
|
326
|
+
{
|
|
327
|
+
subscriptionId: context.subscriptionId,
|
|
328
|
+
resourceGroupName,
|
|
329
|
+
schedulerName,
|
|
330
|
+
privateLinkResourceName,
|
|
331
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
335
|
+
}
|
|
336
|
+
);
|
|
337
|
+
return context.path(path).get({
|
|
338
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
339
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
async function _getPrivateLinkDeserialize(result) {
|
|
343
|
+
const expectedStatuses = ["200"];
|
|
344
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
345
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
346
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
347
|
+
throw error;
|
|
348
|
+
}
|
|
349
|
+
return (0, import_models.schedulerPrivateLinkResourceDeserializer)(result.body);
|
|
350
|
+
}
|
|
351
|
+
async function getPrivateLink(context, resourceGroupName, schedulerName, privateLinkResourceName, options = { requestOptions: {} }) {
|
|
352
|
+
const result = await _getPrivateLinkSend(
|
|
353
|
+
context,
|
|
354
|
+
resourceGroupName,
|
|
355
|
+
schedulerName,
|
|
356
|
+
privateLinkResourceName,
|
|
357
|
+
options
|
|
358
|
+
);
|
|
359
|
+
return _getPrivateLinkDeserialize(result);
|
|
360
|
+
}
|
|
28
361
|
function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
362
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
363
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.DurableTask/schedulers{?api%2Dversion}",
|
|
364
|
+
{
|
|
365
|
+
subscriptionId: context.subscriptionId,
|
|
366
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
367
|
+
},
|
|
368
|
+
{
|
|
369
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
370
|
+
}
|
|
371
|
+
);
|
|
372
|
+
return context.path(path).get({
|
|
373
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
374
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
375
|
+
});
|
|
42
376
|
}
|
|
43
377
|
async function _listBySubscriptionDeserialize(result) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
378
|
+
const expectedStatuses = ["200"];
|
|
379
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
380
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
381
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
382
|
+
throw error;
|
|
383
|
+
}
|
|
384
|
+
return (0, import_models._schedulerListResultDeserializer)(result.body);
|
|
51
385
|
}
|
|
52
|
-
/** List Schedulers by subscription */
|
|
53
386
|
function listBySubscription(context, options = { requestOptions: {} }) {
|
|
54
|
-
|
|
387
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
388
|
+
context,
|
|
389
|
+
() => _listBySubscriptionSend(context, options),
|
|
390
|
+
_listBySubscriptionDeserialize,
|
|
391
|
+
["200"],
|
|
392
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" }
|
|
393
|
+
);
|
|
55
394
|
}
|
|
56
395
|
function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
396
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
397
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers{?api%2Dversion}",
|
|
398
|
+
{
|
|
399
|
+
subscriptionId: context.subscriptionId,
|
|
400
|
+
resourceGroupName,
|
|
401
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
405
|
+
}
|
|
406
|
+
);
|
|
407
|
+
return context.path(path).get({
|
|
408
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
409
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
410
|
+
});
|
|
71
411
|
}
|
|
72
412
|
async function _listByResourceGroupDeserialize(result) {
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
413
|
+
const expectedStatuses = ["200"];
|
|
414
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
415
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
416
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
417
|
+
throw error;
|
|
418
|
+
}
|
|
419
|
+
return (0, import_models._schedulerListResultDeserializer)(result.body);
|
|
80
420
|
}
|
|
81
|
-
/** List Schedulers by resource group */
|
|
82
421
|
function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
83
|
-
|
|
422
|
+
return (0, import_pagingHelpers.buildPagedAsyncIterator)(
|
|
423
|
+
context,
|
|
424
|
+
() => _listByResourceGroupSend(context, resourceGroupName, options),
|
|
425
|
+
_listByResourceGroupDeserialize,
|
|
426
|
+
["200"],
|
|
427
|
+
{ itemName: "value", nextLinkName: "nextLink", apiVersion: context.apiVersion ?? "2026-02-01" }
|
|
428
|
+
);
|
|
84
429
|
}
|
|
85
430
|
function _$deleteSend(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
}
|
|
94
|
-
|
|
431
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
432
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}{?api%2Dversion}",
|
|
433
|
+
{
|
|
434
|
+
subscriptionId: context.subscriptionId,
|
|
435
|
+
resourceGroupName,
|
|
436
|
+
schedulerName,
|
|
437
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
441
|
+
}
|
|
442
|
+
);
|
|
443
|
+
return context.path(path).delete({ ...(0, import_core_client.operationOptionsToRequestParameters)(options) });
|
|
95
444
|
}
|
|
96
445
|
async function _$deleteDeserialize(result) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
}
|
|
105
|
-
/** Delete a Scheduler */
|
|
106
|
-
/**
|
|
107
|
-
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
108
|
-
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
109
|
-
* to the operation to override the generated name.
|
|
110
|
-
*/
|
|
446
|
+
const expectedStatuses = ["202", "204", "200"];
|
|
447
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
448
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
449
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
450
|
+
throw error;
|
|
451
|
+
}
|
|
452
|
+
return;
|
|
453
|
+
}
|
|
111
454
|
function $delete(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
455
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
456
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
457
|
+
abortSignal: options?.abortSignal,
|
|
458
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, schedulerName, options),
|
|
459
|
+
resourceLocationConfig: "location",
|
|
460
|
+
apiVersion: context.apiVersion ?? "2026-02-01"
|
|
461
|
+
});
|
|
118
462
|
}
|
|
119
463
|
function _updateSend(context, resourceGroupName, schedulerName, properties, options = { requestOptions: {} }) {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
464
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
465
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}{?api%2Dversion}",
|
|
466
|
+
{
|
|
467
|
+
subscriptionId: context.subscriptionId,
|
|
468
|
+
resourceGroupName,
|
|
469
|
+
schedulerName,
|
|
470
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
474
|
+
}
|
|
475
|
+
);
|
|
476
|
+
return context.path(path).patch({
|
|
477
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
478
|
+
contentType: "application/json",
|
|
479
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
480
|
+
body: (0, import_models.schedulerUpdateSerializer)(properties)
|
|
481
|
+
});
|
|
137
482
|
}
|
|
138
483
|
async function _updateDeserialize(result) {
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
484
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
485
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
486
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
487
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
488
|
+
throw error;
|
|
489
|
+
}
|
|
490
|
+
return (0, import_models.schedulerDeserializer)(result.body);
|
|
146
491
|
}
|
|
147
|
-
/** Update a Scheduler */
|
|
148
492
|
function update(context, resourceGroupName, schedulerName, properties, options = { requestOptions: {} }) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
493
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(context, _updateDeserialize, ["200", "202", "201"], {
|
|
494
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
495
|
+
abortSignal: options?.abortSignal,
|
|
496
|
+
getInitialResponse: () => _updateSend(context, resourceGroupName, schedulerName, properties, options),
|
|
497
|
+
resourceLocationConfig: "location",
|
|
498
|
+
apiVersion: context.apiVersion ?? "2026-02-01"
|
|
499
|
+
});
|
|
155
500
|
}
|
|
156
501
|
function _createOrUpdateSend(context, resourceGroupName, schedulerName, resource, options = { requestOptions: {} }) {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
502
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
503
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}{?api%2Dversion}",
|
|
504
|
+
{
|
|
505
|
+
subscriptionId: context.subscriptionId,
|
|
506
|
+
resourceGroupName,
|
|
507
|
+
schedulerName,
|
|
508
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
512
|
+
}
|
|
513
|
+
);
|
|
514
|
+
return context.path(path).put({
|
|
515
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
516
|
+
contentType: "application/json",
|
|
517
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
518
|
+
body: (0, import_models.schedulerSerializer)(resource)
|
|
519
|
+
});
|
|
174
520
|
}
|
|
175
521
|
async function _createOrUpdateDeserialize(result) {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
522
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
523
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
524
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
525
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
526
|
+
throw error;
|
|
527
|
+
}
|
|
528
|
+
return (0, import_models.schedulerDeserializer)(result.body);
|
|
183
529
|
}
|
|
184
|
-
/** Create or update a Scheduler */
|
|
185
530
|
function createOrUpdate(context, resourceGroupName, schedulerName, resource, options = { requestOptions: {} }) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
531
|
+
return (0, import_pollingHelpers.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
532
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
533
|
+
abortSignal: options?.abortSignal,
|
|
534
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, schedulerName, resource, options),
|
|
535
|
+
resourceLocationConfig: "azure-async-operation",
|
|
536
|
+
apiVersion: context.apiVersion ?? "2026-02-01"
|
|
537
|
+
});
|
|
192
538
|
}
|
|
193
539
|
function _getSend(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
}
|
|
540
|
+
const path = (0, import_urlTemplate.expandUrlTemplate)(
|
|
541
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DurableTask/schedulers/{schedulerName}{?api%2Dversion}",
|
|
542
|
+
{
|
|
543
|
+
subscriptionId: context.subscriptionId,
|
|
544
|
+
resourceGroupName,
|
|
545
|
+
schedulerName,
|
|
546
|
+
"api%2Dversion": context.apiVersion ?? "2026-02-01"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding
|
|
550
|
+
}
|
|
551
|
+
);
|
|
552
|
+
return context.path(path).get({
|
|
553
|
+
...(0, import_core_client.operationOptionsToRequestParameters)(options),
|
|
554
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers }
|
|
555
|
+
});
|
|
209
556
|
}
|
|
210
557
|
async function _getDeserialize(result) {
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
558
|
+
const expectedStatuses = ["200"];
|
|
559
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
560
|
+
const error = (0, import_core_client.createRestError)(result);
|
|
561
|
+
error.details = (0, import_models.errorResponseDeserializer)(result.body);
|
|
562
|
+
throw error;
|
|
563
|
+
}
|
|
564
|
+
return (0, import_models.schedulerDeserializer)(result.body);
|
|
218
565
|
}
|
|
219
|
-
/** Get a Scheduler */
|
|
220
566
|
async function get(context, resourceGroupName, schedulerName, options = { requestOptions: {} }) {
|
|
221
|
-
|
|
222
|
-
|
|
567
|
+
const result = await _getSend(context, resourceGroupName, schedulerName, options);
|
|
568
|
+
return _getDeserialize(result);
|
|
223
569
|
}
|
|
224
|
-
|
|
570
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
571
|
+
0 && (module.exports = {
|
|
572
|
+
$delete,
|
|
573
|
+
_$deleteDeserialize,
|
|
574
|
+
_$deleteSend,
|
|
575
|
+
_createOrUpdateDeserialize,
|
|
576
|
+
_createOrUpdatePrivateEndpointConnectionDeserialize,
|
|
577
|
+
_createOrUpdatePrivateEndpointConnectionSend,
|
|
578
|
+
_createOrUpdateSend,
|
|
579
|
+
_deletePrivateEndpointConnectionDeserialize,
|
|
580
|
+
_deletePrivateEndpointConnectionSend,
|
|
581
|
+
_getDeserialize,
|
|
582
|
+
_getPrivateEndpointConnectionDeserialize,
|
|
583
|
+
_getPrivateEndpointConnectionSend,
|
|
584
|
+
_getPrivateLinkDeserialize,
|
|
585
|
+
_getPrivateLinkSend,
|
|
586
|
+
_getSend,
|
|
587
|
+
_listByResourceGroupDeserialize,
|
|
588
|
+
_listByResourceGroupSend,
|
|
589
|
+
_listBySubscriptionDeserialize,
|
|
590
|
+
_listBySubscriptionSend,
|
|
591
|
+
_listPrivateEndpointConnectionsDeserialize,
|
|
592
|
+
_listPrivateEndpointConnectionsSend,
|
|
593
|
+
_listPrivateLinksDeserialize,
|
|
594
|
+
_listPrivateLinksSend,
|
|
595
|
+
_updateDeserialize,
|
|
596
|
+
_updatePrivateEndpointConnectionDeserialize,
|
|
597
|
+
_updatePrivateEndpointConnectionSend,
|
|
598
|
+
_updateSend,
|
|
599
|
+
createOrUpdate,
|
|
600
|
+
createOrUpdatePrivateEndpointConnection,
|
|
601
|
+
deletePrivateEndpointConnection,
|
|
602
|
+
get,
|
|
603
|
+
getPrivateEndpointConnection,
|
|
604
|
+
getPrivateLink,
|
|
605
|
+
listByResourceGroup,
|
|
606
|
+
listBySubscription,
|
|
607
|
+
listPrivateEndpointConnections,
|
|
608
|
+
listPrivateLinks,
|
|
609
|
+
update,
|
|
610
|
+
updatePrivateEndpointConnection
|
|
611
|
+
});
|
|
612
|
+
//# sourceMappingURL=operations.js.map
|