@azure/arm-datafactory 18.0.0-alpha.20250422.1 → 19.0.0-alpha.20250423.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/CHANGELOG.md +80 -0
- package/LICENSE +1 -1
- package/README.md +2 -4
- package/dist/browser/dataFactoryManagementClient.js +1 -1
- package/dist/browser/dataFactoryManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +7 -0
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +258 -70
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +30 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +13 -8
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +395 -69
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/commonjs/dataFactoryManagementClient.js +1 -1
- package/dist/commonjs/dataFactoryManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -0
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +258 -70
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +33 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +13 -8
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +408 -82
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/esm/dataFactoryManagementClient.js +1 -1
- package/dist/esm/dataFactoryManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +7 -0
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +258 -70
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +30 -0
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +13 -8
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +395 -69
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/react-native/dataFactoryManagementClient.js +1 -1
- package/dist/react-native/dataFactoryManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +7 -0
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +258 -70
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +30 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +13 -8
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +395 -69
- package/dist/react-native/models/mappers.js.map +1 -1
- package/package.json +10 -8
- package/review/arm-datafactory.api.md +116 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,85 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 19.0.0 (2025-04-11)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
- Added Interface AzurePostgreSqlSinkUpsertSettings
|
|
8
|
+
- Added Interface TeradataImportCommand
|
|
9
|
+
- Added Interface TeradataSink
|
|
10
|
+
- Added Type Alias AzurePostgreSqlWriteMethodEnum
|
|
11
|
+
- Added Type Alias GreenplumAuthenticationType
|
|
12
|
+
- Added Type Alias OracleAuthenticationType
|
|
13
|
+
- Added Type Alias ValueType
|
|
14
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter azureCloudType
|
|
15
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter credential
|
|
16
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter servicePrincipalCredentialType
|
|
17
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter servicePrincipalEmbeddedCert
|
|
18
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter servicePrincipalEmbeddedCertPassword
|
|
19
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter servicePrincipalId
|
|
20
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter servicePrincipalKey
|
|
21
|
+
- Interface AzurePostgreSqlLinkedService has a new optional parameter tenant
|
|
22
|
+
- Interface AzurePostgreSqlSink has a new optional parameter upsertSettings
|
|
23
|
+
- Interface AzurePostgreSqlSink has a new optional parameter writeMethod
|
|
24
|
+
- Interface CommonDataServiceForAppsSink has a new optional parameter bypassBusinessLogicExecution
|
|
25
|
+
- Interface CommonDataServiceForAppsSink has a new optional parameter bypassPowerAutomateFlows
|
|
26
|
+
- Interface DynamicsCrmSink has a new optional parameter bypassBusinessLogicExecution
|
|
27
|
+
- Interface DynamicsCrmSink has a new optional parameter bypassPowerAutomateFlows
|
|
28
|
+
- Interface DynamicsSink has a new optional parameter bypassBusinessLogicExecution
|
|
29
|
+
- Interface DynamicsSink has a new optional parameter bypassPowerAutomateFlows
|
|
30
|
+
- Interface GreenplumLinkedService has a new optional parameter authenticationType
|
|
31
|
+
- Interface GreenplumLinkedService has a new optional parameter commandTimeout
|
|
32
|
+
- Interface GreenplumLinkedService has a new optional parameter connectionTimeout
|
|
33
|
+
- Interface GreenplumLinkedService has a new optional parameter database
|
|
34
|
+
- Interface GreenplumLinkedService has a new optional parameter host
|
|
35
|
+
- Interface GreenplumLinkedService has a new optional parameter port
|
|
36
|
+
- Interface GreenplumLinkedService has a new optional parameter sslMode
|
|
37
|
+
- Interface GreenplumLinkedService has a new optional parameter username
|
|
38
|
+
- Interface Office365LinkedService has a new optional parameter servicePrincipalCredentialType
|
|
39
|
+
- Interface Office365LinkedService has a new optional parameter servicePrincipalEmbeddedCert
|
|
40
|
+
- Interface Office365LinkedService has a new optional parameter servicePrincipalEmbeddedCertPassword
|
|
41
|
+
- Interface OracleLinkedService has a new optional parameter authenticationType
|
|
42
|
+
- Interface OracleLinkedService has a new optional parameter cryptoChecksumClient
|
|
43
|
+
- Interface OracleLinkedService has a new optional parameter cryptoChecksumTypesClient
|
|
44
|
+
- Interface OracleLinkedService has a new optional parameter enableBulkLoad
|
|
45
|
+
- Interface OracleLinkedService has a new optional parameter encryptionClient
|
|
46
|
+
- Interface OracleLinkedService has a new optional parameter encryptionTypesClient
|
|
47
|
+
- Interface OracleLinkedService has a new optional parameter fetchSize
|
|
48
|
+
- Interface OracleLinkedService has a new optional parameter fetchTswtzAsTimestamp
|
|
49
|
+
- Interface OracleLinkedService has a new optional parameter initializationString
|
|
50
|
+
- Interface OracleLinkedService has a new optional parameter initialLobFetchSize
|
|
51
|
+
- Interface OracleLinkedService has a new optional parameter server
|
|
52
|
+
- Interface OracleLinkedService has a new optional parameter statementCacheSize
|
|
53
|
+
- Interface OracleLinkedService has a new optional parameter supportV1DataTypes
|
|
54
|
+
- Interface OracleLinkedService has a new optional parameter username
|
|
55
|
+
- Interface PrestoLinkedService has a new optional parameter enableServerCertificateValidation
|
|
56
|
+
- Interface ScriptActivity has a new optional parameter returnMultistatementResult
|
|
57
|
+
- Interface ServiceNowV2ObjectDataset has a new optional parameter valueType
|
|
58
|
+
- Interface SnowflakeV2LinkedService has a new optional parameter role
|
|
59
|
+
- Interface SnowflakeV2LinkedService has a new optional parameter schema
|
|
60
|
+
- Interface TeradataLinkedService has a new optional parameter characterSet
|
|
61
|
+
- Interface TeradataLinkedService has a new optional parameter httpsPortNumber
|
|
62
|
+
- Interface TeradataLinkedService has a new optional parameter maxRespSize
|
|
63
|
+
- Interface TeradataLinkedService has a new optional parameter portNumber
|
|
64
|
+
- Interface TeradataLinkedService has a new optional parameter sslMode
|
|
65
|
+
- Interface TeradataLinkedService has a new optional parameter useDataEncryption
|
|
66
|
+
- Interface TypeConversionSettings has a new optional parameter dateFormat
|
|
67
|
+
- Interface TypeConversionSettings has a new optional parameter timeFormat
|
|
68
|
+
- Type of parameter type of interface CopySink is changed from "DelimitedTextSink" | "JsonSink" | "OrcSink" | "RestSink" | "AzurePostgreSqlSink" | "AzureMySqlSink" | "AzureDatabricksDeltaLakeSink" | "WarehouseSink" | "SapCloudForCustomerSink" | "AzureQueueSink" | "AzureTableSink" | "AvroSink" | "ParquetSink" | "BinarySink" | "IcebergSink" | "BlobSink" | "FileSystemSink" | "DocumentDbCollectionSink" | "CosmosDbSqlApiSink" | "SqlSink" | "SqlServerSink" | "AzureSqlSink" | "SqlMISink" | "SqlDWSink" | "SnowflakeSink" | "SnowflakeV2Sink" | "OracleSink" | "AzureDataLakeStoreSink" | "AzureBlobFSSink" | "AzureSearchIndexSink" | "OdbcSink" | "InformixSink" | "MicrosoftAccessSink" | "DynamicsSink" | "DynamicsCrmSink" | "CommonDataServiceForAppsSink" | "AzureDataExplorerSink" | "SalesforceSink" | "SalesforceServiceCloudSink" | "MongoDbAtlasSink" | "MongoDbV2Sink" | "CosmosDbMongoDbApiSink" | "LakeHouseTableSink" | "SalesforceV2Sink" | "SalesforceServiceCloudV2Sink" to "DelimitedTextSink" | "JsonSink" | "OrcSink" | "RestSink" | "TeradataSink" | "AzurePostgreSqlSink" | "AzureMySqlSink" | "AzureDatabricksDeltaLakeSink" | "WarehouseSink" | "SapCloudForCustomerSink" | "AzureQueueSink" | "AzureTableSink" | "AvroSink" | "ParquetSink" | "BinarySink" | "IcebergSink" | "BlobSink" | "FileSystemSink" | "DocumentDbCollectionSink" | "CosmosDbSqlApiSink" | "SqlSink" | "SqlServerSink" | "AzureSqlSink" | "SqlMISink" | "SqlDWSink" | "SnowflakeSink" | "SnowflakeV2Sink" | "OracleSink" | "AzureDataLakeStoreSink" | "AzureBlobFSSink" | "AzureSearchIndexSink" | "OdbcSink" | "InformixSink" | "MicrosoftAccessSink" | "DynamicsSink" | "DynamicsCrmSink" | "CommonDataServiceForAppsSink" | "AzureDataExplorerSink" | "SalesforceSink" | "SalesforceServiceCloudSink" | "MongoDbAtlasSink" | "MongoDbV2Sink" | "CosmosDbMongoDbApiSink" | "LakeHouseTableSink" | "SalesforceV2Sink" | "SalesforceServiceCloudV2Sink"
|
|
69
|
+
- Type of parameter type of interface ImportSettings is changed from "AzureDatabricksDeltaLakeImportCommand" | "SnowflakeImportCopyCommand" to "TeradataImportCommand" | "AzureDatabricksDeltaLakeImportCommand" | "SnowflakeImportCopyCommand"
|
|
70
|
+
- Added Enum KnownAzurePostgreSqlWriteMethodEnum
|
|
71
|
+
- Added Enum KnownGreenplumAuthenticationType
|
|
72
|
+
- Added Enum KnownOracleAuthenticationType
|
|
73
|
+
- Added Enum KnownValueType
|
|
74
|
+
|
|
75
|
+
### Breaking Changes
|
|
76
|
+
|
|
77
|
+
- Type of parameter type of interface Dataset is changed one of the values from "LakeHouseTable" to "LakehouseTable"
|
|
78
|
+
- Type of parameter type of interface LakeHouseLinkedService is changed from "LakeHouse" to "Lakehouse"
|
|
79
|
+
- Type of parameter type of interface LakeHouseTableDataset is changed from "LakeHouseTable" to "LakehouseTable"
|
|
80
|
+
- Type of parameter type of interface LinkedService is changed one of the values from "LakeHouse" to "Lakehouse"
|
|
81
|
+
|
|
82
|
+
|
|
3
83
|
## 18.0.0 (2024-12-10)
|
|
4
84
|
|
|
5
85
|
### Features Added
|
package/LICENSE
CHANGED
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -66,13 +66,12 @@ import { DataFactoryManagementClient } from "@azure/arm-datafactory";
|
|
|
66
66
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
67
67
|
const credential = new InteractiveBrowserCredential({
|
|
68
68
|
tenantId: "<YOUR_TENANT_ID>",
|
|
69
|
-
clientId: "<YOUR_CLIENT_ID>"
|
|
70
|
-
});
|
|
69
|
+
clientId: "<YOUR_CLIENT_ID>"
|
|
70
|
+
});
|
|
71
71
|
const client = new DataFactoryManagementClient(credential, subscriptionId);
|
|
72
72
|
```
|
|
73
73
|
|
|
74
74
|
### JavaScript Bundle
|
|
75
|
-
|
|
76
75
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
77
76
|
|
|
78
77
|
## Key concepts
|
|
@@ -108,7 +107,6 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
108
107
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
109
108
|
|
|
110
109
|
|
|
111
|
-
|
|
112
110
|
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
113
111
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
114
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
@@ -31,7 +31,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
|
31
31
|
requestContentType: "application/json; charset=utf-8",
|
|
32
32
|
credential: credentials,
|
|
33
33
|
};
|
|
34
|
-
const packageDetails = `azsdk-js-arm-datafactory/
|
|
34
|
+
const packageDetails = `azsdk-js-arm-datafactory/19.0.0`;
|
|
35
35
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
36
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
37
|
: `${packageDetails}`;
|
|
@@ -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,M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,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;CAyBF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n FactoriesImpl,\n ExposureControlImpl,\n IntegrationRuntimesImpl,\n IntegrationRuntimeObjectMetadataImpl,\n IntegrationRuntimeNodesImpl,\n LinkedServicesImpl,\n DatasetsImpl,\n PipelinesImpl,\n PipelineRunsImpl,\n ActivityRunsImpl,\n TriggersImpl,\n TriggerRunsImpl,\n DataFlowsImpl,\n DataFlowDebugSessionImpl,\n ManagedVirtualNetworksImpl,\n ManagedPrivateEndpointsImpl,\n CredentialOperationsImpl,\n PrivateEndPointConnectionsImpl,\n PrivateEndpointConnectionImpl,\n PrivateLinkResourcesImpl,\n GlobalParametersImpl,\n ChangeDataCaptureImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Factories,\n ExposureControl,\n IntegrationRuntimes,\n IntegrationRuntimeObjectMetadata,\n IntegrationRuntimeNodes,\n LinkedServices,\n Datasets,\n Pipelines,\n PipelineRuns,\n ActivityRuns,\n Triggers,\n TriggerRuns,\n DataFlows,\n DataFlowDebugSession,\n ManagedVirtualNetworks,\n ManagedPrivateEndpoints,\n CredentialOperations,\n PrivateEndPointConnections,\n PrivateEndpointConnection,\n PrivateLinkResources,\n GlobalParameters,\n ChangeDataCapture,\n} from \"./operationsInterfaces/index.js\";\nimport { DataFactoryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DataFactoryManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataFactoryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataFactoryManagementClientOptionalParams,\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: DataFactoryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-datafactory/18.0.0`;\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 || \"2018-06-01\";\n this.operations = new OperationsImpl(this);\n this.factories = new FactoriesImpl(this);\n this.exposureControl = new ExposureControlImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.integrationRuntimeObjectMetadata =\n new IntegrationRuntimeObjectMetadataImpl(this);\n this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this);\n this.linkedServices = new LinkedServicesImpl(this);\n this.datasets = new DatasetsImpl(this);\n this.pipelines = new PipelinesImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.activityRuns = new ActivityRunsImpl(this);\n this.triggers = new TriggersImpl(this);\n this.triggerRuns = new TriggerRunsImpl(this);\n this.dataFlows = new DataFlowsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.managedVirtualNetworks = new ManagedVirtualNetworksImpl(this);\n this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this);\n this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.globalParameters = new GlobalParametersImpl(this);\n this.changeDataCapture = new ChangeDataCaptureImpl(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 factories: Factories;\n exposureControl: ExposureControl;\n integrationRuntimes: IntegrationRuntimes;\n integrationRuntimeObjectMetadata: IntegrationRuntimeObjectMetadata;\n integrationRuntimeNodes: IntegrationRuntimeNodes;\n linkedServices: LinkedServices;\n datasets: Datasets;\n pipelines: Pipelines;\n pipelineRuns: PipelineRuns;\n activityRuns: ActivityRuns;\n triggers: Triggers;\n triggerRuns: TriggerRuns;\n dataFlows: DataFlows;\n dataFlowDebugSession: DataFlowDebugSession;\n managedVirtualNetworks: ManagedVirtualNetworks;\n managedPrivateEndpoints: ManagedPrivateEndpoints;\n credentialOperations: CredentialOperations;\n privateEndPointConnections: PrivateEndPointConnections;\n privateEndpointConnection: PrivateEndpointConnection;\n privateLinkResources: PrivateLinkResources;\n globalParameters: GlobalParameters;\n changeDataCapture: ChangeDataCapture;\n}\n"]}
|
|
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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poration.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n FactoriesImpl,\n ExposureControlImpl,\n IntegrationRuntimesImpl,\n IntegrationRuntimeObjectMetadataImpl,\n IntegrationRuntimeNodesImpl,\n LinkedServicesImpl,\n DatasetsImpl,\n PipelinesImpl,\n PipelineRunsImpl,\n ActivityRunsImpl,\n TriggersImpl,\n TriggerRunsImpl,\n DataFlowsImpl,\n DataFlowDebugSessionImpl,\n ManagedVirtualNetworksImpl,\n ManagedPrivateEndpointsImpl,\n CredentialOperationsImpl,\n PrivateEndPointConnectionsImpl,\n PrivateEndpointConnectionImpl,\n PrivateLinkResourcesImpl,\n GlobalParametersImpl,\n ChangeDataCaptureImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Factories,\n ExposureControl,\n IntegrationRuntimes,\n IntegrationRuntimeObjectMetadata,\n IntegrationRuntimeNodes,\n LinkedServices,\n Datasets,\n Pipelines,\n PipelineRuns,\n ActivityRuns,\n Triggers,\n TriggerRuns,\n DataFlows,\n DataFlowDebugSession,\n ManagedVirtualNetworks,\n ManagedPrivateEndpoints,\n CredentialOperations,\n PrivateEndPointConnections,\n PrivateEndpointConnection,\n PrivateLinkResources,\n GlobalParameters,\n ChangeDataCapture,\n} from \"./operationsInterfaces/index.js\";\nimport { DataFactoryManagementClientOptionalParams } from \"./models/index.js\";\n\nexport class DataFactoryManagementClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the DataFactoryManagementClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: DataFactoryManagementClientOptionalParams,\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: DataFactoryManagementClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-datafactory/19.0.0`;\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 || \"2018-06-01\";\n this.operations = new OperationsImpl(this);\n this.factories = new FactoriesImpl(this);\n this.exposureControl = new ExposureControlImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.integrationRuntimeObjectMetadata =\n new IntegrationRuntimeObjectMetadataImpl(this);\n this.integrationRuntimeNodes = new IntegrationRuntimeNodesImpl(this);\n this.linkedServices = new LinkedServicesImpl(this);\n this.datasets = new DatasetsImpl(this);\n this.pipelines = new PipelinesImpl(this);\n this.pipelineRuns = new PipelineRunsImpl(this);\n this.activityRuns = new ActivityRunsImpl(this);\n this.triggers = new TriggersImpl(this);\n this.triggerRuns = new TriggerRunsImpl(this);\n this.dataFlows = new DataFlowsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.managedVirtualNetworks = new ManagedVirtualNetworksImpl(this);\n this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this);\n this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.globalParameters = new GlobalParametersImpl(this);\n this.changeDataCapture = new ChangeDataCaptureImpl(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 factories: Factories;\n exposureControl: ExposureControl;\n integrationRuntimes: IntegrationRuntimes;\n integrationRuntimeObjectMetadata: IntegrationRuntimeObjectMetadata;\n integrationRuntimeNodes: IntegrationRuntimeNodes;\n linkedServices: LinkedServices;\n datasets: Datasets;\n pipelines: Pipelines;\n pipelineRuns: PipelineRuns;\n activityRuns: ActivityRuns;\n triggers: Triggers;\n triggerRuns: TriggerRuns;\n dataFlows: DataFlows;\n dataFlowDebugSession: DataFlowDebugSession;\n managedVirtualNetworks: ManagedVirtualNetworks;\n managedPrivateEndpoints: ManagedPrivateEndpoints;\n credentialOperations: CredentialOperations;\n privateEndPointConnections: PrivateEndPointConnections;\n privateEndpointConnection: PrivateEndpointConnection;\n privateLinkResources: PrivateLinkResources;\n globalParameters: GlobalParameters;\n changeDataCapture: ChangeDataCapture;\n}\n"]}
|
|
@@ -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/browser/lroImpl.js
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
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
|
+
*/
|
|
1
8
|
import { __rest } from "tslib";
|
|
2
9
|
export function createLroSpec(inputs) {
|
|
3
10
|
const { args, spec, sendOperationFn } = inputs;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"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","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\n// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\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"]}
|