@azure/arm-signalr 6.0.0-alpha.20250718.1 → 6.0.0-alpha.20250730.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +134 -62
- package/dist/browser/models/mappers.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/signalR.js +100 -109
- package/dist/browser/operations/signalR.js.map +1 -1
- package/dist/browser/operations/signalRCustomCertificates.js +34 -46
- package/dist/browser/operations/signalRCustomCertificates.js.map +1 -1
- package/dist/browser/operations/signalRCustomDomains.js +45 -52
- package/dist/browser/operations/signalRCustomDomains.js.map +1 -1
- package/dist/browser/operations/signalRPrivateEndpointConnections.js +34 -46
- package/dist/browser/operations/signalRPrivateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/signalRPrivateLinkResources.js +23 -40
- package/dist/browser/operations/signalRPrivateLinkResources.js.map +1 -1
- package/dist/browser/operations/signalRReplicas.js +56 -58
- package/dist/browser/operations/signalRReplicas.js.map +1 -1
- package/dist/browser/operations/signalRSharedPrivateLinkResources.js +45 -52
- package/dist/browser/operations/signalRSharedPrivateLinkResources.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/signalRManagementClient.js +22 -5
- package/dist/browser/signalRManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +134 -62
- package/dist/commonjs/models/mappers.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/signalR.js +100 -108
- package/dist/commonjs/operations/signalR.js.map +1 -1
- package/dist/commonjs/operations/signalRCustomCertificates.js +34 -45
- package/dist/commonjs/operations/signalRCustomCertificates.js.map +1 -1
- package/dist/commonjs/operations/signalRCustomDomains.js +45 -51
- package/dist/commonjs/operations/signalRCustomDomains.js.map +1 -1
- package/dist/commonjs/operations/signalRPrivateEndpointConnections.js +34 -45
- package/dist/commonjs/operations/signalRPrivateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/signalRPrivateLinkResources.js +23 -39
- package/dist/commonjs/operations/signalRPrivateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/signalRReplicas.js +56 -57
- package/dist/commonjs/operations/signalRReplicas.js.map +1 -1
- package/dist/commonjs/operations/signalRSharedPrivateLinkResources.js +45 -51
- package/dist/commonjs/operations/signalRSharedPrivateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/signalRManagementClient.js +22 -5
- package/dist/commonjs/signalRManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +134 -62
- package/dist/esm/models/mappers.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/signalR.js +100 -109
- package/dist/esm/operations/signalR.js.map +1 -1
- package/dist/esm/operations/signalRCustomCertificates.js +34 -46
- package/dist/esm/operations/signalRCustomCertificates.js.map +1 -1
- package/dist/esm/operations/signalRCustomDomains.js +45 -52
- package/dist/esm/operations/signalRCustomDomains.js.map +1 -1
- package/dist/esm/operations/signalRPrivateEndpointConnections.js +34 -46
- package/dist/esm/operations/signalRPrivateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/signalRPrivateLinkResources.js +23 -40
- package/dist/esm/operations/signalRPrivateLinkResources.js.map +1 -1
- package/dist/esm/operations/signalRReplicas.js +56 -58
- package/dist/esm/operations/signalRReplicas.js.map +1 -1
- package/dist/esm/operations/signalRSharedPrivateLinkResources.js +45 -52
- package/dist/esm/operations/signalRSharedPrivateLinkResources.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/signalRManagementClient.js +22 -5
- package/dist/esm/signalRManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +134 -62
- package/dist/react-native/models/mappers.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/signalR.js +100 -109
- package/dist/react-native/operations/signalR.js.map +1 -1
- package/dist/react-native/operations/signalRCustomCertificates.js +34 -46
- package/dist/react-native/operations/signalRCustomCertificates.js.map +1 -1
- package/dist/react-native/operations/signalRCustomDomains.js +45 -52
- package/dist/react-native/operations/signalRCustomDomains.js.map +1 -1
- package/dist/react-native/operations/signalRPrivateEndpointConnections.js +34 -46
- package/dist/react-native/operations/signalRPrivateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/signalRPrivateLinkResources.js +23 -40
- package/dist/react-native/operations/signalRPrivateLinkResources.js.map +1 -1
- package/dist/react-native/operations/signalRReplicas.js +56 -58
- package/dist/react-native/operations/signalRReplicas.js.map +1 -1
- package/dist/react-native/operations/signalRSharedPrivateLinkResources.js +45 -52
- package/dist/react-native/operations/signalRSharedPrivateLinkResources.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/signalRManagementClient.js +22 -5
- package/dist/react-native/signalRManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-signalr-node.api.md +1100 -1100
|
@@ -18,6 +18,7 @@ const lroImpl_js_1 = require("../lroImpl.js");
|
|
|
18
18
|
/// <reference lib="esnext.asynciterable" />
|
|
19
19
|
/** Class containing SignalRSharedPrivateLinkResources operations. */
|
|
20
20
|
class SignalRSharedPrivateLinkResourcesImpl {
|
|
21
|
+
client;
|
|
21
22
|
/**
|
|
22
23
|
* Initialize a new instance of the class SignalRSharedPrivateLinkResources class.
|
|
23
24
|
* @param client Reference to the service client
|
|
@@ -41,52 +42,35 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
41
42
|
return this;
|
|
42
43
|
},
|
|
43
44
|
byPage: (settings) => {
|
|
44
|
-
if (settings
|
|
45
|
+
if (settings?.maxPageSize) {
|
|
45
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
46
47
|
}
|
|
47
48
|
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
51
|
}
|
|
51
|
-
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
69
|
-
});
|
|
52
|
+
async *listPagingPage(resourceGroupName, resourceName, options, settings) {
|
|
53
|
+
let result;
|
|
54
|
+
let continuationToken = settings?.continuationToken;
|
|
55
|
+
if (!continuationToken) {
|
|
56
|
+
result = await this._list(resourceGroupName, resourceName, options);
|
|
57
|
+
let page = result.value || [];
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
60
|
+
yield page;
|
|
61
|
+
}
|
|
62
|
+
while (continuationToken) {
|
|
63
|
+
result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
|
|
64
|
+
continuationToken = result.nextLink;
|
|
65
|
+
let page = result.value || [];
|
|
66
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
67
|
+
yield page;
|
|
68
|
+
}
|
|
70
69
|
}
|
|
71
|
-
listPagingAll(resourceGroupName, resourceName, options) {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
76
|
-
_c = _f.value;
|
|
77
|
-
_d = false;
|
|
78
|
-
const page = _c;
|
|
79
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
83
|
-
finally {
|
|
84
|
-
try {
|
|
85
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
86
|
-
}
|
|
87
|
-
finally { if (e_1) throw e_1.error; }
|
|
88
|
-
}
|
|
89
|
-
});
|
|
70
|
+
async *listPagingAll(resourceGroupName, resourceName, options) {
|
|
71
|
+
for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
|
|
72
|
+
yield* page;
|
|
73
|
+
}
|
|
90
74
|
}
|
|
91
75
|
/**
|
|
92
76
|
* List shared private link resources
|
|
@@ -125,14 +109,19 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
125
109
|
return this.client.sendOperationRequest(args, spec);
|
|
126
110
|
};
|
|
127
111
|
const sendOperationFn = async (args, spec) => {
|
|
128
|
-
var _a;
|
|
129
112
|
let currentRawResponse = undefined;
|
|
130
|
-
const providedCallback =
|
|
113
|
+
const providedCallback = args.options?.onResponse;
|
|
131
114
|
const callback = (rawResponse, flatResponse) => {
|
|
132
115
|
currentRawResponse = rawResponse;
|
|
133
|
-
providedCallback
|
|
116
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
117
|
+
};
|
|
118
|
+
const updatedArgs = {
|
|
119
|
+
...args,
|
|
120
|
+
options: {
|
|
121
|
+
...args.options,
|
|
122
|
+
onResponse: callback
|
|
123
|
+
}
|
|
134
124
|
};
|
|
135
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
136
125
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
137
126
|
return {
|
|
138
127
|
flatResponse,
|
|
@@ -155,8 +144,8 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
155
144
|
spec: createOrUpdateOperationSpec
|
|
156
145
|
});
|
|
157
146
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
158
|
-
restoreFrom: options
|
|
159
|
-
intervalInMs: options
|
|
147
|
+
restoreFrom: options?.resumeFrom,
|
|
148
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
160
149
|
resourceLocationConfig: "azure-async-operation"
|
|
161
150
|
});
|
|
162
151
|
await poller.poll();
|
|
@@ -186,14 +175,19 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
186
175
|
return this.client.sendOperationRequest(args, spec);
|
|
187
176
|
};
|
|
188
177
|
const sendOperationFn = async (args, spec) => {
|
|
189
|
-
var _a;
|
|
190
178
|
let currentRawResponse = undefined;
|
|
191
|
-
const providedCallback =
|
|
179
|
+
const providedCallback = args.options?.onResponse;
|
|
192
180
|
const callback = (rawResponse, flatResponse) => {
|
|
193
181
|
currentRawResponse = rawResponse;
|
|
194
|
-
providedCallback
|
|
182
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
183
|
+
};
|
|
184
|
+
const updatedArgs = {
|
|
185
|
+
...args,
|
|
186
|
+
options: {
|
|
187
|
+
...args.options,
|
|
188
|
+
onResponse: callback
|
|
189
|
+
}
|
|
195
190
|
};
|
|
196
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
197
191
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
198
192
|
return {
|
|
199
193
|
flatResponse,
|
|
@@ -215,8 +209,8 @@ class SignalRSharedPrivateLinkResourcesImpl {
|
|
|
215
209
|
spec: deleteOperationSpec
|
|
216
210
|
});
|
|
217
211
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
218
|
-
restoreFrom: options
|
|
219
|
-
intervalInMs: options
|
|
212
|
+
restoreFrom: options?.resumeFrom,
|
|
213
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
220
214
|
resourceLocationConfig: "location"
|
|
221
215
|
});
|
|
222
216
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signalRSharedPrivateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/signalRSharedPrivateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,qEAAqE;AACrE,MAAa,qCAAqC;IAIhD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAA6D;QAE7D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,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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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 { SignalRSharedPrivateLinkResources } 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 { SignalRManagementClient } from \"../signalRManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SharedPrivateLinkResource,\n SignalRSharedPrivateLinkResourcesListNextOptionalParams,\n SignalRSharedPrivateLinkResourcesListOptionalParams,\n SignalRSharedPrivateLinkResourcesListResponse,\n SignalRSharedPrivateLinkResourcesGetOptionalParams,\n SignalRSharedPrivateLinkResourcesGetResponse,\n SignalRSharedPrivateLinkResourcesCreateOrUpdateOptionalParams,\n SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse,\n SignalRSharedPrivateLinkResourcesDeleteOptionalParams,\n SignalRSharedPrivateLinkResourcesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SignalRSharedPrivateLinkResources operations. */\nexport class SignalRSharedPrivateLinkResourcesImpl\n implements SignalRSharedPrivateLinkResources {\n private readonly client: SignalRManagementClient;\n\n /**\n * Initialize a new instance of the class SignalRSharedPrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: SignalRManagementClient) {\n this.client = client;\n }\n\n /**\n * List shared private link resources\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams\n ): PagedAsyncIterableIterator<SharedPrivateLinkResource> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SharedPrivateLinkResource[]> {\n let result: SignalRSharedPrivateLinkResourcesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams\n ): AsyncIterableIterator<SharedPrivateLinkResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List shared private link resources\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get the specified shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n get(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesGetOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n {\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param parameters The shared private link resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n parameters: SharedPrivateLinkResource,\n options?: SignalRSharedPrivateLinkResourcesCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse>,\n SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = 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 = createLroSpec({\n sendOperationFn,\n args: {\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n parameters,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse,\n OperationState<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param parameters The shared private link resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n parameters: SharedPrivateLinkResource,\n options?: SignalRSharedPrivateLinkResourcesCreateOrUpdateOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the specified shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n async beginDelete(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<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 sendOperationFn = 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 = createLroSpec({\n sendOperationFn,\n args: {\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the specified shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\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 resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: SignalRSharedPrivateLinkResourcesListNextOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.sharedPrivateLinkResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n 201: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n 202: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n 204: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.sharedPrivateLinkResourceName\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.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.sharedPrivateLinkResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"signalRSharedPrivateLinkResources.js","sourceRoot":"","sources":["../../../src/operations/signalRSharedPrivateLinkResources.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAc9C,4CAA4C;AAC5C,qEAAqE;AACrE,MAAa,qCAAqC;IAE/B,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC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gB,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 { SignalRSharedPrivateLinkResources } 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 { SignalRManagementClient } from \"../signalRManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n SharedPrivateLinkResource,\n SignalRSharedPrivateLinkResourcesListNextOptionalParams,\n SignalRSharedPrivateLinkResourcesListOptionalParams,\n SignalRSharedPrivateLinkResourcesListResponse,\n SignalRSharedPrivateLinkResourcesGetOptionalParams,\n SignalRSharedPrivateLinkResourcesGetResponse,\n SignalRSharedPrivateLinkResourcesCreateOrUpdateOptionalParams,\n SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse,\n SignalRSharedPrivateLinkResourcesDeleteOptionalParams,\n SignalRSharedPrivateLinkResourcesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing SignalRSharedPrivateLinkResources operations. */\nexport class SignalRSharedPrivateLinkResourcesImpl\n implements SignalRSharedPrivateLinkResources {\n private readonly client: SignalRManagementClient;\n\n /**\n * Initialize a new instance of the class SignalRSharedPrivateLinkResources class.\n * @param client Reference to the service client\n */\n constructor(client: SignalRManagementClient) {\n this.client = client;\n }\n\n /**\n * List shared private link resources\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams\n ): PagedAsyncIterableIterator<SharedPrivateLinkResource> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SharedPrivateLinkResource[]> {\n let result: SignalRSharedPrivateLinkResourcesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams\n ): AsyncIterableIterator<SharedPrivateLinkResource> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * List shared private link resources\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesListOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get the specified shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n get(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesGetOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesGetResponse> {\n return this.client.sendOperationRequest(\n {\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Create or update a shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param parameters The shared private link resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n parameters: SharedPrivateLinkResource,\n options?: SignalRSharedPrivateLinkResourcesCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse>,\n SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = 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 = createLroSpec({\n sendOperationFn,\n args: {\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n parameters,\n options\n },\n spec: createOrUpdateOperationSpec\n });\n const poller = await createHttpPoller<\n SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse,\n OperationState<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Create or update a shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param parameters The shared private link resource\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n parameters: SharedPrivateLinkResource,\n options?: SignalRSharedPrivateLinkResourcesCreateOrUpdateOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete the specified shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n async beginDelete(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<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 sendOperationFn = 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 = createLroSpec({\n sendOperationFn,\n args: {\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n options\n },\n spec: deleteOperationSpec\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the specified shared private link resource\n * @param sharedPrivateLinkResourceName The name of the shared private link resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n sharedPrivateLinkResourceName: string,\n resourceGroupName: string,\n resourceName: string,\n options?: SignalRSharedPrivateLinkResourcesDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n sharedPrivateLinkResourceName,\n resourceGroupName,\n resourceName,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the resource.\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 resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: SignalRSharedPrivateLinkResourcesListNextOptionalParams\n ): Promise<SignalRSharedPrivateLinkResourcesListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.sharedPrivateLinkResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n 201: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n 202: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n 204: {\n bodyMapper: Mappers.SharedPrivateLinkResource\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters7,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.sharedPrivateLinkResourceName\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.SignalRService/signalR/{resourceName}/sharedPrivateLinkResources/{sharedPrivateLinkResourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n Parameters.sharedPrivateLinkResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SharedPrivateLinkResourceList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Usages operations. */
|
|
18
18
|
class UsagesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Usages class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -38,52 +39,35 @@ class UsagesImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listPagingPage(location, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listPagingPage(location, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
49
|
+
async *listPagingPage(location, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._list(location, options);
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
57
|
+
yield page;
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = await this._listNext(location, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
67
66
|
}
|
|
68
|
-
listPagingAll(location, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(location, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
67
|
+
async *listPagingAll(location, options) {
|
|
68
|
+
for await (const page of this.listPagingPage(location, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
87
71
|
}
|
|
88
72
|
/**
|
|
89
73
|
* List resource usage quotas by location.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;
|
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAa,UAAU;IACJ,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,QAAgB,EAChB,OAAkC;QAElC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QACnD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;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,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Usages } 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 { SignalRManagementClient } from \"../signalRManagementClient.js\";\nimport {\n SignalRUsage,\n UsagesListNextOptionalParams,\n UsagesListOptionalParams,\n UsagesListResponse,\n UsagesListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: SignalRManagementClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: SignalRManagementClient) {\n this.client = client;\n }\n\n /**\n * List resource usage quotas by location.\n * @param location the location like \"eastus\"\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: UsagesListOptionalParams\n ): PagedAsyncIterableIterator<SignalRUsage> {\n const iter = this.listPagingAll(location, 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(location, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: UsagesListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<SignalRUsage[]> {\n let result: UsagesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, 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(location, 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 location: string,\n options?: UsagesListOptionalParams\n ): AsyncIterableIterator<SignalRUsage> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * List resource usage quotas by location.\n * @param location the location like \"eastus\"\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: UsagesListOptionalParams\n ): Promise<UsagesListResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param location the location like \"eastus\"\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 location: string,\n nextLink: string,\n options?: UsagesListNextOptionalParams\n ): Promise<UsagesListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.SignalRService/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SignalRUsageList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.location,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SignalRUsageList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.location,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -18,18 +18,16 @@ const pageMap = new WeakMap();
|
|
|
18
18
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
19
|
*/
|
|
20
20
|
function getContinuationToken(page) {
|
|
21
|
-
var _a;
|
|
22
21
|
if (typeof page !== "object" || page === null) {
|
|
23
22
|
return undefined;
|
|
24
23
|
}
|
|
25
|
-
return
|
|
24
|
+
return pageMap.get(page)?.continuationToken;
|
|
26
25
|
}
|
|
27
26
|
function setContinuationToken(page, continuationToken) {
|
|
28
|
-
var _a;
|
|
29
27
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
30
28
|
return;
|
|
31
29
|
}
|
|
32
|
-
const pageInfo =
|
|
30
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
33
31
|
pageInfo.continuationToken = continuationToken;
|
|
34
32
|
pageMap.set(page, pageInfo);
|
|
35
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -13,6 +13,9 @@ const coreClient = tslib_1.__importStar(require("@azure/core-client"));
|
|
|
13
13
|
const coreRestPipeline = tslib_1.__importStar(require("@azure/core-rest-pipeline"));
|
|
14
14
|
const index_js_1 = require("./operations/index.js");
|
|
15
15
|
class SignalRManagementClient extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the SignalRManagementClient class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -20,7 +23,6 @@ class SignalRManagementClient extends coreClient.ServiceClient {
|
|
|
20
23
|
* @param options The parameter options
|
|
21
24
|
*/
|
|
22
25
|
constructor(credentials, subscriptionId, options) {
|
|
23
|
-
var _a, _b, _c;
|
|
24
26
|
if (credentials === undefined) {
|
|
25
27
|
throw new Error("'credentials' cannot be null");
|
|
26
28
|
}
|
|
@@ -39,12 +41,17 @@ class SignalRManagementClient extends coreClient.ServiceClient {
|
|
|
39
41
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
40
42
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
41
43
|
: `${packageDetails}`;
|
|
42
|
-
const optionsWithDefaults =
|
|
44
|
+
const optionsWithDefaults = {
|
|
45
|
+
...defaults,
|
|
46
|
+
...options,
|
|
47
|
+
userAgentOptions: {
|
|
43
48
|
userAgentPrefix
|
|
44
|
-
},
|
|
49
|
+
},
|
|
50
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
51
|
+
};
|
|
45
52
|
super(optionsWithDefaults);
|
|
46
53
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
-
if (
|
|
54
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
55
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
56
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
50
57
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -58,7 +65,8 @@ class SignalRManagementClient extends coreClient.ServiceClient {
|
|
|
58
65
|
});
|
|
59
66
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
60
67
|
credential: credentials,
|
|
61
|
-
scopes:
|
|
68
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
69
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
62
70
|
challengeCallbacks: {
|
|
63
71
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
64
72
|
}
|
|
@@ -105,6 +113,15 @@ class SignalRManagementClient extends coreClient.ServiceClient {
|
|
|
105
113
|
};
|
|
106
114
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
107
115
|
}
|
|
116
|
+
operations;
|
|
117
|
+
signalR;
|
|
118
|
+
usages;
|
|
119
|
+
signalRCustomCertificates;
|
|
120
|
+
signalRCustomDomains;
|
|
121
|
+
signalRPrivateEndpointConnections;
|
|
122
|
+
signalRPrivateLinkResources;
|
|
123
|
+
signalRReplicas;
|
|
124
|
+
signalRSharedPrivateLinkResources;
|
|
108
125
|
}
|
|
109
126
|
exports.SignalRManagementClient = SignalRManagementClient;
|
|
110
127
|
//# sourceMappingURL=signalRManagementClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signalRManagementClient.js","sourceRoot":"","sources":["../../src/signalRManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"signalRManagementClient.js","sourceRoot":"","sources":["../../src/signalRManagementClient.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAU+B;AAc/B,MAAa,uBAAwB,SAAQ,UAAU,CAAC,aAAa;IACnE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,O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B;IACrD,oBAAoB,CAAuB;IAC3C,iCAAiC,CAAoC;IACrE,2BAA2B,CAA8B;IACzD,eAAe,CAAkB;IACjC,iCAAiC,CAAoC;CACtE;AA7ID,0DA6IC","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n SignalRImpl,\n UsagesImpl,\n SignalRCustomCertificatesImpl,\n SignalRCustomDomainsImpl,\n SignalRPrivateEndpointConnectionsImpl,\n SignalRPrivateLinkResourcesImpl,\n SignalRReplicasImpl,\n SignalRSharedPrivateLinkResourcesImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n SignalR,\n Usages,\n SignalRCustomCertificates,\n SignalRCustomDomains,\n SignalRPrivateEndpointConnections,\n SignalRPrivateLinkResources,\n SignalRReplicas,\n SignalRSharedPrivateLinkResources\n} from \"./operationsInterfaces/index.js\";\nimport { SignalRManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class SignalRManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the SignalRManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription. The value must be an UUID.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: SignalRManagementClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: SignalRManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-signalr/6.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-08-01-preview\";\n this.operations = new OperationsImpl(this);\n this.signalR = new SignalRImpl(this);\n this.usages = new UsagesImpl(this);\n this.signalRCustomCertificates = new SignalRCustomCertificatesImpl(this);\n this.signalRCustomDomains = new SignalRCustomDomainsImpl(this);\n this.signalRPrivateEndpointConnections = new SignalRPrivateEndpointConnectionsImpl(\n this\n );\n this.signalRPrivateLinkResources = new SignalRPrivateLinkResourcesImpl(\n this\n );\n this.signalRReplicas = new SignalRReplicasImpl(this);\n this.signalRSharedPrivateLinkResources = new SignalRSharedPrivateLinkResourcesImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n signalR: SignalR;\n usages: Usages;\n signalRCustomCertificates: SignalRCustomCertificates;\n signalRCustomDomains: SignalRCustomDomains;\n signalRPrivateEndpointConnections: SignalRPrivateEndpointConnections;\n signalRPrivateLinkResources: SignalRPrivateLinkResources;\n signalRReplicas: SignalRReplicas;\n signalRSharedPrivateLinkResources: SignalRSharedPrivateLinkResources;\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.52.
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.9"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
package/dist/esm/lroImpl.js
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { __rest } from "tslib";
|
|
2
1
|
export function createLroSpec(inputs) {
|
|
3
2
|
const { args, spec, sendOperationFn } = inputs;
|
|
4
3
|
return {
|
|
@@ -6,8 +5,13 @@ export function createLroSpec(inputs) {
|
|
|
6
5
|
requestPath: spec.path,
|
|
7
6
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
8
7
|
sendPollRequest: (path, options) => {
|
|
9
|
-
const { requestBody
|
|
10
|
-
return sendOperationFn(args,
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal
|
|
14
|
+
});
|
|
11
15
|
}
|
|
12
16
|
};
|
|
13
17
|
}
|
package/dist/esm/lroImpl.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,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 */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
|