@azure/arm-storagesync 9.1.1-alpha.20250717.1 → 9.1.1-alpha.20250718.2
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/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/microsoftStorageSync.js +23 -5
- package/dist/browser/microsoftStorageSync.js.map +1 -1
- package/dist/browser/models/mappers.js +248 -117
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/cloudEndpoints.js +87 -69
- package/dist/browser/operations/cloudEndpoints.js.map +1 -1
- package/dist/browser/operations/operationStatusOperations.js +1 -0
- package/dist/browser/operations/operationStatusOperations.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/privateEndpointConnections.js +32 -39
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/registeredServers.js +43 -45
- package/dist/browser/operations/registeredServers.js.map +1 -1
- package/dist/browser/operations/serverEndpoints.js +54 -51
- package/dist/browser/operations/serverEndpoints.js.map +1 -1
- package/dist/browser/operations/storageSyncServices.js +52 -71
- package/dist/browser/operations/storageSyncServices.js.map +1 -1
- package/dist/browser/operations/syncGroups.js +10 -27
- package/dist/browser/operations/syncGroups.js.map +1 -1
- package/dist/browser/operations/workflows.js +10 -27
- package/dist/browser/operations/workflows.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/microsoftStorageSync.js +23 -5
- package/dist/commonjs/microsoftStorageSync.js.map +1 -1
- package/dist/commonjs/models/mappers.js +248 -117
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/cloudEndpoints.js +87 -68
- package/dist/commonjs/operations/cloudEndpoints.js.map +1 -1
- package/dist/commonjs/operations/operationStatusOperations.js +1 -0
- package/dist/commonjs/operations/operationStatusOperations.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/privateEndpointConnections.js +32 -38
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/registeredServers.js +43 -44
- package/dist/commonjs/operations/registeredServers.js.map +1 -1
- package/dist/commonjs/operations/serverEndpoints.js +54 -50
- package/dist/commonjs/operations/serverEndpoints.js.map +1 -1
- package/dist/commonjs/operations/storageSyncServices.js +52 -70
- package/dist/commonjs/operations/storageSyncServices.js.map +1 -1
- package/dist/commonjs/operations/syncGroups.js +10 -26
- package/dist/commonjs/operations/syncGroups.js.map +1 -1
- package/dist/commonjs/operations/workflows.js +10 -26
- package/dist/commonjs/operations/workflows.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/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/microsoftStorageSync.js +23 -5
- package/dist/esm/microsoftStorageSync.js.map +1 -1
- package/dist/esm/models/mappers.js +248 -117
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/cloudEndpoints.js +87 -69
- package/dist/esm/operations/cloudEndpoints.js.map +1 -1
- package/dist/esm/operations/operationStatusOperations.js +1 -0
- package/dist/esm/operations/operationStatusOperations.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/privateEndpointConnections.js +32 -39
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/registeredServers.js +43 -45
- package/dist/esm/operations/registeredServers.js.map +1 -1
- package/dist/esm/operations/serverEndpoints.js +54 -51
- package/dist/esm/operations/serverEndpoints.js.map +1 -1
- package/dist/esm/operations/storageSyncServices.js +52 -71
- package/dist/esm/operations/storageSyncServices.js.map +1 -1
- package/dist/esm/operations/syncGroups.js +10 -27
- package/dist/esm/operations/syncGroups.js.map +1 -1
- package/dist/esm/operations/workflows.js +10 -27
- package/dist/esm/operations/workflows.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/microsoftStorageSync.js +23 -5
- package/dist/react-native/microsoftStorageSync.js.map +1 -1
- package/dist/react-native/models/mappers.js +248 -117
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/cloudEndpoints.js +87 -69
- package/dist/react-native/operations/cloudEndpoints.js.map +1 -1
- package/dist/react-native/operations/operationStatusOperations.js +1 -0
- package/dist/react-native/operations/operationStatusOperations.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/privateEndpointConnections.js +32 -39
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/registeredServers.js +43 -45
- package/dist/react-native/operations/registeredServers.js.map +1 -1
- package/dist/react-native/operations/serverEndpoints.js +54 -51
- package/dist/react-native/operations/serverEndpoints.js.map +1 -1
- package/dist/react-native/operations/storageSyncServices.js +52 -71
- package/dist/react-native/operations/storageSyncServices.js.map +1 -1
- package/dist/react-native/operations/syncGroups.js +10 -27
- package/dist/react-native/operations/syncGroups.js.map +1 -1
- package/dist/react-native/operations/workflows.js +10 -27
- package/dist/react-native/operations/workflows.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-storagesync-node.api.md +1557 -1557
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
14
13
|
/** Class containing Operations operations. */
|
15
14
|
export class OperationsImpl {
|
15
|
+
client;
|
16
16
|
/**
|
17
17
|
* Initialize a new instance of the class Operations class.
|
18
18
|
* @param client Reference to the service client
|
@@ -34,52 +34,35 @@ export class OperationsImpl {
|
|
34
34
|
return this;
|
35
35
|
},
|
36
36
|
byPage: (settings) => {
|
37
|
-
if (settings
|
37
|
+
if (settings?.maxPageSize) {
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
39
39
|
}
|
40
40
|
return this.listPagingPage(options, settings);
|
41
41
|
}
|
42
42
|
};
|
43
43
|
}
|
44
|
-
listPagingPage(options, settings) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
});
|
44
|
+
async *listPagingPage(options, settings) {
|
45
|
+
let result;
|
46
|
+
let continuationToken = settings?.continuationToken;
|
47
|
+
if (!continuationToken) {
|
48
|
+
result = await this._list(options);
|
49
|
+
let page = result.value || [];
|
50
|
+
continuationToken = result.nextLink;
|
51
|
+
setContinuationToken(page, continuationToken);
|
52
|
+
yield page;
|
53
|
+
}
|
54
|
+
while (continuationToken) {
|
55
|
+
result = await this._listNext(continuationToken, options);
|
56
|
+
continuationToken = result.nextLink;
|
57
|
+
let page = result.value || [];
|
58
|
+
setContinuationToken(page, continuationToken);
|
59
|
+
yield page;
|
60
|
+
}
|
63
61
|
}
|
64
|
-
listPagingAll(options) {
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
69
|
-
_c = _f.value;
|
70
|
-
_d = false;
|
71
|
-
const page = _c;
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
73
|
-
}
|
74
|
-
}
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
76
|
-
finally {
|
77
|
-
try {
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
79
|
-
}
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
81
|
-
}
|
82
|
-
});
|
62
|
+
async *listPagingAll(options) {
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
64
|
+
yield* page;
|
65
|
+
}
|
83
66
|
}
|
84
67
|
/**
|
85
68
|
* Lists all of the available Storage Sync Rest API operations.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK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UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;YAC7C,aAAa,EAAE,OAAO,CAAC,yBAAyB;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { Operations } 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 { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport {\n OperationEntity,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Lists all of the available Storage Sync Rest API operations.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<OperationEntity> {\n const iter = this.listPagingAll(options);\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.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<OperationEntity[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<OperationEntity> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all of the available Storage Sync Rest API operations.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.StorageSync/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult,\n headersMapper: Mappers.OperationsListHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationEntityListResult,\n headersMapper: Mappers.OperationsListNextHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import * as coreClient from "@azure/core-client";
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
15
14
|
/** Class containing PrivateEndpointConnections operations. */
|
16
15
|
export class PrivateEndpointConnectionsImpl {
|
16
|
+
client;
|
17
17
|
/**
|
18
18
|
* Initialize a new instance of the class PrivateEndpointConnections class.
|
19
19
|
* @param client Reference to the service client
|
@@ -37,39 +37,22 @@ export class PrivateEndpointConnectionsImpl {
|
|
37
37
|
return this;
|
38
38
|
},
|
39
39
|
byPage: (settings) => {
|
40
|
-
if (settings
|
40
|
+
if (settings?.maxPageSize) {
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
42
42
|
}
|
43
43
|
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
44
44
|
}
|
45
45
|
};
|
46
46
|
}
|
47
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
yield yield __await(result.value || []);
|
52
|
-
});
|
47
|
+
async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
48
|
+
let result;
|
49
|
+
result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
|
50
|
+
yield result.value || [];
|
53
51
|
}
|
54
|
-
listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
for (var _d = true, _e = __asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
59
|
-
_c = _f.value;
|
60
|
-
_d = false;
|
61
|
-
const page = _c;
|
62
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
63
|
-
}
|
64
|
-
}
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
66
|
-
finally {
|
67
|
-
try {
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
69
|
-
}
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
71
|
-
}
|
72
|
-
});
|
52
|
+
async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
53
|
+
for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
|
54
|
+
yield* page;
|
55
|
+
}
|
73
56
|
}
|
74
57
|
/**
|
75
58
|
* Gets the specified private endpoint connection associated with the storage sync service.
|
@@ -103,14 +86,19 @@ export class PrivateEndpointConnectionsImpl {
|
|
103
86
|
return this.client.sendOperationRequest(args, spec);
|
104
87
|
};
|
105
88
|
const sendOperation = async (args, spec) => {
|
106
|
-
var _a;
|
107
89
|
let currentRawResponse = undefined;
|
108
|
-
const providedCallback =
|
90
|
+
const providedCallback = args.options?.onResponse;
|
109
91
|
const callback = (rawResponse, flatResponse) => {
|
110
92
|
currentRawResponse = rawResponse;
|
111
|
-
providedCallback
|
93
|
+
providedCallback?.(rawResponse, flatResponse);
|
94
|
+
};
|
95
|
+
const updatedArgs = {
|
96
|
+
...args,
|
97
|
+
options: {
|
98
|
+
...args.options,
|
99
|
+
onResponse: callback
|
100
|
+
}
|
112
101
|
};
|
113
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
114
102
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
115
103
|
return {
|
116
104
|
flatResponse,
|
@@ -129,8 +117,8 @@ export class PrivateEndpointConnectionsImpl {
|
|
129
117
|
options
|
130
118
|
}, createOperationSpec);
|
131
119
|
const poller = new LroEngine(lro, {
|
132
|
-
resumeFrom: options
|
133
|
-
intervalInMs: options
|
120
|
+
resumeFrom: options?.resumeFrom,
|
121
|
+
intervalInMs: options?.updateIntervalInMs
|
134
122
|
});
|
135
123
|
await poller.poll();
|
136
124
|
return poller;
|
@@ -163,14 +151,19 @@ export class PrivateEndpointConnectionsImpl {
|
|
163
151
|
return this.client.sendOperationRequest(args, spec);
|
164
152
|
};
|
165
153
|
const sendOperation = async (args, spec) => {
|
166
|
-
var _a;
|
167
154
|
let currentRawResponse = undefined;
|
168
|
-
const providedCallback =
|
155
|
+
const providedCallback = args.options?.onResponse;
|
169
156
|
const callback = (rawResponse, flatResponse) => {
|
170
157
|
currentRawResponse = rawResponse;
|
171
|
-
providedCallback
|
158
|
+
providedCallback?.(rawResponse, flatResponse);
|
159
|
+
};
|
160
|
+
const updatedArgs = {
|
161
|
+
...args,
|
162
|
+
options: {
|
163
|
+
...args.options,
|
164
|
+
onResponse: callback
|
165
|
+
}
|
172
166
|
};
|
173
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
174
167
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
175
168
|
return {
|
176
169
|
flatResponse,
|
@@ -188,8 +181,8 @@ export class PrivateEndpointConnectionsImpl {
|
|
188
181
|
options
|
189
182
|
}, deleteOperationSpec);
|
190
183
|
const poller = new LroEngine(lro, {
|
191
|
-
resumeFrom: options
|
192
|
-
intervalInMs: options
|
184
|
+
resumeFrom: options?.resumeFrom,
|
185
|
+
intervalInMs: options?.updateIntervalInMs
|
193
186
|
});
|
194
187
|
await poller.poll();
|
195
188
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAYxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IAIzC;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,wBAAwB,CAC7B,iBAAyB,EACzB,sBAA8B,EAC9B,OAA0E;QAE1E,MAAM,IAAI,GAAG,IAAI,CAAC,iCAAiC,CACjD,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,kCAAkC,CAC5C,iBAAiB,EACjB,sBAAsB,EACtB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SAC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AAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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,sBAAsB;QACjC,UAAU,CAAC,6BAA6B;KACzC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EACF,4KAA4K;IAC9K,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;YACvD,aAAa,EACX,OAAO,CAAC,yDAAyD;SACpE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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,sBAAsB;KAClC;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 { PrivateEndpointConnections } 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 { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams,\n PrivateEndpointConnectionsListByStorageSyncServiceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsCreateOptionalParams,\n PrivateEndpointConnectionsCreateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a PrivateEndpointConnection List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\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.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PrivateEndpointConnectionsCreateResponse>,\n PrivateEndpointConnectionsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrivateEndpointConnectionsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n properties,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n properties,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a PrivateEndpointConnection List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams\n ): Promise<PrivateEndpointConnectionsListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n headersMapper:\n Mappers.PrivateEndpointConnectionsListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
1
|
+
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KA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,CAAC,gBAAgB;SACrC;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,sBAAsB;KAClC;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 { PrivateEndpointConnections } 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 { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n PrivateEndpointConnection,\n PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams,\n PrivateEndpointConnectionsListByStorageSyncServiceResponse,\n PrivateEndpointConnectionsGetOptionalParams,\n PrivateEndpointConnectionsGetResponse,\n PrivateEndpointConnectionsCreateOptionalParams,\n PrivateEndpointConnectionsCreateResponse,\n PrivateEndpointConnectionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PrivateEndpointConnections operations. */\nexport class PrivateEndpointConnectionsImpl\n implements PrivateEndpointConnections {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class PrivateEndpointConnections class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Get a PrivateEndpointConnection List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n public listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams\n ): PagedAsyncIterableIterator<PrivateEndpointConnection> {\n const iter = this.listByStorageSyncServicePagingAll(\n resourceGroupName,\n storageSyncServiceName,\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.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByStorageSyncServicePagingPage(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<PrivateEndpointConnection[]> {\n let result: PrivateEndpointConnectionsListByStorageSyncServiceResponse;\n result = await this._listByStorageSyncService(\n resourceGroupName,\n storageSyncServiceName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByStorageSyncServicePagingAll(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams\n ): AsyncIterableIterator<PrivateEndpointConnection> {\n for await (const page of this.listByStorageSyncServicePagingPage(\n resourceGroupName,\n storageSyncServiceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsGetOptionalParams\n ): Promise<PrivateEndpointConnectionsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<PrivateEndpointConnectionsCreateResponse>,\n PrivateEndpointConnectionsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<PrivateEndpointConnectionsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n properties,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update the state of specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param properties The private endpoint connection properties.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n properties: PrivateEndpointConnection,\n options?: PrivateEndpointConnectionsCreateOptionalParams\n ): Promise<PrivateEndpointConnectionsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n properties,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = 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 = new LroImpl(\n sendOperation,\n {\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the specified private endpoint connection associated with the storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param privateEndpointConnectionName The name of the private endpoint connection associated with the\n * Azure resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n storageSyncServiceName: string,\n privateEndpointConnectionName: string,\n options?: PrivateEndpointConnectionsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n resourceGroupName,\n storageSyncServiceName,\n privateEndpointConnectionName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get a PrivateEndpointConnection List.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName Name of Storage Sync Service resource.\n * @param options The options parameters.\n */\n private _listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateEndpointConnectionsListByStorageSyncServiceOptionalParams\n ): Promise<PrivateEndpointConnectionsListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 201: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 202: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n 204: {\n bodyMapper: Mappers.PrivateEndpointConnection\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n requestBody: Parameters.properties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections/{privateEndpointConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName,\n Parameters.privateEndpointConnectionName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateEndpointConnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateEndpointConnectionListResult,\n headersMapper:\n Mappers.PrivateEndpointConnectionsListByStorageSyncServiceHeaders\n },\n default: {\n bodyMapper: Mappers.StorageSyncError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
11
11
|
/** Class containing PrivateLinkResources operations. */
|
12
12
|
export class PrivateLinkResourcesImpl {
|
13
|
+
client;
|
13
14
|
/**
|
14
15
|
* Initialize a new instance of the class PrivateLinkResources class.
|
15
16
|
* @param client Reference to the service client
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAOtD,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,wBAAwB,CACtB,iBAAyB,EACzB,sBAA8B,EAC9B,OAAoE;QAEpE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,OAAO,EAAE,EACtD,qCAAqC,CACtC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,qCAAqC,GAA6B;IACtE,IAAI,EACF,sKAAsK;IACxK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;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,sBAAsB;KAClC;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 { PrivateLinkResources } 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 { MicrosoftStorageSync } from \"../microsoftStorageSync.js\";\nimport {\n PrivateLinkResourcesListByStorageSyncServiceOptionalParams,\n PrivateLinkResourcesListByStorageSyncServiceResponse\n} from \"../models/index.js\";\n\n/** Class containing PrivateLinkResources operations. */\nexport class PrivateLinkResourcesImpl implements PrivateLinkResources {\n private readonly client: MicrosoftStorageSync;\n\n /**\n * Initialize a new instance of the class PrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: MicrosoftStorageSync) {\n this.client = client;\n }\n\n /**\n * Gets the private link resources that need to be created for a storage sync service.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param storageSyncServiceName The name of the storage sync service name within the specified\n * resource group.\n * @param options The options parameters.\n */\n listByStorageSyncService(\n resourceGroupName: string,\n storageSyncServiceName: string,\n options?: PrivateLinkResourcesListByStorageSyncServiceOptionalParams\n ): Promise<PrivateLinkResourcesListByStorageSyncServiceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, storageSyncServiceName, options },\n listByStorageSyncServiceOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByStorageSyncServiceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.StorageSync/storageSyncServices/{storageSyncServiceName}/privateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PrivateLinkResourceListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.storageSyncServiceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import * as coreClient from "@azure/core-client";
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
14
13
|
/// <reference lib="esnext.asynciterable" />
|
15
14
|
/** Class containing RegisteredServers operations. */
|
16
15
|
export class RegisteredServersImpl {
|
16
|
+
client;
|
17
17
|
/**
|
18
18
|
* Initialize a new instance of the class RegisteredServers class.
|
19
19
|
* @param client Reference to the service client
|
@@ -37,39 +37,22 @@ export class RegisteredServersImpl {
|
|
37
37
|
return this;
|
38
38
|
},
|
39
39
|
byPage: (settings) => {
|
40
|
-
if (settings
|
40
|
+
if (settings?.maxPageSize) {
|
41
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
42
42
|
}
|
43
43
|
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
44
44
|
}
|
45
45
|
};
|
46
46
|
}
|
47
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
yield yield __await(result.value || []);
|
52
|
-
});
|
47
|
+
async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
48
|
+
let result;
|
49
|
+
result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
|
50
|
+
yield result.value || [];
|
53
51
|
}
|
54
|
-
listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
for (var _d = true, _e = __asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
59
|
-
_c = _f.value;
|
60
|
-
_d = false;
|
61
|
-
const page = _c;
|
62
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
63
|
-
}
|
64
|
-
}
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
66
|
-
finally {
|
67
|
-
try {
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
69
|
-
}
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
71
|
-
}
|
72
|
-
});
|
52
|
+
async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
53
|
+
for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
|
54
|
+
yield* page;
|
55
|
+
}
|
73
56
|
}
|
74
57
|
/**
|
75
58
|
* Get a given registered server list.
|
@@ -103,14 +86,19 @@ export class RegisteredServersImpl {
|
|
103
86
|
return this.client.sendOperationRequest(args, spec);
|
104
87
|
};
|
105
88
|
const sendOperation = async (args, spec) => {
|
106
|
-
var _a;
|
107
89
|
let currentRawResponse = undefined;
|
108
|
-
const providedCallback =
|
90
|
+
const providedCallback = args.options?.onResponse;
|
109
91
|
const callback = (rawResponse, flatResponse) => {
|
110
92
|
currentRawResponse = rawResponse;
|
111
|
-
providedCallback
|
93
|
+
providedCallback?.(rawResponse, flatResponse);
|
94
|
+
};
|
95
|
+
const updatedArgs = {
|
96
|
+
...args,
|
97
|
+
options: {
|
98
|
+
...args.options,
|
99
|
+
onResponse: callback
|
100
|
+
}
|
112
101
|
};
|
113
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
114
102
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
115
103
|
return {
|
116
104
|
flatResponse,
|
@@ -129,8 +117,8 @@ export class RegisteredServersImpl {
|
|
129
117
|
options
|
130
118
|
}, createOperationSpec);
|
131
119
|
const poller = new LroEngine(lro, {
|
132
|
-
resumeFrom: options
|
133
|
-
intervalInMs: options
|
120
|
+
resumeFrom: options?.resumeFrom,
|
121
|
+
intervalInMs: options?.updateIntervalInMs
|
134
122
|
});
|
135
123
|
await poller.poll();
|
136
124
|
return poller;
|
@@ -159,14 +147,19 @@ export class RegisteredServersImpl {
|
|
159
147
|
return this.client.sendOperationRequest(args, spec);
|
160
148
|
};
|
161
149
|
const sendOperation = async (args, spec) => {
|
162
|
-
var _a;
|
163
150
|
let currentRawResponse = undefined;
|
164
|
-
const providedCallback =
|
151
|
+
const providedCallback = args.options?.onResponse;
|
165
152
|
const callback = (rawResponse, flatResponse) => {
|
166
153
|
currentRawResponse = rawResponse;
|
167
|
-
providedCallback
|
154
|
+
providedCallback?.(rawResponse, flatResponse);
|
155
|
+
};
|
156
|
+
const updatedArgs = {
|
157
|
+
...args,
|
158
|
+
options: {
|
159
|
+
...args.options,
|
160
|
+
onResponse: callback
|
161
|
+
}
|
168
162
|
};
|
169
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
170
163
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
171
164
|
return {
|
172
165
|
flatResponse,
|
@@ -179,8 +172,8 @@ export class RegisteredServersImpl {
|
|
179
172
|
};
|
180
173
|
const lro = new LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, serverId, options }, deleteOperationSpec);
|
181
174
|
const poller = new LroEngine(lro, {
|
182
|
-
resumeFrom: options
|
183
|
-
intervalInMs: options
|
175
|
+
resumeFrom: options?.resumeFrom,
|
176
|
+
intervalInMs: options?.updateIntervalInMs
|
184
177
|
});
|
185
178
|
await poller.poll();
|
186
179
|
return poller;
|
@@ -209,14 +202,19 @@ export class RegisteredServersImpl {
|
|
209
202
|
return this.client.sendOperationRequest(args, spec);
|
210
203
|
};
|
211
204
|
const sendOperation = async (args, spec) => {
|
212
|
-
var _a;
|
213
205
|
let currentRawResponse = undefined;
|
214
|
-
const providedCallback =
|
206
|
+
const providedCallback = args.options?.onResponse;
|
215
207
|
const callback = (rawResponse, flatResponse) => {
|
216
208
|
currentRawResponse = rawResponse;
|
217
|
-
providedCallback
|
209
|
+
providedCallback?.(rawResponse, flatResponse);
|
210
|
+
};
|
211
|
+
const updatedArgs = {
|
212
|
+
...args,
|
213
|
+
options: {
|
214
|
+
...args.options,
|
215
|
+
onResponse: callback
|
216
|
+
}
|
218
217
|
};
|
219
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
220
218
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
221
219
|
return {
|
222
220
|
flatResponse,
|
@@ -235,8 +233,8 @@ export class RegisteredServersImpl {
|
|
235
233
|
options
|
236
234
|
}, triggerRolloverOperationSpec);
|
237
235
|
const poller = new LroEngine(lro, {
|
238
|
-
resumeFrom: options
|
239
|
-
intervalInMs: options
|
236
|
+
resumeFrom: options?.resumeFrom,
|
237
|
+
intervalInMs: options?.updateIntervalInMs
|
240
238
|
});
|
241
239
|
await poller.poll();
|
242
240
|
return poller;
|