@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
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
17
17
|
/** Class containing Operations operations. */
|
18
18
|
class OperationsImpl {
|
19
|
+
client;
|
19
20
|
/**
|
20
21
|
* Initialize a new instance of the class Operations class.
|
21
22
|
* @param client Reference to the service client
|
@@ -37,52 +38,35 @@ class OperationsImpl {
|
|
37
38
|
return this;
|
38
39
|
},
|
39
40
|
byPage: (settings) => {
|
40
|
-
if (settings
|
41
|
+
if (settings?.maxPageSize) {
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
42
43
|
}
|
43
44
|
return this.listPagingPage(options, settings);
|
44
45
|
}
|
45
46
|
};
|
46
47
|
}
|
47
|
-
listPagingPage(options, settings) {
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
}
|
65
|
-
});
|
48
|
+
async *listPagingPage(options, settings) {
|
49
|
+
let result;
|
50
|
+
let continuationToken = settings?.continuationToken;
|
51
|
+
if (!continuationToken) {
|
52
|
+
result = await this._list(options);
|
53
|
+
let page = result.value || [];
|
54
|
+
continuationToken = result.nextLink;
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
56
|
+
yield page;
|
57
|
+
}
|
58
|
+
while (continuationToken) {
|
59
|
+
result = await this._listNext(continuationToken, options);
|
60
|
+
continuationToken = result.nextLink;
|
61
|
+
let page = result.value || [];
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
63
|
+
yield page;
|
64
|
+
}
|
66
65
|
}
|
67
|
-
listPagingAll(options) {
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
72
|
-
_c = _f.value;
|
73
|
-
_d = false;
|
74
|
-
const page = _c;
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
76
|
-
}
|
77
|
-
}
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
79
|
-
finally {
|
80
|
-
try {
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
82
|
-
}
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
84
|
-
}
|
85
|
-
});
|
66
|
+
async *listPagingAll(options) {
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
68
|
+
yield* page;
|
69
|
+
}
|
86
70
|
}
|
87
71
|
/**
|
88
72
|
* 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;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAAuB;IAE9C;;;OAGG;IACH,YAAY,MAA4B;QACtC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;I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O,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"]}
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
18
18
|
/** Class containing PrivateEndpointConnections operations. */
|
19
19
|
class PrivateEndpointConnectionsImpl {
|
20
|
+
client;
|
20
21
|
/**
|
21
22
|
* Initialize a new instance of the class PrivateEndpointConnections class.
|
22
23
|
* @param client Reference to the service client
|
@@ -40,39 +41,22 @@ class PrivateEndpointConnectionsImpl {
|
|
40
41
|
return this;
|
41
42
|
},
|
42
43
|
byPage: (settings) => {
|
43
|
-
if (settings
|
44
|
+
if (settings?.maxPageSize) {
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
45
46
|
}
|
46
47
|
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
47
48
|
}
|
48
49
|
};
|
49
50
|
}
|
50
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
55
|
-
});
|
51
|
+
async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
52
|
+
let result;
|
53
|
+
result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
|
54
|
+
yield result.value || [];
|
56
55
|
}
|
57
|
-
listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
62
|
-
_c = _f.value;
|
63
|
-
_d = false;
|
64
|
-
const page = _c;
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
66
|
-
}
|
67
|
-
}
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
69
|
-
finally {
|
70
|
-
try {
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
72
|
-
}
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
74
|
-
}
|
75
|
-
});
|
56
|
+
async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
57
|
+
for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
|
58
|
+
yield* page;
|
59
|
+
}
|
76
60
|
}
|
77
61
|
/**
|
78
62
|
* Gets the specified private endpoint connection associated with the storage sync service.
|
@@ -106,14 +90,19 @@ class PrivateEndpointConnectionsImpl {
|
|
106
90
|
return this.client.sendOperationRequest(args, spec);
|
107
91
|
};
|
108
92
|
const sendOperation = async (args, spec) => {
|
109
|
-
var _a;
|
110
93
|
let currentRawResponse = undefined;
|
111
|
-
const providedCallback =
|
94
|
+
const providedCallback = args.options?.onResponse;
|
112
95
|
const callback = (rawResponse, flatResponse) => {
|
113
96
|
currentRawResponse = rawResponse;
|
114
|
-
providedCallback
|
97
|
+
providedCallback?.(rawResponse, flatResponse);
|
98
|
+
};
|
99
|
+
const updatedArgs = {
|
100
|
+
...args,
|
101
|
+
options: {
|
102
|
+
...args.options,
|
103
|
+
onResponse: callback
|
104
|
+
}
|
115
105
|
};
|
116
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
117
106
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
118
107
|
return {
|
119
108
|
flatResponse,
|
@@ -132,8 +121,8 @@ class PrivateEndpointConnectionsImpl {
|
|
132
121
|
options
|
133
122
|
}, createOperationSpec);
|
134
123
|
const poller = new core_lro_1.LroEngine(lro, {
|
135
|
-
resumeFrom: options
|
136
|
-
intervalInMs: options
|
124
|
+
resumeFrom: options?.resumeFrom,
|
125
|
+
intervalInMs: options?.updateIntervalInMs
|
137
126
|
});
|
138
127
|
await poller.poll();
|
139
128
|
return poller;
|
@@ -166,14 +155,19 @@ class PrivateEndpointConnectionsImpl {
|
|
166
155
|
return this.client.sendOperationRequest(args, spec);
|
167
156
|
};
|
168
157
|
const sendOperation = async (args, spec) => {
|
169
|
-
var _a;
|
170
158
|
let currentRawResponse = undefined;
|
171
|
-
const providedCallback =
|
159
|
+
const providedCallback = args.options?.onResponse;
|
172
160
|
const callback = (rawResponse, flatResponse) => {
|
173
161
|
currentRawResponse = rawResponse;
|
174
|
-
providedCallback
|
162
|
+
providedCallback?.(rawResponse, flatResponse);
|
163
|
+
};
|
164
|
+
const updatedArgs = {
|
165
|
+
...args,
|
166
|
+
options: {
|
167
|
+
...args.options,
|
168
|
+
onResponse: callback
|
169
|
+
}
|
175
170
|
};
|
176
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
177
171
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
178
172
|
return {
|
179
173
|
flatResponse,
|
@@ -191,8 +185,8 @@ class PrivateEndpointConnectionsImpl {
|
|
191
185
|
options
|
192
186
|
}, deleteOperationSpec);
|
193
187
|
const poller = new core_lro_1.LroEngine(lro, {
|
194
|
-
resumeFrom: options
|
195
|
-
intervalInMs: options
|
188
|
+
resumeFrom: options?.resumeFrom,
|
189
|
+
intervalInMs: options?.updateIntervalInMs
|
196
190
|
});
|
197
191
|
await poller.poll();
|
198
192
|
return poller;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"privateEndpointConnections.js","sourceRoot":"","sources":["../../../src/operations/privateEndpointConnections.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAIzC;;;OAGG;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D;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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAA4E;AAC5E,8CAAwC;AAYxC,4CAA4C;AAC5C,8DAA8D;AAC9D,MAAa,8BAA8B;IAExB,MAAM,CAAuB;IAE9C;;;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,EAAE,WAA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P,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"]}
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
15
15
|
/** Class containing PrivateLinkResources operations. */
|
16
16
|
class PrivateLinkResourcesImpl {
|
17
|
+
client;
|
17
18
|
/**
|
18
19
|
* Initialize a new instance of the class PrivateLinkResources class.
|
19
20
|
* @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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,wDAAwD;AACxD,MAAa,wBAAwB;
|
1
|
+
{"version":3,"file":"privateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/privateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,wDAAwD;AACxD,MAAa,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;AA5BD,4DA4BC;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"]}
|
@@ -17,6 +17,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
17
|
/// <reference lib="esnext.asynciterable" />
|
18
18
|
/** Class containing RegisteredServers operations. */
|
19
19
|
class RegisteredServersImpl {
|
20
|
+
client;
|
20
21
|
/**
|
21
22
|
* Initialize a new instance of the class RegisteredServers class.
|
22
23
|
* @param client Reference to the service client
|
@@ -40,39 +41,22 @@ class RegisteredServersImpl {
|
|
40
41
|
return this;
|
41
42
|
},
|
42
43
|
byPage: (settings) => {
|
43
|
-
if (settings
|
44
|
+
if (settings?.maxPageSize) {
|
44
45
|
throw new Error("maxPageSize is not supported by this operation.");
|
45
46
|
}
|
46
47
|
return this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, settings);
|
47
48
|
}
|
48
49
|
};
|
49
50
|
}
|
50
|
-
listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
yield yield tslib_1.__await(result.value || []);
|
55
|
-
});
|
51
|
+
async *listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options, _settings) {
|
52
|
+
let result;
|
53
|
+
result = await this._listByStorageSyncService(resourceGroupName, storageSyncServiceName, options);
|
54
|
+
yield result.value || [];
|
56
55
|
}
|
57
|
-
listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
62
|
-
_c = _f.value;
|
63
|
-
_d = false;
|
64
|
-
const page = _c;
|
65
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
66
|
-
}
|
67
|
-
}
|
68
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
69
|
-
finally {
|
70
|
-
try {
|
71
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
72
|
-
}
|
73
|
-
finally { if (e_1) throw e_1.error; }
|
74
|
-
}
|
75
|
-
});
|
56
|
+
async *listByStorageSyncServicePagingAll(resourceGroupName, storageSyncServiceName, options) {
|
57
|
+
for await (const page of this.listByStorageSyncServicePagingPage(resourceGroupName, storageSyncServiceName, options)) {
|
58
|
+
yield* page;
|
59
|
+
}
|
76
60
|
}
|
77
61
|
/**
|
78
62
|
* Get a given registered server list.
|
@@ -106,14 +90,19 @@ class RegisteredServersImpl {
|
|
106
90
|
return this.client.sendOperationRequest(args, spec);
|
107
91
|
};
|
108
92
|
const sendOperation = async (args, spec) => {
|
109
|
-
var _a;
|
110
93
|
let currentRawResponse = undefined;
|
111
|
-
const providedCallback =
|
94
|
+
const providedCallback = args.options?.onResponse;
|
112
95
|
const callback = (rawResponse, flatResponse) => {
|
113
96
|
currentRawResponse = rawResponse;
|
114
|
-
providedCallback
|
97
|
+
providedCallback?.(rawResponse, flatResponse);
|
98
|
+
};
|
99
|
+
const updatedArgs = {
|
100
|
+
...args,
|
101
|
+
options: {
|
102
|
+
...args.options,
|
103
|
+
onResponse: callback
|
104
|
+
}
|
115
105
|
};
|
116
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
117
106
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
118
107
|
return {
|
119
108
|
flatResponse,
|
@@ -132,8 +121,8 @@ class RegisteredServersImpl {
|
|
132
121
|
options
|
133
122
|
}, createOperationSpec);
|
134
123
|
const poller = new core_lro_1.LroEngine(lro, {
|
135
|
-
resumeFrom: options
|
136
|
-
intervalInMs: options
|
124
|
+
resumeFrom: options?.resumeFrom,
|
125
|
+
intervalInMs: options?.updateIntervalInMs
|
137
126
|
});
|
138
127
|
await poller.poll();
|
139
128
|
return poller;
|
@@ -162,14 +151,19 @@ class RegisteredServersImpl {
|
|
162
151
|
return this.client.sendOperationRequest(args, spec);
|
163
152
|
};
|
164
153
|
const sendOperation = async (args, spec) => {
|
165
|
-
var _a;
|
166
154
|
let currentRawResponse = undefined;
|
167
|
-
const providedCallback =
|
155
|
+
const providedCallback = args.options?.onResponse;
|
168
156
|
const callback = (rawResponse, flatResponse) => {
|
169
157
|
currentRawResponse = rawResponse;
|
170
|
-
providedCallback
|
158
|
+
providedCallback?.(rawResponse, flatResponse);
|
159
|
+
};
|
160
|
+
const updatedArgs = {
|
161
|
+
...args,
|
162
|
+
options: {
|
163
|
+
...args.options,
|
164
|
+
onResponse: callback
|
165
|
+
}
|
171
166
|
};
|
172
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
173
167
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
174
168
|
return {
|
175
169
|
flatResponse,
|
@@ -182,8 +176,8 @@ class RegisteredServersImpl {
|
|
182
176
|
};
|
183
177
|
const lro = new lroImpl_js_1.LroImpl(sendOperation, { resourceGroupName, storageSyncServiceName, serverId, options }, deleteOperationSpec);
|
184
178
|
const poller = new core_lro_1.LroEngine(lro, {
|
185
|
-
resumeFrom: options
|
186
|
-
intervalInMs: options
|
179
|
+
resumeFrom: options?.resumeFrom,
|
180
|
+
intervalInMs: options?.updateIntervalInMs
|
187
181
|
});
|
188
182
|
await poller.poll();
|
189
183
|
return poller;
|
@@ -212,14 +206,19 @@ class RegisteredServersImpl {
|
|
212
206
|
return this.client.sendOperationRequest(args, spec);
|
213
207
|
};
|
214
208
|
const sendOperation = async (args, spec) => {
|
215
|
-
var _a;
|
216
209
|
let currentRawResponse = undefined;
|
217
|
-
const providedCallback =
|
210
|
+
const providedCallback = args.options?.onResponse;
|
218
211
|
const callback = (rawResponse, flatResponse) => {
|
219
212
|
currentRawResponse = rawResponse;
|
220
|
-
providedCallback
|
213
|
+
providedCallback?.(rawResponse, flatResponse);
|
214
|
+
};
|
215
|
+
const updatedArgs = {
|
216
|
+
...args,
|
217
|
+
options: {
|
218
|
+
...args.options,
|
219
|
+
onResponse: callback
|
220
|
+
}
|
221
221
|
};
|
222
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
223
222
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
224
223
|
return {
|
225
224
|
flatResponse,
|
@@ -238,8 +237,8 @@ class RegisteredServersImpl {
|
|
238
237
|
options
|
239
238
|
}, triggerRolloverOperationSpec);
|
240
239
|
const poller = new core_lro_1.LroEngine(lro, {
|
241
|
-
resumeFrom: options
|
242
|
-
intervalInMs: options
|
240
|
+
resumeFrom: options?.resumeFrom,
|
241
|
+
intervalInMs: options?.updateIntervalInMs
|
243
242
|
});
|
244
243
|
await poller.poll();
|
245
244
|
return poller;
|