@azure/arm-datafactory 10.10.2-alpha.20230210.1 → 11.0.0-alpha.20230217.3
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/CHANGELOG.md +38 -7
- package/dist/index.js +837 -355
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/credentialOperationsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialOperationsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsCreateOrUpdateSample.js +46 -0
- package/dist-esm/samples-dev/credentialOperationsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialOperationsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsDeleteSample.js +40 -0
- package/dist-esm/samples-dev/credentialOperationsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialOperationsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsGetSample.js +40 -0
- package/dist-esm/samples-dev/credentialOperationsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsListByFactorySample.d.ts +2 -0
- package/dist-esm/samples-dev/credentialOperationsListByFactorySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/credentialOperationsListByFactorySample.js +53 -0
- package/dist-esm/samples-dev/credentialOperationsListByFactorySample.js.map +1 -0
- package/dist-esm/src/dataFactoryManagementClient.d.ts +2 -1
- package/dist-esm/src/dataFactoryManagementClient.d.ts.map +1 -1
- package/dist-esm/src/dataFactoryManagementClient.js +3 -2
- package/dist-esm/src/dataFactoryManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +170 -33
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +30 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +11 -6
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +239 -86
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +2 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +20 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/credentialOperations.d.ts +63 -0
- package/dist-esm/src/operations/credentialOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/credentialOperations.js +251 -0
- package/dist-esm/src/operations/credentialOperations.js.map +1 -0
- package/dist-esm/src/operations/dataFlowDebugSession.d.ts +3 -3
- package/dist-esm/src/operations/dataFlowDebugSession.d.ts.map +1 -1
- package/dist-esm/src/operations/dataFlowDebugSession.js +18 -10
- package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +1 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +1 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.d.ts +2 -2
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.d.ts.map +1 -1
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.js +10 -6
- package/dist-esm/src/operations/integrationRuntimeObjectMetadata.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.d.ts +3 -3
- package/dist-esm/src/operations/integrationRuntimes.d.ts.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.js +18 -10
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
- package/dist-esm/src/operations/triggers.d.ts +5 -5
- package/dist-esm/src/operations/triggers.d.ts.map +1 -1
- package/dist-esm/src/operations/triggers.js +34 -18
- package/dist-esm/src/operations/triggers.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/credentialOperations.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/credentialOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/credentialOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/credentialOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +1 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/integrationRuntimeObjectMetadata.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/integrationRuntimeObjectMetadata.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/triggers.d.ts +5 -5
- package/dist-esm/src/operationsInterfaces/triggers.d.ts.map +1 -1
- package/dist-esm/test/datafactory_examples.spec.js +31 -0
- package/dist-esm/test/datafactory_examples.spec.js.map +1 -1
- package/package.json +4 -4
- package/review/arm-datafactory.api.md +129 -15
- package/src/dataFactoryManagementClient.ts +5 -1
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +196 -39
- package/src/models/mappers.ts +262 -95
- package/src/models/parameters.ts +24 -0
- package/src/operations/credentialOperations.ts +341 -0
- package/src/operations/dataFlowDebugSession.ts +32 -22
- package/src/operations/index.ts +1 -0
- package/src/operations/integrationRuntimeObjectMetadata.ts +19 -12
- package/src/operations/integrationRuntimes.ts +28 -21
- package/src/operations/triggers.ts +50 -40
- package/src/operationsInterfaces/credentialOperations.ts +75 -0
- package/src/operationsInterfaces/dataFlowDebugSession.ts +5 -5
- package/src/operationsInterfaces/index.ts +1 -0
- package/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts +3 -3
- package/src/operationsInterfaces/integrationRuntimes.ts +4 -4
- package/src/operationsInterfaces/triggers.ts +7 -7
- package/types/arm-datafactory.d.ts +210 -16
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialOperationsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { DataFactoryManagementClient } from "@azure/arm-datafactory";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Creates or updates a credential.
|
|
17
|
+
*
|
|
18
|
+
* @summary Creates or updates a credential.
|
|
19
|
+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json
|
|
20
|
+
*/
|
|
21
|
+
function credentialsCreate() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"12345678-1234-1234-1234-12345678abc";
|
|
25
|
+
const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup";
|
|
26
|
+
const factoryName = "exampleFactoryName";
|
|
27
|
+
const credentialName = "exampleCredential";
|
|
28
|
+
const credentials = {
|
|
29
|
+
properties: {
|
|
30
|
+
type: "ManagedIdentity",
|
|
31
|
+
resourceId: "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami"
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
const credential = new DefaultAzureCredential();
|
|
35
|
+
const client = new DataFactoryManagementClient(credential, subscriptionId);
|
|
36
|
+
const result = yield client.credentialOperations.createOrUpdate(resourceGroupName, factoryName, credentialName, credentials);
|
|
37
|
+
console.log(result);
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
function main() {
|
|
41
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
credentialsCreate();
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
main().catch(console.error);
|
|
46
|
+
//# sourceMappingURL=credentialOperationsCreateOrUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/credentialOperationsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,2BAA2B,EAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,qCAAqC,CAAC;QACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,sBAAsB,CAAC;QACtE,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,WAAW,GAAsC;YACrD,UAAU,EAAE;gBACV,IAAI,EAAE,iBAAiB;gBACvB,UAAU,EACR,+JAA+J;aAClK;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,cAAc,CAC7D,iBAAiB,EACjB,WAAW,EACX,cAAc,EACd,WAAW,CACZ,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialOperationsDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { DataFactoryManagementClient } from "@azure/arm-datafactory";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Deletes a credential.
|
|
17
|
+
*
|
|
18
|
+
* @summary Deletes a credential.
|
|
19
|
+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json
|
|
20
|
+
*/
|
|
21
|
+
function credentialsDelete() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"12345678-1234-1234-1234-12345678abc";
|
|
25
|
+
const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup";
|
|
26
|
+
const factoryName = "exampleFactoryName";
|
|
27
|
+
const credentialName = "exampleCredential";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new DataFactoryManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.credentialOperations.delete(resourceGroupName, factoryName, credentialName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
credentialsDelete();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=credentialOperationsDeleteSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/credentialOperationsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,iBAAiB;;QAC9B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,qCAAqC,CAAC;QACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,sBAAsB,CAAC;QACtE,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,MAAM,CACrD,iBAAiB,EACjB,WAAW,EACX,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,iBAAiB,EAAE,CAAC;IACtB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialOperationsGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { DataFactoryManagementClient } from "@azure/arm-datafactory";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Gets a credential.
|
|
17
|
+
*
|
|
18
|
+
* @summary Gets a credential.
|
|
19
|
+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json
|
|
20
|
+
*/
|
|
21
|
+
function credentialsGet() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"12345678-1234-1234-1234-12345678abc";
|
|
25
|
+
const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup";
|
|
26
|
+
const factoryName = "exampleFactoryName";
|
|
27
|
+
const credentialName = "exampleCredential";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new DataFactoryManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.credentialOperations.get(resourceGroupName, factoryName, credentialName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
credentialsGet();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=credentialOperationsGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsGetSample.js","sourceRoot":"","sources":["../../samples-dev/credentialOperationsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,qCAAqC,CAAC;QACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,sBAAsB,CAAC;QACtE,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,oBAAoB,CAAC,GAAG,CAClD,iBAAiB,EACjB,WAAW,EACX,cAAc,CACf,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsListByFactorySample.d.ts","sourceRoot":"","sources":["../../samples-dev/credentialOperationsListByFactorySample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { DataFactoryManagementClient } from "@azure/arm-datafactory";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List credentials.
|
|
17
|
+
*
|
|
18
|
+
* @summary List credentials.
|
|
19
|
+
* x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json
|
|
20
|
+
*/
|
|
21
|
+
function credentialsListByFactory() {
|
|
22
|
+
var e_1, _a;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const subscriptionId = process.env["DATAFACTORY_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"12345678-1234-1234-1234-12345678abc";
|
|
26
|
+
const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup";
|
|
27
|
+
const factoryName = "exampleFactoryName";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new DataFactoryManagementClient(credential, subscriptionId);
|
|
30
|
+
const resArray = new Array();
|
|
31
|
+
try {
|
|
32
|
+
for (var _b = __asyncValues(client.credentialOperations.listByFactory(resourceGroupName, factoryName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
33
|
+
let item = _c.value;
|
|
34
|
+
resArray.push(item);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
38
|
+
finally {
|
|
39
|
+
try {
|
|
40
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
41
|
+
}
|
|
42
|
+
finally { if (e_1) throw e_1.error; }
|
|
43
|
+
}
|
|
44
|
+
console.log(resArray);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function main() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
credentialsListByFactory();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
main().catch(console.error);
|
|
53
|
+
//# sourceMappingURL=credentialOperationsListByFactorySample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"credentialOperationsListByFactorySample.js","sourceRoot":"","sources":["../../samples-dev/credentialOperationsListByFactorySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wBAAwB;;;QACrC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,qCAAqC,CAAC;QACxC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,sBAAsB,CAAC;QACtE,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,oBAAoB,CAAC,aAAa,CAC9D,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,wBAAwB,EAAE,CAAC;IAC7B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, Factories, ExposureControl, IntegrationRuntimes, IntegrationRuntimeObjectMetadata, IntegrationRuntimeNodes, LinkedServices, Datasets, Pipelines, PipelineRuns, ActivityRuns, Triggers, TriggerRuns, DataFlows, DataFlowDebugSession, ManagedVirtualNetworks, ManagedPrivateEndpoints, PrivateEndPointConnections, PrivateEndpointConnection, PrivateLinkResources, GlobalParameters } from "./operationsInterfaces";
|
|
3
|
+
import { Operations, Factories, ExposureControl, IntegrationRuntimes, IntegrationRuntimeObjectMetadata, IntegrationRuntimeNodes, LinkedServices, Datasets, Pipelines, PipelineRuns, ActivityRuns, Triggers, TriggerRuns, DataFlows, DataFlowDebugSession, ManagedVirtualNetworks, ManagedPrivateEndpoints, CredentialOperations, PrivateEndPointConnections, PrivateEndpointConnection, PrivateLinkResources, GlobalParameters } from "./operationsInterfaces";
|
|
4
4
|
import { DataFactoryManagementClientOptionalParams } from "./models";
|
|
5
5
|
export declare class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
@@ -32,6 +32,7 @@ export declare class DataFactoryManagementClient extends coreClient.ServiceClien
|
|
|
32
32
|
dataFlowDebugSession: DataFlowDebugSession;
|
|
33
33
|
managedVirtualNetworks: ManagedVirtualNetworks;
|
|
34
34
|
managedPrivateEndpoints: ManagedPrivateEndpoints;
|
|
35
|
+
credentialOperations: CredentialOperations;
|
|
35
36
|
privateEndPointConnections: PrivateEndPointConnections;
|
|
36
37
|
privateEndpointConnection: PrivateEndpointConnection;
|
|
37
38
|
privateLinkResources: PrivateLinkResources;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataFactoryManagementClient.d.ts","sourceRoot":"","sources":["../../src/dataFactoryManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"dataFactoryManagementClient.d.ts","sourceRoot":"","sources":["../../src/dataFactoryManagementClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAyB7C,OAAO,EACL,UAAU,EACV,SAAS,EACT,eAAe,EACf,mBAAmB,EACnB,gCAAgC,EAChC,uBAAuB,EACvB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,WAAW,EACX,SAAS,EACT,oBAAoB,EACpB,sBAAsB,EACtB,uBAAuB,EACvB,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,oBAAoB,EACpB,gBAAgB,EACjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,yCAAyC,EAAE,MAAM,UAAU,CAAC;AAErE,qBAAa,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IACvE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,yCAAyC;IAmGrD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,SAAS,EAAE,SAAS,CAAC;IACrB,eAAe,EAAE,eAAe,CAAC;IACjC,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,gCAAgC,EAAE,gCAAgC,CAAC;IACnE,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,cAAc,EAAE,cAAc,CAAC;IAC/B,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,SAAS,CAAC;IACrB,YAAY,EAAE,YAAY,CAAC;IAC3B,YAAY,EAAE,YAAY,CAAC;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,WAAW,EAAE,WAAW,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,uBAAuB,EAAE,uBAAuB,CAAC;IACjD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,0BAA0B,EAAE,0BAA0B,CAAC;IACvD,yBAAyB,EAAE,yBAAyB,CAAC;IACrD,oBAAoB,EAAE,oBAAoB,CAAC;IAC3C,gBAAgB,EAAE,gBAAgB,CAAC;CACpC"}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { __awaiter } from "tslib";
|
|
9
9
|
import * as coreClient from "@azure/core-client";
|
|
10
10
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { OperationsImpl, FactoriesImpl, ExposureControlImpl, IntegrationRuntimesImpl, IntegrationRuntimeObjectMetadataImpl, IntegrationRuntimeNodesImpl, LinkedServicesImpl, DatasetsImpl, PipelinesImpl, PipelineRunsImpl, ActivityRunsImpl, TriggersImpl, TriggerRunsImpl, DataFlowsImpl, DataFlowDebugSessionImpl, ManagedVirtualNetworksImpl, ManagedPrivateEndpointsImpl, PrivateEndPointConnectionsImpl, PrivateEndpointConnectionImpl, PrivateLinkResourcesImpl, GlobalParametersImpl } from "./operations";
|
|
11
|
+
import { OperationsImpl, FactoriesImpl, ExposureControlImpl, IntegrationRuntimesImpl, IntegrationRuntimeObjectMetadataImpl, IntegrationRuntimeNodesImpl, LinkedServicesImpl, DatasetsImpl, PipelinesImpl, PipelineRunsImpl, ActivityRunsImpl, TriggersImpl, TriggerRunsImpl, DataFlowsImpl, DataFlowDebugSessionImpl, ManagedVirtualNetworksImpl, ManagedPrivateEndpointsImpl, CredentialOperationsImpl, PrivateEndPointConnectionsImpl, PrivateEndpointConnectionImpl, PrivateLinkResourcesImpl, GlobalParametersImpl } from "./operations";
|
|
12
12
|
export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
13
13
|
/**
|
|
14
14
|
* Initializes a new instance of the DataFactoryManagementClient class.
|
|
@@ -32,7 +32,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
|
32
32
|
requestContentType: "application/json; charset=utf-8",
|
|
33
33
|
credential: credentials
|
|
34
34
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-datafactory/
|
|
35
|
+
const packageDetails = `azsdk-js-arm-datafactory/11.0.0`;
|
|
36
36
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
37
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
38
|
: `${packageDetails}`;
|
|
@@ -83,6 +83,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
|
83
83
|
this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);
|
|
84
84
|
this.managedVirtualNetworks = new ManagedVirtualNetworksImpl(this);
|
|
85
85
|
this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);
|
|
86
|
+
this.credentialOperations = new CredentialOperationsImpl(this);
|
|
86
87
|
this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this);
|
|
87
88
|
this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this);
|
|
88
89
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataFactoryManagementClient.js","sourceRoot":"","sources":["../../src/dataFactoryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,oCAAoC,EACpC,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,8BAA8B,EAC9B,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"dataFactoryManagementClient.js","sourceRoot":"","sources":["../../src/dataFactoryManagementClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,aAAa,EACb,mBAAmB,EACnB,uBAAuB,EACvB,oCAAoC,EACpC,2BAA2B,EAC3B,kBAAkB,EAClB,YAAY,EACZ,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,aAAa,EACb,wBAAwB,EACxB,0BAA0B,EAC1B,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,6BAA6B,EAC7B,wBAAwB,EACxB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AA2BtB,MAAM,OAAO,2BAA4B,SAAQ,UAAU,CAAC,aAAa;IAKvE;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAmD;;QAEnD,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,cAAc,KAAK,SAAS,EAAE;YAChC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;SACpD;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAA8C;YAC1D,kBAAkB,EAAE,iCAAiC;YACrD,UA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AAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE;gCACpC,OAAO,cAAc,GAAG,UAAU,CAAC;6BACpC;iCAAM;gCACL,OAAO,IAAI,CAAC;6BACb;wBACH,CAAC,CAAC,CAAC;wBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;qBACpD;oBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;gBACvB,CAAC;aAAA;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAwBF"}
|
|
@@ -1,16 +1,11 @@
|
|
|
1
1
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
requestPath: string;
|
|
7
|
-
requestMethod: string;
|
|
8
|
-
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
9
6
|
readonly requestBody?: unknown;
|
|
10
7
|
readonly path?: string;
|
|
11
8
|
readonly httpMethod: string;
|
|
12
|
-
} & Record<string, any
|
|
13
|
-
|
|
14
|
-
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
-
}
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
16
11
|
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
package/dist-esm/src/lroImpl.js
CHANGED
|
@@ -5,25 +5,17 @@
|
|
|
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 {
|
|
9
|
-
export
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
sendPollRequest(path) {
|
|
23
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
-
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
-
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
-
});
|
|
27
|
-
}
|
|
8
|
+
import { __rest } from "tslib";
|
|
9
|
+
export function createLroSpec(inputs) {
|
|
10
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
11
|
+
return {
|
|
12
|
+
requestMethod: spec.httpMethod,
|
|
13
|
+
requestPath: spec.path,
|
|
14
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
|
+
sendPollRequest: (path, options) => {
|
|
16
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
17
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
18
|
+
}
|
|
19
|
+
};
|
|
28
20
|
}
|
|
29
21
|
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,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,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|