@azure/arm-informaticadatamanagement 1.0.1-alpha.20250717.1 → 1.0.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/informaticaDataManagement.js +16 -5
- package/dist/browser/informaticaDataManagement.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +20 -8
- 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/organizations.js +67 -91
- package/dist/browser/operations/organizations.js.map +1 -1
- package/dist/browser/operations/serverlessRuntimes.js +45 -52
- package/dist/browser/operations/serverlessRuntimes.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/informaticaDataManagement.js +16 -5
- package/dist/commonjs/informaticaDataManagement.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 +20 -8
- 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/organizations.js +67 -90
- package/dist/commonjs/operations/organizations.js.map +1 -1
- package/dist/commonjs/operations/serverlessRuntimes.js +45 -51
- package/dist/commonjs/operations/serverlessRuntimes.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/informaticaDataManagement.js +16 -5
- package/dist/esm/informaticaDataManagement.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +20 -8
- 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/organizations.js +67 -91
- package/dist/esm/operations/organizations.js.map +1 -1
- package/dist/esm/operations/serverlessRuntimes.js +45 -52
- package/dist/esm/operations/serverlessRuntimes.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/informaticaDataManagement.js +16 -5
- package/dist/react-native/informaticaDataManagement.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 +20 -8
- 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/organizations.js +67 -91
- package/dist/react-native/operations/organizations.js.map +1 -1
- package/dist/react-native/operations/serverlessRuntimes.js +45 -52
- package/dist/react-native/operations/serverlessRuntimes.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-informaticadatamanagement-node.api.md +727 -727
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing ServerlessRuntimes operations. */
|
|
17
16
|
export class ServerlessRuntimesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class ServerlessRuntimes class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class ServerlessRuntimesImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listByInformaticaOrganizationResourcePagingPage(resourceGroupName, organizationName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
listByInformaticaOrganizationResourcePagingPage(resourceGroupName, organizationName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *listByInformaticaOrganizationResourcePagingPage(resourceGroupName, organizationName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._listByInformaticaOrganizationResource(resourceGroupName, organizationName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listByInformaticaOrganizationResourceNext(resourceGroupName, organizationName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
listByInformaticaOrganizationResourcePagingAll(resourceGroupName, organizationName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.listByInformaticaOrganizationResourcePagingPage(resourceGroupName, organizationName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__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 __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *listByInformaticaOrganizationResourcePagingAll(resourceGroupName, organizationName, options) {
|
|
67
|
+
for await (const page of this.listByInformaticaOrganizationResourcePagingPage(resourceGroupName, organizationName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource
|
|
@@ -117,14 +100,19 @@ export class ServerlessRuntimesImpl {
|
|
|
117
100
|
return this.client.sendOperationRequest(args, spec);
|
|
118
101
|
};
|
|
119
102
|
const sendOperationFn = async (args, spec) => {
|
|
120
|
-
var _a;
|
|
121
103
|
let currentRawResponse = undefined;
|
|
122
|
-
const providedCallback =
|
|
104
|
+
const providedCallback = args.options?.onResponse;
|
|
123
105
|
const callback = (rawResponse, flatResponse) => {
|
|
124
106
|
currentRawResponse = rawResponse;
|
|
125
|
-
providedCallback
|
|
107
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
108
|
+
};
|
|
109
|
+
const updatedArgs = {
|
|
110
|
+
...args,
|
|
111
|
+
options: {
|
|
112
|
+
...args.options,
|
|
113
|
+
onResponse: callback,
|
|
114
|
+
},
|
|
126
115
|
};
|
|
127
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
128
116
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
129
117
|
return {
|
|
130
118
|
flatResponse,
|
|
@@ -147,8 +135,8 @@ export class ServerlessRuntimesImpl {
|
|
|
147
135
|
spec: createOrUpdateOperationSpec,
|
|
148
136
|
});
|
|
149
137
|
const poller = await createHttpPoller(lro, {
|
|
150
|
-
restoreFrom: options
|
|
151
|
-
intervalInMs: options
|
|
138
|
+
restoreFrom: options?.resumeFrom,
|
|
139
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
152
140
|
resourceLocationConfig: "azure-async-operation",
|
|
153
141
|
});
|
|
154
142
|
await poller.poll();
|
|
@@ -195,14 +183,19 @@ export class ServerlessRuntimesImpl {
|
|
|
195
183
|
return this.client.sendOperationRequest(args, spec);
|
|
196
184
|
};
|
|
197
185
|
const sendOperationFn = async (args, spec) => {
|
|
198
|
-
var _a;
|
|
199
186
|
let currentRawResponse = undefined;
|
|
200
|
-
const providedCallback =
|
|
187
|
+
const providedCallback = args.options?.onResponse;
|
|
201
188
|
const callback = (rawResponse, flatResponse) => {
|
|
202
189
|
currentRawResponse = rawResponse;
|
|
203
|
-
providedCallback
|
|
190
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
191
|
+
};
|
|
192
|
+
const updatedArgs = {
|
|
193
|
+
...args,
|
|
194
|
+
options: {
|
|
195
|
+
...args.options,
|
|
196
|
+
onResponse: callback,
|
|
197
|
+
},
|
|
204
198
|
};
|
|
205
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
206
199
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
207
200
|
return {
|
|
208
201
|
flatResponse,
|
|
@@ -224,8 +217,8 @@ export class ServerlessRuntimesImpl {
|
|
|
224
217
|
spec: deleteOperationSpec,
|
|
225
218
|
});
|
|
226
219
|
const poller = await createHttpPoller(lro, {
|
|
227
|
-
restoreFrom: options
|
|
228
|
-
intervalInMs: options
|
|
220
|
+
restoreFrom: options?.resumeFrom,
|
|
221
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
229
222
|
resourceLocationConfig: "location",
|
|
230
223
|
});
|
|
231
224
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serverlessRuntimes.js","sourceRoot":"","sources":["../../../src/operations/serverlessRuntimes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAuB9C,4CAA4C;AAC5C,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAGjC;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qCAAqC,CAC1C,iBAAyB,EACzB,gBAAwB,EACxB,OAA+E;QAE/E,MAAM,IAAI,GAAG,IAAI,CAAC,8CAA8C,CAC9D,iBAAiB,EACjB,gBAAgB,EAChB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAA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,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sDAAsD,GAC1D;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8CAA8C;SACnE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;KAC5B;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 { ServerlessRuntimes } 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 { InformaticaDataManagement } from \"../informaticaDataManagement.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n InformaticaServerlessRuntimeResource,\n ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams,\n ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ServerlessRuntimesListByInformaticaOrganizationResourceResponse,\n ServerlessRuntimesGetOptionalParams,\n ServerlessRuntimesGetResponse,\n ServerlessRuntimesCreateOrUpdateOptionalParams,\n ServerlessRuntimesCreateOrUpdateResponse,\n InformaticaServerlessRuntimeResourceUpdate,\n ServerlessRuntimesUpdateOptionalParams,\n ServerlessRuntimesUpdateResponse,\n ServerlessRuntimesDeleteOptionalParams,\n ServerlessRuntimesDeleteResponse,\n ServerlessRuntimesCheckDependenciesOptionalParams,\n ServerlessRuntimesCheckDependenciesResponse,\n ServerlessRuntimesServerlessResourceByIdOptionalParams,\n ServerlessRuntimesServerlessResourceByIdResponse,\n ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams,\n ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ServerlessRuntimes operations. */\nexport class ServerlessRuntimesImpl implements ServerlessRuntimes {\n private readonly client: InformaticaDataManagement;\n\n /**\n * Initialize a new instance of the class ServerlessRuntimes class.\n * @param client Reference to the service client\n */\n constructor(client: InformaticaDataManagement) {\n this.client = client;\n }\n\n /**\n * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n public listByInformaticaOrganizationResource(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ): PagedAsyncIterableIterator<InformaticaServerlessRuntimeResource> {\n const iter = this.listByInformaticaOrganizationResourcePagingAll(\n resourceGroupName,\n organizationName,\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.listByInformaticaOrganizationResourcePagingPage(\n resourceGroupName,\n organizationName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByInformaticaOrganizationResourcePagingPage(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<InformaticaServerlessRuntimeResource[]> {\n let result: ServerlessRuntimesListByInformaticaOrganizationResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByInformaticaOrganizationResource(\n resourceGroupName,\n organizationName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByInformaticaOrganizationResourceNext(\n resourceGroupName,\n organizationName,\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 *listByInformaticaOrganizationResourcePagingAll(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ): AsyncIterableIterator<InformaticaServerlessRuntimeResource> {\n for await (const page of this.listByInformaticaOrganizationResourcePagingPage(\n resourceGroupName,\n organizationName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n private _listByInformaticaOrganizationResource(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ): Promise<ServerlessRuntimesListByInformaticaOrganizationResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, options },\n listByInformaticaOrganizationResourceOperationSpec,\n );\n }\n\n /**\n * Get a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesGetOptionalParams,\n ): Promise<ServerlessRuntimesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n resource: InformaticaServerlessRuntimeResource,\n options?: ServerlessRuntimesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ServerlessRuntimesCreateOrUpdateResponse>,\n ServerlessRuntimesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ServerlessRuntimesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n resource,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ServerlessRuntimesCreateOrUpdateResponse,\n OperationState<ServerlessRuntimesCreateOrUpdateResponse>\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 a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n resource: InformaticaServerlessRuntimeResource,\n options?: ServerlessRuntimesCreateOrUpdateOptionalParams,\n ): Promise<ServerlessRuntimesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n properties: InformaticaServerlessRuntimeResourceUpdate,\n options?: ServerlessRuntimesUpdateOptionalParams,\n ): Promise<ServerlessRuntimesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n properties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ServerlessRuntimesDeleteResponse>,\n ServerlessRuntimesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ServerlessRuntimesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ServerlessRuntimesDeleteResponse,\n OperationState<ServerlessRuntimesDeleteResponse>\n >(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 a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesDeleteOptionalParams,\n ): Promise<ServerlessRuntimesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Checks all dependencies for a serverless runtime resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n checkDependencies(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesCheckDependenciesOptionalParams,\n ): Promise<ServerlessRuntimesCheckDependenciesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n checkDependenciesOperationSpec,\n );\n }\n\n /**\n * Returns a serverless runtime resource by ID\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n serverlessResourceById(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesServerlessResourceByIdOptionalParams,\n ): Promise<ServerlessRuntimesServerlessResourceByIdResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n serverlessResourceByIdOperationSpec,\n );\n }\n\n /**\n * Starts a failed runtime resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n startFailedServerlessRuntime(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n startFailedServerlessRuntimeOperationSpec,\n );\n }\n\n /**\n * ListByInformaticaOrganizationResourceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param nextLink The nextLink from the previous successful call to the\n * ListByInformaticaOrganizationResource method.\n * @param options The options parameters.\n */\n private _listByInformaticaOrganizationResourceNext(\n resourceGroupName: string,\n organizationName: string,\n nextLink: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams,\n ): Promise<ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, nextLink, options },\n listByInformaticaOrganizationResourceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByInformaticaOrganizationResourceOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResourceListResult,\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.organizationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n 201: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n 202: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n 204: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst checkDependenciesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckDependenciesResponse,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst serverlessResourceByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst startFailedServerlessRuntimeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/startFailedServerlessRuntime\",\n httpMethod: \"POST\",\n responses: {\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInformaticaOrganizationResourceNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResourceListResult,\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.organizationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
|
|
1
|
+
{"version":3,"file":"serverlessRuntimes.js","sourceRoot":"","sources":["../../../src/operations/serverlessRuntimes.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAuB9C,4CAA4C;AAC5C,sDAAsD;AACtD,MAAM,OAAO,sBAAsB;IAChB,MAAM,CAA4B;IAEnD;;;OAGG;IACH,YAAY,MAAiC;QAC3C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qCAAqC,CAC1C,iBAAyB,EACzB,gBAAwB,EACxB,OAA+E;QAE/E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AAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;QAC3B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,sDAAsD,GAC1D;IACE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8CAA8C;SACnE;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,gBAAgB;KAC5B;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 { ServerlessRuntimes } 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 { InformaticaDataManagement } from \"../informaticaDataManagement.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n InformaticaServerlessRuntimeResource,\n ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams,\n ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ServerlessRuntimesListByInformaticaOrganizationResourceResponse,\n ServerlessRuntimesGetOptionalParams,\n ServerlessRuntimesGetResponse,\n ServerlessRuntimesCreateOrUpdateOptionalParams,\n ServerlessRuntimesCreateOrUpdateResponse,\n InformaticaServerlessRuntimeResourceUpdate,\n ServerlessRuntimesUpdateOptionalParams,\n ServerlessRuntimesUpdateResponse,\n ServerlessRuntimesDeleteOptionalParams,\n ServerlessRuntimesDeleteResponse,\n ServerlessRuntimesCheckDependenciesOptionalParams,\n ServerlessRuntimesCheckDependenciesResponse,\n ServerlessRuntimesServerlessResourceByIdOptionalParams,\n ServerlessRuntimesServerlessResourceByIdResponse,\n ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams,\n ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ServerlessRuntimes operations. */\nexport class ServerlessRuntimesImpl implements ServerlessRuntimes {\n private readonly client: InformaticaDataManagement;\n\n /**\n * Initialize a new instance of the class ServerlessRuntimes class.\n * @param client Reference to the service client\n */\n constructor(client: InformaticaDataManagement) {\n this.client = client;\n }\n\n /**\n * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n public listByInformaticaOrganizationResource(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ): PagedAsyncIterableIterator<InformaticaServerlessRuntimeResource> {\n const iter = this.listByInformaticaOrganizationResourcePagingAll(\n resourceGroupName,\n organizationName,\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.listByInformaticaOrganizationResourcePagingPage(\n resourceGroupName,\n organizationName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByInformaticaOrganizationResourcePagingPage(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<InformaticaServerlessRuntimeResource[]> {\n let result: ServerlessRuntimesListByInformaticaOrganizationResourceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByInformaticaOrganizationResource(\n resourceGroupName,\n organizationName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByInformaticaOrganizationResourceNext(\n resourceGroupName,\n organizationName,\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 *listByInformaticaOrganizationResourcePagingAll(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ): AsyncIterableIterator<InformaticaServerlessRuntimeResource> {\n for await (const page of this.listByInformaticaOrganizationResourcePagingPage(\n resourceGroupName,\n organizationName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List InformaticaServerlessRuntimeResource resources by InformaticaOrganizationResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param options The options parameters.\n */\n private _listByInformaticaOrganizationResource(\n resourceGroupName: string,\n organizationName: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceOptionalParams,\n ): Promise<ServerlessRuntimesListByInformaticaOrganizationResourceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, options },\n listByInformaticaOrganizationResourceOperationSpec,\n );\n }\n\n /**\n * Get a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesGetOptionalParams,\n ): Promise<ServerlessRuntimesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n resource: InformaticaServerlessRuntimeResource,\n options?: ServerlessRuntimesCreateOrUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ServerlessRuntimesCreateOrUpdateResponse>,\n ServerlessRuntimesCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ServerlessRuntimesCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n resource,\n options,\n },\n spec: createOrUpdateOperationSpec,\n });\n const poller = await createHttpPoller<\n ServerlessRuntimesCreateOrUpdateResponse,\n OperationState<ServerlessRuntimesCreateOrUpdateResponse>\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 a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param resource Resource create parameters.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n resource: InformaticaServerlessRuntimeResource,\n options?: ServerlessRuntimesCreateOrUpdateOptionalParams,\n ): Promise<ServerlessRuntimesCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n resource,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param properties The resource properties to be updated.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n properties: InformaticaServerlessRuntimeResourceUpdate,\n options?: ServerlessRuntimesUpdateOptionalParams,\n ): Promise<ServerlessRuntimesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n properties,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Delete a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ServerlessRuntimesDeleteResponse>,\n ServerlessRuntimesDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ServerlessRuntimesDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n ServerlessRuntimesDeleteResponse,\n OperationState<ServerlessRuntimesDeleteResponse>\n >(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 a InformaticaServerlessRuntimeResource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesDeleteOptionalParams,\n ): Promise<ServerlessRuntimesDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n organizationName,\n serverlessRuntimeName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Checks all dependencies for a serverless runtime resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n checkDependencies(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesCheckDependenciesOptionalParams,\n ): Promise<ServerlessRuntimesCheckDependenciesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n checkDependenciesOperationSpec,\n );\n }\n\n /**\n * Returns a serverless runtime resource by ID\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n serverlessResourceById(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesServerlessResourceByIdOptionalParams,\n ): Promise<ServerlessRuntimesServerlessResourceByIdResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n serverlessResourceByIdOperationSpec,\n );\n }\n\n /**\n * Starts a failed runtime resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param serverlessRuntimeName Name of the Serverless Runtime resource\n * @param options The options parameters.\n */\n startFailedServerlessRuntime(\n resourceGroupName: string,\n organizationName: string,\n serverlessRuntimeName: string,\n options?: ServerlessRuntimesStartFailedServerlessRuntimeOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, serverlessRuntimeName, options },\n startFailedServerlessRuntimeOperationSpec,\n );\n }\n\n /**\n * ListByInformaticaOrganizationResourceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param organizationName Name of the Organizations resource\n * @param nextLink The nextLink from the previous successful call to the\n * ListByInformaticaOrganizationResource method.\n * @param options The options parameters.\n */\n private _listByInformaticaOrganizationResourceNext(\n resourceGroupName: string,\n organizationName: string,\n nextLink: string,\n options?: ServerlessRuntimesListByInformaticaOrganizationResourceNextOptionalParams,\n ): Promise<ServerlessRuntimesListByInformaticaOrganizationResourceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, organizationName, nextLink, options },\n listByInformaticaOrganizationResourceNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByInformaticaOrganizationResourceOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResourceListResult,\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.organizationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n 201: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n 202: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n 204: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.resource1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.properties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.ServerlessRuntimesDeleteHeaders,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst checkDependenciesOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/checkDependencies\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckDependenciesResponse,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst serverlessResourceByIdOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/serverlessResourceById\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResource,\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst startFailedServerlessRuntimeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Informatica.DataManagement/organizations/{organizationName}/serverlessRuntimes/{serverlessRuntimeName}/startFailedServerlessRuntime\",\n httpMethod: \"POST\",\n responses: {\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.organizationName,\n Parameters.serverlessRuntimeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByInformaticaOrganizationResourceNextOperationSpec: coreClient.OperationSpec =\n {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.InformaticaServerlessRuntimeResourceListResult,\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.organizationName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n };\n"]}
|
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,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,MAAM,UAAU,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 InformaticaDataManagement extends coreClient.ServiceClient {
|
|
16
|
+
$host;
|
|
17
|
+
apiVersion;
|
|
18
|
+
subscriptionId;
|
|
16
19
|
/**
|
|
17
20
|
* Initializes a new instance of the InformaticaDataManagement class.
|
|
18
21
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -20,7 +23,6 @@ class InformaticaDataManagement 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 InformaticaDataManagement 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 InformaticaDataManagement 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
|
},
|
|
@@ -99,6 +107,9 @@ class InformaticaDataManagement extends coreClient.ServiceClient {
|
|
|
99
107
|
};
|
|
100
108
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
101
109
|
}
|
|
110
|
+
operations;
|
|
111
|
+
organizations;
|
|
112
|
+
serverlessRuntimes;
|
|
102
113
|
}
|
|
103
114
|
exports.InformaticaDataManagement = InformaticaDataManagement;
|
|
104
115
|
//# sourceMappingURL=informaticaDataManagement.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"informaticaDataManagement.js","sourceRoot":"","sources":["../../src/informaticaDataManagement.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAI+B;AAQ/B,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;
|
|
1
|
+
{"version":3,"file":"informaticaDataManagement.js","sourceRoot":"","sources":["../../src/informaticaDataManagement.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,uEAAiD;AACjD,oFAA8D;AAO9D,oDAI+B;AAQ/B,MAAa,yBAA0B,SAAQ,UAAU,CAAC,aAAa;IACrE,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAiD;QAEjD,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA4C;YACxD,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,8CAA8C,CAAC;QACtE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,MAAM,mBAAmB,GAAG;YAC1B,GAAG,QAAQ;YACX,GAAG,OAAO;YACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB;YACD,QAAQ,EACN,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B;SACxE,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAE3B,IAAI,oCAA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\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 OrganizationsImpl,\n ServerlessRuntimesImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Organizations,\n ServerlessRuntimes,\n} from \"./operationsInterfaces/index.js\";\nimport { InformaticaDataManagementOptionalParams } from \"./models/index.js\";\n\nexport class InformaticaDataManagement extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the InformaticaDataManagement class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: InformaticaDataManagementOptionalParams,\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: InformaticaDataManagementOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-informaticadatamanagement/1.0.1`;\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[] =\n 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 || \"2024-05-08\";\n this.operations = new OperationsImpl(this);\n this.organizations = new OrganizationsImpl(this);\n this.serverlessRuntimes = new ServerlessRuntimesImpl(this);\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 organizations: Organizations;\n serverlessRuntimes: ServerlessRuntimes;\n}\n"]}
|
package/dist/commonjs/lroImpl.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createLroSpec = createLroSpec;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
4
|
function createLroSpec(inputs) {
|
|
6
5
|
const { args, spec, sendOperationFn } = inputs;
|
|
7
6
|
return {
|
|
@@ -9,8 +8,13 @@ function createLroSpec(inputs) {
|
|
|
9
8
|
requestPath: spec.path,
|
|
10
9
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
11
10
|
sendPollRequest: (path, options) => {
|
|
12
|
-
const { requestBody
|
|
13
|
-
return sendOperationFn(args,
|
|
11
|
+
const { requestBody, ...restSpec } = spec;
|
|
12
|
+
return sendOperationFn(args, {
|
|
13
|
+
...restSpec,
|
|
14
|
+
httpMethod: "GET",
|
|
15
|
+
path,
|
|
16
|
+
abortSignal: options?.abortSignal,
|
|
17
|
+
});
|
|
14
18
|
},
|
|
15
19
|
};
|
|
16
20
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":";;AAUA,sCA2BC;AA3BD,SAAgB,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"]}
|
|
@@ -1819,52 +1819,64 @@ exports.TrackedResource = {
|
|
|
1819
1819
|
type: {
|
|
1820
1820
|
name: "Composite",
|
|
1821
1821
|
className: "TrackedResource",
|
|
1822
|
-
modelProperties:
|
|
1822
|
+
modelProperties: {
|
|
1823
|
+
...exports.Resource.type.modelProperties,
|
|
1824
|
+
tags: {
|
|
1823
1825
|
serializedName: "tags",
|
|
1824
1826
|
type: {
|
|
1825
1827
|
name: "Dictionary",
|
|
1826
1828
|
value: { type: { name: "String" } },
|
|
1827
1829
|
},
|
|
1828
|
-
},
|
|
1830
|
+
},
|
|
1831
|
+
location: {
|
|
1829
1832
|
serializedName: "location",
|
|
1830
1833
|
required: true,
|
|
1831
1834
|
type: {
|
|
1832
1835
|
name: "String",
|
|
1833
1836
|
},
|
|
1834
|
-
}
|
|
1837
|
+
},
|
|
1838
|
+
},
|
|
1835
1839
|
},
|
|
1836
1840
|
};
|
|
1837
1841
|
exports.ProxyResource = {
|
|
1838
1842
|
type: {
|
|
1839
1843
|
name: "Composite",
|
|
1840
1844
|
className: "ProxyResource",
|
|
1841
|
-
modelProperties:
|
|
1845
|
+
modelProperties: {
|
|
1846
|
+
...exports.Resource.type.modelProperties,
|
|
1847
|
+
},
|
|
1842
1848
|
},
|
|
1843
1849
|
};
|
|
1844
1850
|
exports.InformaticaOrganizationResource = {
|
|
1845
1851
|
type: {
|
|
1846
1852
|
name: "Composite",
|
|
1847
1853
|
className: "InformaticaOrganizationResource",
|
|
1848
|
-
modelProperties:
|
|
1854
|
+
modelProperties: {
|
|
1855
|
+
...exports.TrackedResource.type.modelProperties,
|
|
1856
|
+
properties: {
|
|
1849
1857
|
serializedName: "properties",
|
|
1850
1858
|
type: {
|
|
1851
1859
|
name: "Composite",
|
|
1852
1860
|
className: "OrganizationProperties",
|
|
1853
1861
|
},
|
|
1854
|
-
}
|
|
1862
|
+
},
|
|
1863
|
+
},
|
|
1855
1864
|
},
|
|
1856
1865
|
};
|
|
1857
1866
|
exports.InformaticaServerlessRuntimeResource = {
|
|
1858
1867
|
type: {
|
|
1859
1868
|
name: "Composite",
|
|
1860
1869
|
className: "InformaticaServerlessRuntimeResource",
|
|
1861
|
-
modelProperties:
|
|
1870
|
+
modelProperties: {
|
|
1871
|
+
...exports.ProxyResource.type.modelProperties,
|
|
1872
|
+
properties: {
|
|
1862
1873
|
serializedName: "properties",
|
|
1863
1874
|
type: {
|
|
1864
1875
|
name: "Composite",
|
|
1865
1876
|
className: "InformaticaServerlessRuntimeProperties",
|
|
1866
1877
|
},
|
|
1867
|
-
}
|
|
1878
|
+
},
|
|
1879
|
+
},
|
|
1868
1880
|
},
|
|
1869
1881
|
};
|
|
1870
1882
|
exports.OrganizationsCreateOrUpdateHeaders = {
|