diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 35def1174b32..ef9cbdcd2bca 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -11393,7 +11393,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-3YM3RvRQ7VYAwMImQIn7l+Xcd1WTfMALuf5B4qRAHIfVgwOKOcrSF2mLc7M7hEHw1ylnMGxTK1EQDvoZ1nNjUQ==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-yh95KK9dLSmbPYdTh/NaAYmcU3p9CHV4medpTeKVGWRYkc44434cWWr6Uk9RSO1adM+Rs5ru6nFFo1kQSmPOQA==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -11408,7 +11408,7 @@ packages: chai: 4.3.7 cross-env: 7.0.3 dotenv: 16.0.3 - mkdirp: 1.0.4 + mkdirp: 2.1.3 mocha: 7.2.0 rimraf: 3.0.2 rollup: 2.79.1 diff --git a/sdk/datafactory/arm-datafactory/CHANGELOG.md b/sdk/datafactory/arm-datafactory/CHANGELOG.md index bed6bcbbc779..2ceffe693827 100644 --- a/sdk/datafactory/arm-datafactory/CHANGELOG.md +++ b/sdk/datafactory/arm-datafactory/CHANGELOG.md @@ -1,15 +1,46 @@ # Release History + +## 11.0.0 (2023-02-10) + +**Features** -## 10.10.2 (Unreleased) - -### Features Added - -### Breaking Changes + - Added operation group CredentialOperations + - Added Interface CopyComputeScaleProperties + - Added Interface CredentialListResponse + - Added Interface CredentialOperationsCreateOrUpdateOptionalParams + - Added Interface CredentialOperationsDeleteOptionalParams + - Added Interface CredentialOperationsGetOptionalParams + - Added Interface CredentialOperationsListByFactoryNextOptionalParams + - Added Interface CredentialOperationsListByFactoryOptionalParams + - Added Interface ManagedIdentityCredentialResource + - Added Interface PipelineExternalComputeScaleProperties + - Added Interface SparkConfigurationParametrizationReference + - Added Type Alias AzureStorageAuthenticationType + - Added Type Alias ConfigurationType + - Added Type Alias CredentialOperationsCreateOrUpdateResponse + - Added Type Alias CredentialOperationsGetResponse + - Added Type Alias CredentialOperationsListByFactoryNextResponse + - Added Type Alias CredentialOperationsListByFactoryResponse + - Added Type Alias SparkConfigurationReferenceType + - Interface AzureBlobStorageLinkedService has a new optional parameter authenticationType + - Interface AzureBlobStorageLinkedService has a new optional parameter containerUri + - Interface IntegrationRuntimeComputeProperties has a new optional parameter copyComputeScaleProperties + - Interface IntegrationRuntimeComputeProperties has a new optional parameter pipelineExternalComputeScaleProperties + - Interface SynapseSparkJobDefinitionActivity has a new optional parameter configurationType + - Interface SynapseSparkJobDefinitionActivity has a new optional parameter scanFolder + - Interface SynapseSparkJobDefinitionActivity has a new optional parameter sparkConfig + - Interface SynapseSparkJobDefinitionActivity has a new optional parameter targetSparkConfiguration + - Type of parameter type of interface Credential_2 is changed from "ServicePrincipal" | "ManagedIdentity" to "ManagedIdentity" | "ServicePrincipal" + - Added Enum KnownAzureStorageAuthenticationType + - Added Enum KnownConfigurationType + - Added Enum KnownSparkConfigurationReferenceType + - Type of parameter numExecutors of interface SynapseSparkJobDefinitionActivity is changed from number to any -### Bugs Fixed +**Breaking Changes** -### Other Changes + - Parameter exportSettings of interface SnowflakeSource is now required + ## 10.10.1 (2023-01-04) **Features** diff --git a/sdk/datafactory/arm-datafactory/_meta.json b/sdk/datafactory/arm-datafactory/_meta.json index a56ec2658de5..e711ed2f2885 100644 --- a/sdk/datafactory/arm-datafactory/_meta.json +++ b/sdk/datafactory/arm-datafactory/_meta.json @@ -1,8 +1,8 @@ { - "commit": "b44fc8d150014654c759c6633cf79f1c8e761c6f", + "commit": "33a7dbc1743fdacb8e2259011a035154a98cad66", "readme": "specification/datafactory/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=F:\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.5.20221215.1 --generate-sample=true", + "autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.8 --generate-sample=true", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.5.4", - "use": "@autorest/typescript@6.0.0-rc.5.20221215.1" + "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", + "use": "@autorest/typescript@6.0.0-rc.8" } \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/package.json b/sdk/datafactory/arm-datafactory/package.json index a0470ba9c3ed..02f8d0270646 100644 --- a/sdk/datafactory/arm-datafactory/package.json +++ b/sdk/datafactory/arm-datafactory/package.json @@ -3,15 +3,15 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataFactoryManagementClient.", - "version": "10.10.2", + "version": "11.0.0", "engines": { "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.2.0", + "@azure/core-lro": "^2.5.0", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", - "@azure/core-client": "^1.6.1", + "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", "@azure/core-rest-pipeline": "^1.8.0", "tslib": "^2.2.0" @@ -33,7 +33,7 @@ "@rollup/plugin-json": "^6.0.0", "@rollup/plugin-multi-entry": "^6.0.0", "@rollup/plugin-node-resolve": "^13.1.3", - "mkdirp": "^1.0.4", + "mkdirp": "^2.1.2", "rollup": "^2.66.1", "rollup-plugin-sourcemaps": "^0.6.3", "typescript": "~4.8.0", @@ -120,4 +120,4 @@ "disableDocsMs": true, "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview" } -} +} \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_create_test.json b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_create_test.json index 649d348d17b8..30530629227d 100644 --- a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_create_test.json +++ b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_create_test.json @@ -10,8 +10,8 @@ "Connection": "keep-alive", "Content-Length": "21", "Content-Type": "application/json", - "User-Agent": "azsdk-js-arm-datafactory/10.10.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "6bf5ddee-483c-4953-a29f-5651707f6146" + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "833c7aeb-e1ef-4102-91da-4a952a202fb7" }, "RequestBody": { "location": "eastus" @@ -21,7 +21,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 04 Jan 2023 02:32:26 GMT", + "Date": "Fri, 17 Feb 2023 08:28:31 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Kestrel", @@ -29,10 +29,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "fc21dea0-a50d-4240-99f8-eaf2a991aba7", + "x-ms-correlation-request-id": "1befa25f-559f-4a31-b558-dec84bd87cad", "x-ms-ratelimit-remaining-subscription-writes": "1199", - "x-ms-request-id": "fc21dea0-a50d-4240-99f8-eaf2a991aba7", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230104T023226Z:fc21dea0-a50d-4240-99f8-eaf2a991aba7" + "x-ms-request-id": "1befa25f-559f-4a31-b558-dec84bd87cad", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082831Z:1befa25f-559f-4a31-b558-dec84bd87cad" }, "ResponseBody": { "name": "examplefactorytest", @@ -40,10 +40,10 @@ "type": "Microsoft.DataFactory/factories", "properties": { "provisioningState": "Succeeded", - "createTime": "2023-01-04T02:32:25.3232965Z", + "createTime": "2023-02-17T08:28:30.099783Z", "version": "2018-06-01" }, - "eTag": "\u002208021e11-0000-0100-0000-63b4e5390000\u0022", + "eTag": "\u00223900f18d-0000-0100-0000-63ef3aae0000\u0022", "location": "eastus", "tags": {} } diff --git a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_delete_test.json b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_delete_test.json index 30c6810ae07f..b0ee83a28b87 100644 --- a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_delete_test.json +++ b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_delete_test.json @@ -8,24 +8,24 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-datafactory/10.10.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "cca834a5-bb78-4b66-bc51-7145e085b9fe" + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "ca46ed47-ef61-4486-97fc-a196ed741ab7" }, "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { "Cache-Control": "no-cache", "Content-Length": "0", - "Date": "Wed, 04 Jan 2023 02:32:36 GMT", + "Date": "Fri, 17 Feb 2023 08:32:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Kestrel", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "68752683-dd7b-4581-96a5-99e8a9f124cd", + "x-ms-correlation-request-id": "9ec081e6-52b8-4436-9fa1-8cca26e62b96", "x-ms-ratelimit-remaining-subscription-deletes": "14999", - "x-ms-request-id": "68752683-dd7b-4581-96a5-99e8a9f124cd", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230104T023237Z:68752683-dd7b-4581-96a5-99e8a9f124cd" + "x-ms-request-id": "9ec081e6-52b8-4436-9fa1-8cca26e62b96", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083211Z:9ec081e6-52b8-4436-9fa1-8cca26e62b96" }, "ResponseBody": null }, @@ -37,8 +37,8 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-datafactory/10.10.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "e149f8d6-cc29-467a-b116-bf71e9e3dc48" + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "007793b2-f152-4b9f-8a3e-28a752747cb9" }, "RequestBody": null, "StatusCode": 200, @@ -47,16 +47,16 @@ "Content-Encoding": "gzip", "Content-Length": "12", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 04 Jan 2023 02:32:37 GMT", + "Date": "Fri, 17 Feb 2023 08:32:11 GMT", "Expires": "-1", "Pragma": "no-cache", "Strict-Transport-Security": "max-age=31536000; includeSubDomains", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "6c613a8c-9b80-4e18-ad38-7c4cad47fe19", - "x-ms-ratelimit-remaining-subscription-reads": "11997", - "x-ms-request-id": "6c613a8c-9b80-4e18-ad38-7c4cad47fe19", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230104T023238Z:6c613a8c-9b80-4e18-ad38-7c4cad47fe19" + "x-ms-correlation-request-id": "46480237-c75a-4050-973c-b4515e44374e", + "x-ms-ratelimit-remaining-subscription-reads": "11922", + "x-ms-request-id": "46480237-c75a-4050-973c-b4515e44374e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083212Z:46480237-c75a-4050-973c-b4515e44374e" }, "ResponseBody": { "value": [] diff --git a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_get_test.json b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_get_test.json index c61b64b4d1fb..d8e4e67faa50 100644 --- a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_get_test.json +++ b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_get_test.json @@ -8,8 +8,8 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-datafactory/10.10.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "de9b6b8a-f50e-4639-8d78-823d0c7ce55c" + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "0244db91-305f-43f7-8eb6-5d41abade8f5" }, "RequestBody": null, "StatusCode": 200, @@ -17,7 +17,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 04 Jan 2023 02:32:27 GMT", + "Date": "Fri, 17 Feb 2023 08:31:47 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Kestrel", @@ -25,10 +25,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "cf47f89e-deec-403a-87a1-6e421617b548", - "x-ms-ratelimit-remaining-subscription-reads": "11999", - "x-ms-request-id": "cf47f89e-deec-403a-87a1-6e421617b548", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230104T023227Z:cf47f89e-deec-403a-87a1-6e421617b548" + "x-ms-correlation-request-id": "25564c79-e2da-4f89-bb3a-1b156fdda7fc", + "x-ms-ratelimit-remaining-subscription-reads": "11924", + "x-ms-request-id": "25564c79-e2da-4f89-bb3a-1b156fdda7fc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083147Z:25564c79-e2da-4f89-bb3a-1b156fdda7fc" }, "ResponseBody": { "name": "examplefactorytest", @@ -36,7 +36,7 @@ "type": "Microsoft.DataFactory/factories", "properties": { "provisioningState": "Succeeded", - "createTime": "2023-01-04T02:32:25.3232965Z", + "createTime": "2023-02-17T08:28:30.099783Z", "version": "2018-06-01", "factoryStatistics": { "totalResourceCount": 0, @@ -45,7 +45,7 @@ "maxAllowedFactorySizeInGbUnits": 0 } }, - "eTag": "\u002208021e11-0000-0100-0000-63b4e5390000\u0022", + "eTag": "\u00223900f18d-0000-0100-0000-63ef3aae0000\u0022", "location": "eastus", "tags": {} } diff --git a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_list_test.json b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_list_test.json index c0b9746d9532..bd33a30d708b 100644 --- a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_list_test.json +++ b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_datafactory_list_test.json @@ -8,8 +8,8 @@ "Accept-Encoding": "gzip,deflate", "Authorization": "Sanitized", "Connection": "keep-alive", - "User-Agent": "azsdk-js-arm-datafactory/10.10.1 core-rest-pipeline/1.10.1 Node/v18.10.0 OS/(x64-Windows_NT-10.0.19042)", - "x-ms-client-request-id": "0cedf085-ba5a-4afa-9fff-97730c48621d" + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "9f5c9cf7-95b5-474e-b813-5cb0e882fe0a" }, "RequestBody": null, "StatusCode": 200, @@ -17,7 +17,7 @@ "Cache-Control": "no-cache", "Content-Encoding": "gzip", "Content-Type": "application/json; charset=utf-8", - "Date": "Wed, 04 Jan 2023 02:32:28 GMT", + "Date": "Fri, 17 Feb 2023 08:31:48 GMT", "Expires": "-1", "Pragma": "no-cache", "Server": "Kestrel", @@ -25,10 +25,10 @@ "Transfer-Encoding": "chunked", "Vary": "Accept-Encoding", "X-Content-Type-Options": "nosniff", - "x-ms-correlation-request-id": "4cf11f00-9f35-4901-88c7-6dcd5cbcfcc0", - "x-ms-ratelimit-remaining-subscription-reads": "11998", - "x-ms-request-id": "4cf11f00-9f35-4901-88c7-6dcd5cbcfcc0", - "x-ms-routing-request-id": "SOUTHEASTASIA:20230104T023229Z:4cf11f00-9f35-4901-88c7-6dcd5cbcfcc0" + "x-ms-correlation-request-id": "ef8d6591-708e-47e4-99b8-45f098d58593", + "x-ms-ratelimit-remaining-subscription-reads": "11923", + "x-ms-request-id": "ef8d6591-708e-47e4-99b8-45f098d58593", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083149Z:ef8d6591-708e-47e4-99b8-45f098d58593" }, "ResponseBody": { "value": [ @@ -38,10 +38,10 @@ "type": "Microsoft.DataFactory/factories", "properties": { "provisioningState": "Succeeded", - "createTime": "2023-01-04T02:32:25.3232965Z", + "createTime": "2023-02-17T08:28:30.099783Z", "version": "2018-06-01" }, - "eTag": "\u002208021e11-0000-0100-0000-63b4e5390000\u0022", + "eTag": "\u00223900f18d-0000-0100-0000-63ef3aae0000\u0022", "location": "eastus", "tags": {} } diff --git a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_dataflowdebugsession_create_test.json b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_dataflowdebugsession_create_test.json new file mode 100644 index 000000000000..eedcd8464753 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_dataflowdebugsession_create_test.json @@ -0,0 +1,2759 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/createDataFlowDebugSession?api-version=2018-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "229", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5c31131a-32bc-437c-82b9-ecbd3ad898dd" + }, + "RequestBody": { + "timeToLive": 60, + "integrationRuntime": { + "name": "ir1", + "properties": { + "type": "Managed", + "typeProperties": { + "computeProperties": { + "location": "AutoResolve", + "dataFlowProperties": { + "computeType": "General", + "coreCount": 48, + "timeToLive": 10 + } + } + } + } + } + }, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "57", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "37685c45-a59c-4781-ad6c-c01f9c1df6cd", + "x-ms-ratelimit-remaining-subscription-writes": "1199", + "x-ms-request-id": "37685c45-a59c-4781-ad6c-c01f9c1df6cd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082833Z:37685c45-a59c-4781-ad6c-c01f9c1df6cd" + }, + "ResponseBody": { + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571" + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c5719110-5c2a-498a-9407-5bc0ba2944e8" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "1255de78-1f21-4234-b591-1ec41f551cc4", + "x-ms-ratelimit-remaining-subscription-reads": "11999", + "x-ms-request-id": "1255de78-1f21-4234-b591-1ec41f551cc4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082833Z:1255de78-1f21-4234-b591-1ec41f551cc4" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "113599ee-1df6-41c9-8c00-901fcb94733e" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "72da74fc-e303-4eb2-bdc1-ee6b1cc3e93b", + "x-ms-ratelimit-remaining-subscription-reads": "11998", + "x-ms-request-id": "72da74fc-e303-4eb2-bdc1-ee6b1cc3e93b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082834Z:72da74fc-e303-4eb2-bdc1-ee6b1cc3e93b" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "3e0d4e40-60d0-456d-9fe4-9a4db43bfd31" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:36 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "50e79100-351c-46e1-983e-bdcf8d7970e1", + "x-ms-ratelimit-remaining-subscription-reads": "11997", + "x-ms-request-id": "50e79100-351c-46e1-983e-bdcf8d7970e1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082836Z:50e79100-351c-46e1-983e-bdcf8d7970e1" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7bfbeb6e-489a-4130-bd15-f4b07e4ec39d" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:39 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b3035dd1-1f94-4521-a2e8-b79d8b79e75d", + "x-ms-ratelimit-remaining-subscription-reads": "11996", + "x-ms-request-id": "b3035dd1-1f94-4521-a2e8-b79d8b79e75d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082839Z:b3035dd1-1f94-4521-a2e8-b79d8b79e75d" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "8883e611-573a-48f9-aa9b-3b92b93a0e14" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:41 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c7cab2d0-ff47-455a-addf-46e8e6733372", + "x-ms-ratelimit-remaining-subscription-reads": "11995", + "x-ms-request-id": "c7cab2d0-ff47-455a-addf-46e8e6733372", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082842Z:c7cab2d0-ff47-455a-addf-46e8e6733372" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "428564f2-7df1-438d-a919-ae611e22e525" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:44 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7d5725bb-2de6-48bf-bb54-2c18a980dc32", + "x-ms-ratelimit-remaining-subscription-reads": "11994", + "x-ms-request-id": "7d5725bb-2de6-48bf-bb54-2c18a980dc32", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082844Z:7d5725bb-2de6-48bf-bb54-2c18a980dc32" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "6a9e0555-4b86-44bf-8ae3-1f4062113f81" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:46 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f911e989-f90a-4616-9b32-ccf6372b7b2a", + "x-ms-ratelimit-remaining-subscription-reads": "11993", + "x-ms-request-id": "f911e989-f90a-4616-9b32-ccf6372b7b2a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082847Z:f911e989-f90a-4616-9b32-ccf6372b7b2a" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "1e7f7480-0b91-464d-b01d-8c2265bf7360" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:49 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "06344794-e752-4a77-a322-4e4e3d74dc87", + "x-ms-ratelimit-remaining-subscription-reads": "11992", + "x-ms-request-id": "06344794-e752-4a77-a322-4e4e3d74dc87", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082850Z:06344794-e752-4a77-a322-4e4e3d74dc87" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e8bd84fc-fffb-466f-94fa-a1cca616197f" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a79b153-c603-4095-943c-e5080d837feb", + "x-ms-ratelimit-remaining-subscription-reads": "11991", + "x-ms-request-id": "4a79b153-c603-4095-943c-e5080d837feb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082852Z:4a79b153-c603-4095-943c-e5080d837feb" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b114262a-5793-4f64-a8a6-72f97efcbbc7" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:54 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2c13b976-2fe5-4d27-a510-7175d810d3bd", + "x-ms-ratelimit-remaining-subscription-reads": "11990", + "x-ms-request-id": "2c13b976-2fe5-4d27-a510-7175d810d3bd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082855Z:2c13b976-2fe5-4d27-a510-7175d810d3bd" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "8156322c-d978-40c7-b388-442dcd3b4768" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:57 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c56feb15-93c6-4ce6-968b-4d955a80a63d", + "x-ms-ratelimit-remaining-subscription-reads": "11989", + "x-ms-request-id": "c56feb15-93c6-4ce6-968b-4d955a80a63d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082857Z:c56feb15-93c6-4ce6-968b-4d955a80a63d" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e471d6a0-beaa-4261-afb6-ed1905f7f990" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:28:59 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e7d802dd-20e7-482e-86ba-be351d4e9d81", + "x-ms-ratelimit-remaining-subscription-reads": "11988", + "x-ms-request-id": "e7d802dd-20e7-482e-86ba-be351d4e9d81", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082900Z:e7d802dd-20e7-482e-86ba-be351d4e9d81" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "9f5447a3-bac8-4ef7-be22-68a7168450b5" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:02 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2ee3a11a-0b31-4821-9507-a00fe04b81ff", + "x-ms-ratelimit-remaining-subscription-reads": "11987", + "x-ms-request-id": "2ee3a11a-0b31-4821-9507-a00fe04b81ff", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082903Z:2ee3a11a-0b31-4821-9507-a00fe04b81ff" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "186cf154-494c-440e-ab26-ffad75aa722d" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:04 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e6d0f36e-50bc-47f3-ac71-56cbb2d8aaf9", + "x-ms-ratelimit-remaining-subscription-reads": "11986", + "x-ms-request-id": "e6d0f36e-50bc-47f3-ac71-56cbb2d8aaf9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082905Z:e6d0f36e-50bc-47f3-ac71-56cbb2d8aaf9" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f94a8b16-bc0e-4527-a84e-70eeea76f3e9" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:07 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "97b1ebe2-5c65-459f-9a6e-72a20bca4a57", + "x-ms-ratelimit-remaining-subscription-reads": "11985", + "x-ms-request-id": "97b1ebe2-5c65-459f-9a6e-72a20bca4a57", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082908Z:97b1ebe2-5c65-459f-9a6e-72a20bca4a57" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "24b31fe2-b641-489b-b26e-b47c141ea632" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:10 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "afad1c27-7a47-421a-9ad4-05713d708cbb", + "x-ms-ratelimit-remaining-subscription-reads": "11984", + "x-ms-request-id": "afad1c27-7a47-421a-9ad4-05713d708cbb", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082910Z:afad1c27-7a47-421a-9ad4-05713d708cbb" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "a3c2873b-bf4b-4b86-8d6f-cf52c82029f3" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:12 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3387030a-aff4-4568-b09c-fdd2c48d8905", + "x-ms-ratelimit-remaining-subscription-reads": "11983", + "x-ms-request-id": "3387030a-aff4-4568-b09c-fdd2c48d8905", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082913Z:3387030a-aff4-4568-b09c-fdd2c48d8905" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b2e82323-03e1-4a25-b811-f23ecce17a6d" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:15 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e63337dc-ced0-4f4b-ad9f-837bb01b04ce", + "x-ms-ratelimit-remaining-subscription-reads": "11982", + "x-ms-request-id": "e63337dc-ced0-4f4b-ad9f-837bb01b04ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082916Z:e63337dc-ced0-4f4b-ad9f-837bb01b04ce" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "fd89e831-fd59-416a-9859-e53f50f4ae0a" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c064026a-754d-4115-b5e3-1c45c240b84b", + "x-ms-ratelimit-remaining-subscription-reads": "11981", + "x-ms-request-id": "c064026a-754d-4115-b5e3-1c45c240b84b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082918Z:c064026a-754d-4115-b5e3-1c45c240b84b" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "9dc0913f-a98f-47aa-b45e-127909460132" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a1a077a3-8e18-42fa-b7cf-55c63f788ab9", + "x-ms-ratelimit-remaining-subscription-reads": "11980", + "x-ms-request-id": "a1a077a3-8e18-42fa-b7cf-55c63f788ab9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082922Z:a1a077a3-8e18-42fa-b7cf-55c63f788ab9" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "fa658c29-669d-4747-9109-c59554399c7b" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:23 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a4817857-0880-457a-9447-ee5aece2c57a", + "x-ms-ratelimit-remaining-subscription-reads": "11979", + "x-ms-request-id": "a4817857-0880-457a-9447-ee5aece2c57a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082924Z:a4817857-0880-457a-9447-ee5aece2c57a" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "68c951db-a756-4f94-87fb-066e93c91771" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:26 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd8924bb-c6ea-4ce9-8aab-4f5dd08837b1", + "x-ms-ratelimit-remaining-subscription-reads": "11978", + "x-ms-request-id": "fd8924bb-c6ea-4ce9-8aab-4f5dd08837b1", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082927Z:fd8924bb-c6ea-4ce9-8aab-4f5dd08837b1" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b700a4d8-6377-40cf-a29c-f5b7df4c7eea" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:28 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9a42a8ca-bd28-4241-917a-625bada150d0", + "x-ms-ratelimit-remaining-subscription-reads": "11977", + "x-ms-request-id": "9a42a8ca-bd28-4241-917a-625bada150d0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082929Z:9a42a8ca-bd28-4241-917a-625bada150d0" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "2fa364cf-8d88-4c99-9107-d2ab95f9d712" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de7be1f5-eba2-4316-b70f-80a0e8d58229", + "x-ms-ratelimit-remaining-subscription-reads": "11976", + "x-ms-request-id": "de7be1f5-eba2-4316-b70f-80a0e8d58229", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082932Z:de7be1f5-eba2-4316-b70f-80a0e8d58229" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "eb83576c-9c96-4e95-8380-cd5aec83bb5b" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a2572ce8-5498-43ff-9e7e-e901d92ebac9", + "x-ms-ratelimit-remaining-subscription-reads": "11975", + "x-ms-request-id": "a2572ce8-5498-43ff-9e7e-e901d92ebac9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082934Z:a2572ce8-5498-43ff-9e7e-e901d92ebac9" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "fb55a779-f6a1-4d93-b122-6c31521d37d3" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "015c78ff-1c0b-4572-a6b2-4340138161c5", + "x-ms-ratelimit-remaining-subscription-reads": "11974", + "x-ms-request-id": "015c78ff-1c0b-4572-a6b2-4340138161c5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082937Z:015c78ff-1c0b-4572-a6b2-4340138161c5" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "8e12ae10-6dd4-4d8f-a2a5-74c3f951d36c" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a50edd2a-39ca-4c25-b79c-470cc88edd67", + "x-ms-ratelimit-remaining-subscription-reads": "11973", + "x-ms-request-id": "a50edd2a-39ca-4c25-b79c-470cc88edd67", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082940Z:a50edd2a-39ca-4c25-b79c-470cc88edd67" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "2ec215b4-1e30-4bcc-abd6-ca0e993ef97a" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "341fe2ed-76db-4da2-b126-db4a77eaf6d7", + "x-ms-ratelimit-remaining-subscription-reads": "11972", + "x-ms-request-id": "341fe2ed-76db-4da2-b126-db4a77eaf6d7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082942Z:341fe2ed-76db-4da2-b126-db4a77eaf6d7" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "0533d5bf-c365-4193-8e47-84785cc78dad" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cb62667e-ebd0-4c60-9790-eaadc4da2207", + "x-ms-ratelimit-remaining-subscription-reads": "11971", + "x-ms-request-id": "cb62667e-ebd0-4c60-9790-eaadc4da2207", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082945Z:cb62667e-ebd0-4c60-9790-eaadc4da2207" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "46ab0f7d-44ba-4871-8005-85713a9a6aad" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "acea4d54-7bbd-47d8-8a0f-d90988ab8f65", + "x-ms-ratelimit-remaining-subscription-reads": "11970", + "x-ms-request-id": "acea4d54-7bbd-47d8-8a0f-d90988ab8f65", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082947Z:acea4d54-7bbd-47d8-8a0f-d90988ab8f65" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "526fd1d7-4594-4e73-a70a-0e96593fddfb" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e8b1bb80-cfe1-4839-8960-bee88bcfcbe6", + "x-ms-ratelimit-remaining-subscription-reads": "11969", + "x-ms-request-id": "e8b1bb80-cfe1-4839-8960-bee88bcfcbe6", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082950Z:e8b1bb80-cfe1-4839-8960-bee88bcfcbe6" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "743a0745-f871-4104-8c8b-d663f0086b82" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:53 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "de656c2c-be33-43f3-b841-47c0821a8641", + "x-ms-ratelimit-remaining-subscription-reads": "11968", + "x-ms-request-id": "de656c2c-be33-43f3-b841-47c0821a8641", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082953Z:de656c2c-be33-43f3-b841-47c0821a8641" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "607ec247-d271-48cf-9a74-3f1d682148b2" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e94b660f-4c14-40a2-91c5-c180b324ef7f", + "x-ms-ratelimit-remaining-subscription-reads": "11967", + "x-ms-request-id": "e94b660f-4c14-40a2-91c5-c180b324ef7f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082955Z:e94b660f-4c14-40a2-91c5-c180b324ef7f" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "1e0453bd-08ac-40c3-9bfb-407081ae1c1c" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:29:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "cff33f26-e459-4b66-a05a-bb59470eb99d", + "x-ms-ratelimit-remaining-subscription-reads": "11966", + "x-ms-request-id": "cff33f26-e459-4b66-a05a-bb59470eb99d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T082958Z:cff33f26-e459-4b66-a05a-bb59470eb99d" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d2106330-f024-4696-8b0b-0c62db120f71" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:01 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8842effa-49da-46a0-9944-ffce90b1a5d7", + "x-ms-ratelimit-remaining-subscription-reads": "11965", + "x-ms-request-id": "8842effa-49da-46a0-9944-ffce90b1a5d7", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083001Z:8842effa-49da-46a0-9944-ffce90b1a5d7" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d98ad375-7b3c-41c2-87bb-7ba8f4634101" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "34276cf0-f0cb-40a0-aeb4-b4931bbb2c54", + "x-ms-ratelimit-remaining-subscription-reads": "11964", + "x-ms-request-id": "34276cf0-f0cb-40a0-aeb4-b4931bbb2c54", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083003Z:34276cf0-f0cb-40a0-aeb4-b4931bbb2c54" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "f7efbda6-84b2-4366-b28c-26dff285ed99" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5d2e6083-5b18-4ee0-b2cf-730ebd6d9992", + "x-ms-ratelimit-remaining-subscription-reads": "11963", + "x-ms-request-id": "5d2e6083-5b18-4ee0-b2cf-730ebd6d9992", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083006Z:5d2e6083-5b18-4ee0-b2cf-730ebd6d9992" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "74049a71-c098-4959-a25d-4a27272d1025" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "fd59820d-f317-4709-8e3f-e126d9fe3212", + "x-ms-ratelimit-remaining-subscription-reads": "11962", + "x-ms-request-id": "fd59820d-f317-4709-8e3f-e126d9fe3212", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083009Z:fd59820d-f317-4709-8e3f-e126d9fe3212" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e043cfc5-9497-41eb-9e1c-5fde537b0df0" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "76d31ec7-bf6d-4684-b78e-84daf83c7243", + "x-ms-ratelimit-remaining-subscription-reads": "11961", + "x-ms-request-id": "76d31ec7-bf6d-4684-b78e-84daf83c7243", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083011Z:76d31ec7-bf6d-4684-b78e-84daf83c7243" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e104b1eb-bbac-449d-b0e5-3ff151552714" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:13 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e3931987-7aa2-4d56-8845-29653bf2cc5c", + "x-ms-ratelimit-remaining-subscription-reads": "11960", + "x-ms-request-id": "e3931987-7aa2-4d56-8845-29653bf2cc5c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083014Z:e3931987-7aa2-4d56-8845-29653bf2cc5c" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b08f3e68-cdb1-41ee-b3f8-9617b993ca79" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:16 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "067a51b7-45b8-417e-b049-35fb2420389f", + "x-ms-ratelimit-remaining-subscription-reads": "11959", + "x-ms-request-id": "067a51b7-45b8-417e-b049-35fb2420389f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083017Z:067a51b7-45b8-417e-b049-35fb2420389f" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c4c41c46-5c06-422c-a5d4-96ec02df0b9c" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:19 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7f3b75c4-0556-4642-a0c8-0ff1ad6eea56", + "x-ms-ratelimit-remaining-subscription-reads": "11958", + "x-ms-request-id": "7f3b75c4-0556-4642-a0c8-0ff1ad6eea56", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083019Z:7f3b75c4-0556-4642-a0c8-0ff1ad6eea56" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7f49e494-6d02-4916-b0ce-88fe23e8c402" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:21 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "49c7a603-dc44-486c-941e-b8d6cc1b4f9d", + "x-ms-ratelimit-remaining-subscription-reads": "11957", + "x-ms-request-id": "49c7a603-dc44-486c-941e-b8d6cc1b4f9d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083022Z:49c7a603-dc44-486c-941e-b8d6cc1b4f9d" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e9eb9f75-2b2d-499c-959a-58a84d15bf72" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:24 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "016c1add-8bb7-41f6-b1f6-15808c65db92", + "x-ms-ratelimit-remaining-subscription-reads": "11956", + "x-ms-request-id": "016c1add-8bb7-41f6-b1f6-15808c65db92", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083025Z:016c1add-8bb7-41f6-b1f6-15808c65db92" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "9b0b413a-3195-4ccb-a584-27b23ff9d0dc" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "27ecebb4-434e-4b9e-b980-e2f07213469e", + "x-ms-ratelimit-remaining-subscription-reads": "11955", + "x-ms-request-id": "27ecebb4-434e-4b9e-b980-e2f07213469e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083027Z:27ecebb4-434e-4b9e-b980-e2f07213469e" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b5061f30-38b0-4b07-85d9-325777fb08bd" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:29 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "e076f28c-38ca-4507-88d0-90c2d657c0bc", + "x-ms-ratelimit-remaining-subscription-reads": "11954", + "x-ms-request-id": "e076f28c-38ca-4507-88d0-90c2d657c0bc", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083030Z:e076f28c-38ca-4507-88d0-90c2d657c0bc" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b7957557-0c7b-40b5-ab0a-6ec682340f45" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:32 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dc58b807-37d0-442d-bf96-1dfe98e2dbe2", + "x-ms-ratelimit-remaining-subscription-reads": "11953", + "x-ms-request-id": "dc58b807-37d0-442d-bf96-1dfe98e2dbe2", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083032Z:dc58b807-37d0-442d-bf96-1dfe98e2dbe2" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7dd3bed1-60e4-4dcd-a85a-d22fee5b1d5c" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:34 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5f85c8ac-728d-4256-9fe5-b2a1e4ce9d4a", + "x-ms-ratelimit-remaining-subscription-reads": "11952", + "x-ms-request-id": "5f85c8ac-728d-4256-9fe5-b2a1e4ce9d4a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083035Z:5f85c8ac-728d-4256-9fe5-b2a1e4ce9d4a" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d6ca9592-ce51-4296-9dbe-e80b63be0689" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:37 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "b67eabaa-7203-4fbe-bcba-abcde2080150", + "x-ms-ratelimit-remaining-subscription-reads": "11951", + "x-ms-request-id": "b67eabaa-7203-4fbe-bcba-abcde2080150", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083038Z:b67eabaa-7203-4fbe-bcba-abcde2080150" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5ac5b174-e1cb-4344-98bd-2720d0130f95" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "3f1be16e-3ab5-43db-a953-a84ea744688a", + "x-ms-ratelimit-remaining-subscription-reads": "11950", + "x-ms-request-id": "3f1be16e-3ab5-43db-a953-a84ea744688a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083040Z:3f1be16e-3ab5-43db-a953-a84ea744688a" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "881e0294-19d4-4fcd-9a93-b49c4e4b3608" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:42 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "9abb5a48-4404-4d27-a9a8-8d310217c0b0", + "x-ms-ratelimit-remaining-subscription-reads": "11949", + "x-ms-request-id": "9abb5a48-4404-4d27-a9a8-8d310217c0b0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083043Z:9abb5a48-4404-4d27-a9a8-8d310217c0b0" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c3df14ba-e791-49d6-817f-c2e328a79a77" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:45 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "62d248b8-c682-4d85-b7d2-3a9dca0054d5", + "x-ms-ratelimit-remaining-subscription-reads": "11948", + "x-ms-request-id": "62d248b8-c682-4d85-b7d2-3a9dca0054d5", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083045Z:62d248b8-c682-4d85-b7d2-3a9dca0054d5" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e34649cf-dc1b-4a88-9cef-5fc5d2353aed" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:47 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4a1a42b9-3d80-4c4c-8f77-d527fcd0a93a", + "x-ms-ratelimit-remaining-subscription-reads": "11947", + "x-ms-request-id": "4a1a42b9-3d80-4c4c-8f77-d527fcd0a93a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083048Z:4a1a42b9-3d80-4c4c-8f77-d527fcd0a93a" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c774f666-0892-4223-868d-4e14c6db0729" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:50 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "410caceb-488c-4b64-9f52-4d4f5f05b3fd", + "x-ms-ratelimit-remaining-subscription-reads": "11946", + "x-ms-request-id": "410caceb-488c-4b64-9f52-4d4f5f05b3fd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083051Z:410caceb-488c-4b64-9f52-4d4f5f05b3fd" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "a85825cd-0355-49b2-b76c-5126d596d98f" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:52 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "5ea14831-ee29-45e9-8172-b45d7730059d", + "x-ms-ratelimit-remaining-subscription-reads": "11945", + "x-ms-request-id": "5ea14831-ee29-45e9-8172-b45d7730059d", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083053Z:5ea14831-ee29-45e9-8172-b45d7730059d" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c79cb660-465f-45cc-95af-85e4baeda0f4" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:55 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a15be3f1-9d9c-4bc2-9489-1e69a17c9485", + "x-ms-ratelimit-remaining-subscription-reads": "11944", + "x-ms-request-id": "a15be3f1-9d9c-4bc2-9489-1e69a17c9485", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083056Z:a15be3f1-9d9c-4bc2-9489-1e69a17c9485" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "bc7b4f62-f21c-4cf5-9a2e-c2fb74f9fba4" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:30:58 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "c6e2525b-ae2f-44d9-8e1c-956c63e0d2cd", + "x-ms-ratelimit-remaining-subscription-reads": "11943", + "x-ms-request-id": "c6e2525b-ae2f-44d9-8e1c-956c63e0d2cd", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083058Z:c6e2525b-ae2f-44d9-8e1c-956c63e0d2cd" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "8b163f26-dda5-4a01-9824-ceb8ad6ba7f3" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:00 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4dae3751-1239-4b1d-a08a-34d25a375f3f", + "x-ms-ratelimit-remaining-subscription-reads": "11942", + "x-ms-request-id": "4dae3751-1239-4b1d-a08a-34d25a375f3f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083101Z:4dae3751-1239-4b1d-a08a-34d25a375f3f" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "2524bf78-9e1c-4a54-abb4-36699ebb5cc3" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:03 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "24de9140-561f-4ce4-a939-7ce042681901", + "x-ms-ratelimit-remaining-subscription-reads": "11941", + "x-ms-request-id": "24de9140-561f-4ce4-a939-7ce042681901", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083104Z:24de9140-561f-4ce4-a939-7ce042681901" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "7fc0b4b5-0d05-4390-bb74-88edad9c1333" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:06 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "ea87f8c5-4df6-4e9b-a35f-711e84e0a8a9", + "x-ms-ratelimit-remaining-subscription-reads": "11940", + "x-ms-request-id": "ea87f8c5-4df6-4e9b-a35f-711e84e0a8a9", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083106Z:ea87f8c5-4df6-4e9b-a35f-711e84e0a8a9" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "954bc9ec-ca31-4447-b517-b8a8de826db1" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:08 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "89b314a7-d42a-4015-a93b-98d09c052c19", + "x-ms-ratelimit-remaining-subscription-reads": "11939", + "x-ms-request-id": "89b314a7-d42a-4015-a93b-98d09c052c19", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083109Z:89b314a7-d42a-4015-a93b-98d09c052c19" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "46f85cac-7026-4583-b073-fa7c3f9a0a46" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:11 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0efd9124-e6b5-4d2f-b859-8d6c415d7676", + "x-ms-ratelimit-remaining-subscription-reads": "11938", + "x-ms-request-id": "0efd9124-e6b5-4d2f-b859-8d6c415d7676", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083112Z:0efd9124-e6b5-4d2f-b859-8d6c415d7676" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "787700cf-65a9-4d10-8bc5-9339231afd42" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:14 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "7e77314a-db75-488a-80e0-d89ca14765ee", + "x-ms-ratelimit-remaining-subscription-reads": "11937", + "x-ms-request-id": "7e77314a-db75-488a-80e0-d89ca14765ee", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083114Z:7e77314a-db75-488a-80e0-d89ca14765ee" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d1b682ea-6cc4-407f-9cbd-b01fbd460f78" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:17 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "15ab9c4a-f221-4c2a-85fb-9071bc2785ce", + "x-ms-ratelimit-remaining-subscription-reads": "11936", + "x-ms-request-id": "15ab9c4a-f221-4c2a-85fb-9071bc2785ce", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083117Z:15ab9c4a-f221-4c2a-85fb-9071bc2785ce" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "e117ee06-2e9e-47e3-b09e-0b35dc88ef85" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:20 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "a6a41cae-97a5-4001-9806-9f6a2cf92102", + "x-ms-ratelimit-remaining-subscription-reads": "11935", + "x-ms-request-id": "a6a41cae-97a5-4001-9806-9f6a2cf92102", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083120Z:a6a41cae-97a5-4001-9806-9f6a2cf92102" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "ae1dcda6-d9b1-4c99-a64c-1e50b7b74c55" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:22 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "8f873310-5407-4eef-992c-90ed8f74a910", + "x-ms-ratelimit-remaining-subscription-reads": "11934", + "x-ms-request-id": "8f873310-5407-4eef-992c-90ed8f74a910", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083122Z:8f873310-5407-4eef-992c-90ed8f74a910" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "52530528-c817-4931-b9bb-16ef0003430c" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:25 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "64f1c54d-9f2f-48cb-8a66-39aaafc50f2e", + "x-ms-ratelimit-remaining-subscription-reads": "11933", + "x-ms-request-id": "64f1c54d-9f2f-48cb-8a66-39aaafc50f2e", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083125Z:64f1c54d-9f2f-48cb-8a66-39aaafc50f2e" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "cf43c07d-9ffe-43df-85e3-d55c1bfdf2c0" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:27 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "75da307d-998c-40b6-a516-b7573161487b", + "x-ms-ratelimit-remaining-subscription-reads": "11932", + "x-ms-request-id": "75da307d-998c-40b6-a516-b7573161487b", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083128Z:75da307d-998c-40b6-a516-b7573161487b" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "c26261c8-ac40-43e7-b009-13ef7603d8a5" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:30 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4f85a1d0-780b-49b9-be63-3901f30f26b0", + "x-ms-ratelimit-remaining-subscription-reads": "11931", + "x-ms-request-id": "4f85a1d0-780b-49b9-be63-3901f30f26b0", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083130Z:4f85a1d0-780b-49b9-be63-3901f30f26b0" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "d6984ff8-6652-447d-9bea-4f76a6a18225" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:33 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "f5d3531b-9a1f-4530-a974-c729f7a23a75", + "x-ms-ratelimit-remaining-subscription-reads": "11930", + "x-ms-request-id": "f5d3531b-9a1f-4530-a974-c729f7a23a75", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083133Z:f5d3531b-9a1f-4530-a974-c729f7a23a75" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "3842f8ec-a98c-4da0-ac17-7fca0b120c15" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:35 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4b409c0d-b1e4-42da-8a50-30212eaba7d4", + "x-ms-ratelimit-remaining-subscription-reads": "11929", + "x-ms-request-id": "4b409c0d-b1e4-42da-8a50-30212eaba7d4", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083135Z:4b409c0d-b1e4-42da-8a50-30212eaba7d4" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "8e508cdf-5553-4173-9217-3cb9c6846ad8" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:38 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "112de8e6-cb7c-4c03-a2a8-d6ec6005742a", + "x-ms-ratelimit-remaining-subscription-reads": "11928", + "x-ms-request-id": "112de8e6-cb7c-4c03-a2a8-d6ec6005742a", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083138Z:112de8e6-cb7c-4c03-a2a8-d6ec6005742a" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "5ca09077-f345-44d0-93f3-69ea8ec41db5" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:40 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "dbc06bc8-0565-468d-94cc-8f6e8def5172", + "x-ms-ratelimit-remaining-subscription-reads": "11927", + "x-ms-request-id": "dbc06bc8-0565-468d-94cc-8f6e8def5172", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083141Z:dbc06bc8-0565-468d-94cc-8f6e8def5172" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "25dd41c7-99e3-40ee-8a0b-b9c42746ad32" + }, + "RequestBody": null, + "StatusCode": 202, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "102", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:43 GMT", + "Expires": "-1", + "Location": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "2dc10174-4265-4945-a867-56df7099e51c", + "x-ms-ratelimit-remaining-subscription-reads": "11926", + "x-ms-request-id": "2dc10174-4265-4945-a867-56df7099e51c", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083143Z:2dc10174-4265-4945-a867-56df7099e51c" + }, + "ResponseBody": { + "status": "Pending", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": true + } + }, + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/operationResults/dfCreateSession$$2475b175-6f61-4815-b012-c9a39cf60571?api-version=2018-06-01", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "fdd4c0f9-0596-4109-bdd5-3dc8ad1a3b19" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Encoding": "gzip", + "Content-Type": "application/json; charset=utf-8", + "Date": "Fri, 17 Feb 2023 08:31:45 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "Transfer-Encoding": "chunked", + "Vary": "Accept-Encoding", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "4da5a0d1-1ce4-4a34-81a6-6507c0541f32", + "x-ms-ratelimit-remaining-subscription-reads": "11925", + "x-ms-request-id": "4da5a0d1-1ce4-4a34-81a6-6507c0541f32", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083146Z:4da5a0d1-1ce4-4a34-81a6-6507c0541f32" + }, + "ResponseBody": { + "status": "Succeeded", + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571", + "inProgress": false + } + } + ], + "Variables": {} +} diff --git a/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_dataflowdebugsession_delete_test.json b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_dataflowdebugsession_delete_test.json new file mode 100644 index 000000000000..e647c1425e76 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/recordings/node/datafactory_test/recording_dataflowdebugsession_delete_test.json @@ -0,0 +1,38 @@ +{ + "Entries": [ + { + "RequestUri": "https://management.azure.com/subscriptions/azure_subscription_id/resourceGroups/myjstest/providers/Microsoft.DataFactory/factories/examplefactorytest/deleteDataFlowDebugSession?api-version=2018-06-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip,deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "52", + "Content-Type": "application/json", + "User-Agent": "azsdk-js-arm-datafactory/11.0.0 core-rest-pipeline/1.10.2 Node/v16.17.0 OS/(x64-Windows_NT-10.0.22621)", + "x-ms-client-request-id": "b011c926-5325-42f2-b75d-708cd7ad38a6" + }, + "RequestBody": { + "sessionId": "2475b175-6f61-4815-b012-c9a39cf60571" + }, + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-cache", + "Content-Length": "0", + "Date": "Fri, 17 Feb 2023 08:32:05 GMT", + "Expires": "-1", + "Pragma": "no-cache", + "Server": "Kestrel", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-correlation-request-id": "0b1d6fe1-414a-4c34-950d-fc2f76272f8f", + "x-ms-ratelimit-remaining-subscription-writes": "1198", + "x-ms-request-id": "0b1d6fe1-414a-4c34-950d-fc2f76272f8f", + "x-ms-routing-request-id": "SOUTHEASTASIA:20230217T083206Z:0b1d6fe1-414a-4c34-950d-fc2f76272f8f" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md index 9b13403b7af7..2e9ed159c35e 100644 --- a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md +++ b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md @@ -6,9 +6,9 @@ import * as coreAuth from '@azure/core-auth'; import * as coreClient from '@azure/core-client'; +import { OperationState } from '@azure/core-lro'; import { PagedAsyncIterableIterator } from '@azure/core-paging'; -import { PollerLike } from '@azure/core-lro'; -import { PollOperationState } from '@azure/core-lro'; +import { SimplePollerLike } from '@azure/core-lro'; // @public export interface AccessPolicyResponse { @@ -455,8 +455,10 @@ export interface AzureBlobFSWriteSettings extends StoreWriteSettings { export interface AzureBlobStorageLinkedService extends LinkedService { accountKey?: AzureKeyVaultSecretReference; accountKind?: string; + authenticationType?: AzureStorageAuthenticationType; azureCloudType?: any; connectionString?: any; + containerUri?: any; credential?: CredentialReference; encryptedCredential?: string; sasToken?: AzureKeyVaultSecretReference; @@ -1026,6 +1028,9 @@ export interface AzureSqlTableDataset extends Dataset { type: "AzureSqlTable"; } +// @public +export type AzureStorageAuthenticationType = string; + // @public export interface AzureStorageLinkedService extends LinkedService { accountKey?: AzureKeyVaultSecretReference; @@ -1289,6 +1294,9 @@ export interface ConcurSource extends TabularSource { type: "ConcurSource"; } +// @public +export type ConfigurationType = string; + // @public export interface ConnectionStateProperties { readonly actionsRequired?: string; @@ -1335,6 +1343,13 @@ export interface CopyActivityLogSettings { // @public export type CopyBehaviorType = string; +// @public +export interface CopyComputeScaleProperties { + [property: string]: any; + dataIntegrationUnit?: number; + timeToLive?: number; +} + // @public export interface CopySink { [property: string]: any; @@ -1499,10 +1514,58 @@ interface Credential_2 { [property: string]: any; annotations?: any[]; description?: string; - type: "ServicePrincipal" | "ManagedIdentity"; + type: "ManagedIdentity" | "ServicePrincipal"; } export { Credential_2 as Credential } +// @public +export interface CredentialListResponse { + nextLink?: string; + value: ManagedIdentityCredentialResource[]; +} + +// @public +export interface CredentialOperations { + createOrUpdate(resourceGroupName: string, factoryName: string, credentialName: string, credential: ManagedIdentityCredentialResource, options?: CredentialOperationsCreateOrUpdateOptionalParams): Promise; + delete(resourceGroupName: string, factoryName: string, credentialName: string, options?: CredentialOperationsDeleteOptionalParams): Promise; + get(resourceGroupName: string, factoryName: string, credentialName: string, options?: CredentialOperationsGetOptionalParams): Promise; + listByFactory(resourceGroupName: string, factoryName: string, options?: CredentialOperationsListByFactoryOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CredentialOperationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + ifMatch?: string; +} + +// @public +export type CredentialOperationsCreateOrUpdateResponse = ManagedIdentityCredentialResource; + +// @public +export interface CredentialOperationsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CredentialOperationsGetOptionalParams extends coreClient.OperationOptions { + ifNoneMatch?: string; +} + +// @public +export type CredentialOperationsGetResponse = ManagedIdentityCredentialResource; + +// @public +export interface CredentialOperationsListByFactoryNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialOperationsListByFactoryNextResponse = CredentialListResponse; + +// @public +export interface CredentialOperationsListByFactoryOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CredentialOperationsListByFactoryResponse = CredentialListResponse; + // @public export interface CredentialReference { [property: string]: any; @@ -1519,7 +1582,7 @@ export interface CredentialResource extends SubResource { } // @public (undocumented) -export type CredentialUnion = Credential_2 | ServicePrincipalCredential | ManagedIdentityCredential; +export type CredentialUnion = Credential_2 | ManagedIdentityCredential | ServicePrincipalCredential; // @public export interface CustomActivity extends ExecutionActivity { @@ -1612,6 +1675,8 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { // (undocumented) apiVersion: string; // (undocumented) + credentialOperations: CredentialOperations; + // (undocumented) dataFlowDebugSession: DataFlowDebugSession; // (undocumented) dataFlows: DataFlows; @@ -1726,9 +1791,9 @@ export interface DataFlowDebugResource extends SubResourceDebugResource { // @public export interface DataFlowDebugSession { addDataFlow(resourceGroupName: string, factoryName: string, request: DataFlowDebugPackage, options?: DataFlowDebugSessionAddDataFlowOptionalParams): Promise; - beginCreate(resourceGroupName: string, factoryName: string, request: CreateDataFlowDebugSessionRequest, options?: DataFlowDebugSessionCreateOptionalParams): Promise, DataFlowDebugSessionCreateResponse>>; + beginCreate(resourceGroupName: string, factoryName: string, request: CreateDataFlowDebugSessionRequest, options?: DataFlowDebugSessionCreateOptionalParams): Promise, DataFlowDebugSessionCreateResponse>>; beginCreateAndWait(resourceGroupName: string, factoryName: string, request: CreateDataFlowDebugSessionRequest, options?: DataFlowDebugSessionCreateOptionalParams): Promise; - beginExecuteCommand(resourceGroupName: string, factoryName: string, request: DataFlowDebugCommandRequest, options?: DataFlowDebugSessionExecuteCommandOptionalParams): Promise, DataFlowDebugSessionExecuteCommandResponse>>; + beginExecuteCommand(resourceGroupName: string, factoryName: string, request: DataFlowDebugCommandRequest, options?: DataFlowDebugSessionExecuteCommandOptionalParams): Promise, DataFlowDebugSessionExecuteCommandResponse>>; beginExecuteCommandAndWait(resourceGroupName: string, factoryName: string, request: DataFlowDebugCommandRequest, options?: DataFlowDebugSessionExecuteCommandOptionalParams): Promise; delete(resourceGroupName: string, factoryName: string, request: DeleteDataFlowDebugSessionRequest, options?: DataFlowDebugSessionDeleteOptionalParams): Promise; listQueryByFactory(resourceGroupName: string, factoryName: string, options?: DataFlowDebugSessionQueryByFactoryOptionalParams): PagedAsyncIterableIterator; @@ -3556,11 +3621,13 @@ export type IntegrationRuntimeAutoUpdate = string; // @public export interface IntegrationRuntimeComputeProperties { [property: string]: any; + copyComputeScaleProperties?: CopyComputeScaleProperties; dataFlowProperties?: IntegrationRuntimeDataFlowProperties; location?: string; maxParallelExecutionsPerNode?: number; nodeSize?: string; numberOfNodes?: number; + pipelineExternalComputeScaleProperties?: PipelineExternalComputeScaleProperties; vNetProperties?: IntegrationRuntimeVNetProperties; } @@ -3684,7 +3751,7 @@ export type IntegrationRuntimeNodesUpdateResponse = SelfHostedIntegrationRuntime // @public export interface IntegrationRuntimeObjectMetadata { - beginRefresh(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise, IntegrationRuntimeObjectMetadataRefreshResponse>>; + beginRefresh(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise, IntegrationRuntimeObjectMetadataRefreshResponse>>; beginRefreshAndWait(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams): Promise; get(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataGetOptionalParams): Promise; } @@ -3749,9 +3816,9 @@ export interface IntegrationRuntimeResource extends SubResource { // @public export interface IntegrationRuntimes { - beginStart(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise, IntegrationRuntimesStartResponse>>; + beginStart(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise, IntegrationRuntimesStartResponse>>; beginStartAndWait(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams): Promise; - beginStop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise, void>>; + beginStop(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise, void>>; beginStopAndWait(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams): Promise; createLinkedIntegrationRuntime(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, createLinkedIntegrationRuntimeRequest: CreateLinkedIntegrationRuntimeRequest, options?: IntegrationRuntimesCreateLinkedIntegrationRuntimeOptionalParams): Promise; createOrUpdate(resourceGroupName: string, factoryName: string, integrationRuntimeName: string, integrationRuntime: IntegrationRuntimeResource, options?: IntegrationRuntimesCreateOrUpdateOptionalParams): Promise; @@ -4066,6 +4133,15 @@ export enum KnownAzureSearchIndexWriteBehaviorType { Upload = "Upload" } +// @public +export enum KnownAzureStorageAuthenticationType { + AccountKey = "AccountKey", + Anonymous = "Anonymous", + Msi = "Msi", + SasUri = "SasUri", + ServicePrincipal = "ServicePrincipal" +} + // @public export enum KnownBigDataPoolReferenceType { BigDataPoolReference = "BigDataPoolReference" @@ -4105,6 +4181,13 @@ export enum KnownCompressionCodec { ZipDeflate = "zipDeflate" } +// @public +export enum KnownConfigurationType { + Artifact = "Artifact", + Customized = "Customized", + Default = "Default" +} + // @public export enum KnownCopyBehaviorType { FlattenHierarchy = "FlattenHierarchy", @@ -4653,6 +4736,11 @@ export enum KnownSparkAuthenticationType { WindowsAzureHDInsightService = "WindowsAzureHDInsightService" } +// @public +export enum KnownSparkConfigurationReferenceType { + SparkConfigurationReference = "SparkConfigurationReference" +} + // @public export enum KnownSparkJobReferenceType { SparkJobDefinitionReference = "SparkJobDefinitionReference" @@ -4996,6 +5084,11 @@ export interface ManagedIdentityCredential extends Credential_2 { type: "ManagedIdentity"; } +// @public +export interface ManagedIdentityCredentialResource extends SubResource { + properties: ManagedIdentityCredential; +} + // @public export interface ManagedIntegrationRuntime extends IntegrationRuntime { computeProperties?: IntegrationRuntimeComputeProperties; @@ -5859,6 +5952,12 @@ export interface PipelineElapsedTimeMetricPolicy { duration?: any; } +// @public +export interface PipelineExternalComputeScaleProperties { + [property: string]: any; + timeToLive?: number; +} + // @public export interface PipelineFolder { name?: string; @@ -7140,7 +7239,7 @@ export interface SnowflakeSink extends CopySink { // @public export interface SnowflakeSource extends CopySource { - exportSettings?: SnowflakeExportCopyCommand; + exportSettings: SnowflakeExportCopyCommand; query?: any; type: "SnowflakeSource"; } @@ -7148,6 +7247,15 @@ export interface SnowflakeSource extends CopySource { // @public export type SparkAuthenticationType = string; +// @public +export interface SparkConfigurationParametrizationReference { + referenceName: any; + type: SparkConfigurationReferenceType; +} + +// @public +export type SparkConfigurationReferenceType = string; + // @public export type SparkJobReferenceType = string; @@ -7653,15 +7761,21 @@ export interface SynapseSparkJobDefinitionActivity extends ExecutionActivity { arguments?: any[]; className?: any; conf?: any; + configurationType?: ConfigurationType; driverSize?: any; executorSize?: any; file?: any; files?: any[]; filesV2?: any[]; - numExecutors?: number; + numExecutors?: any; pythonCodeReference?: any[]; + scanFolder?: any; + sparkConfig?: { + [propertyName: string]: any; + }; sparkJob: SynapseSparkJobReference; targetBigDataPool?: BigDataPoolParametrizationReference; + targetSparkConfiguration?: SparkConfigurationParametrizationReference; type: "SparkJob"; } @@ -7898,13 +8012,13 @@ export type TriggerRuntimeState = string; // @public export interface Triggers { - beginStart(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersStartOptionalParams): Promise, void>>; + beginStart(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersStartOptionalParams): Promise, void>>; beginStartAndWait(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersStartOptionalParams): Promise; - beginStop(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersStopOptionalParams): Promise, void>>; + beginStop(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersStopOptionalParams): Promise, void>>; beginStopAndWait(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersStopOptionalParams): Promise; - beginSubscribeToEvents(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersSubscribeToEventsOptionalParams): Promise, TriggersSubscribeToEventsResponse>>; + beginSubscribeToEvents(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersSubscribeToEventsOptionalParams): Promise, TriggersSubscribeToEventsResponse>>; beginSubscribeToEventsAndWait(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersSubscribeToEventsOptionalParams): Promise; - beginUnsubscribeFromEvents(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersUnsubscribeFromEventsOptionalParams): Promise, TriggersUnsubscribeFromEventsResponse>>; + beginUnsubscribeFromEvents(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersUnsubscribeFromEventsOptionalParams): Promise, TriggersUnsubscribeFromEventsResponse>>; beginUnsubscribeFromEventsAndWait(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersUnsubscribeFromEventsOptionalParams): Promise; createOrUpdate(resourceGroupName: string, factoryName: string, triggerName: string, trigger: TriggerResource, options?: TriggersCreateOrUpdateOptionalParams): Promise; delete(resourceGroupName: string, factoryName: string, triggerName: string, options?: TriggersDeleteOptionalParams): Promise; diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..f4d4a90044a6 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsCreateOrUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ManagedIdentityCredentialResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a credential. + * + * @summary Creates or updates a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json + */ +async function credentialsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credentials: ManagedIdentityCredentialResource = { + properties: { + type: "ManagedIdentity", + resourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami" + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.createOrUpdate( + resourceGroupName, + factoryName, + credentialName, + credentials + ); + console.log(result); +} + +async function main() { + credentialsCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts new file mode 100644 index 000000000000..672338070cd0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a credential. + * + * @summary Deletes a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json + */ +async function credentialsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.delete( + resourceGroupName, + factoryName, + credentialName + ); + console.log(result); +} + +async function main() { + credentialsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts new file mode 100644 index 000000000000..358766c0d835 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a credential. + * + * @summary Gets a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json + */ +async function credentialsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.get( + resourceGroupName, + factoryName, + credentialName + ); + console.log(result); +} + +async function main() { + credentialsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts new file mode 100644 index 000000000000..06ac70e7da84 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples-dev/credentialOperationsListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List credentials. + * + * @summary List credentials. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json + */ +async function credentialsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.credentialOperations.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + credentialsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/README.md b/sdk/datafactory/arm-datafactory/samples/v11/javascript/README.md new file mode 100644 index 000000000000..18a6fee48df2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/README.md @@ -0,0 +1,238 @@ +# client library samples for JavaScript + +These sample programs show how to use the JavaScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [activityRunsQueryByPipelineRunSample.js][activityrunsquerybypipelinerunsample] | Query activity runs based on input filter conditions. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json | +| [credentialOperationsCreateOrUpdateSample.js][credentialoperationscreateorupdatesample] | Creates or updates a credential. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json | +| [credentialOperationsDeleteSample.js][credentialoperationsdeletesample] | Deletes a credential. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json | +| [credentialOperationsGetSample.js][credentialoperationsgetsample] | Gets a credential. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json | +| [credentialOperationsListByFactorySample.js][credentialoperationslistbyfactorysample] | List credentials. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json | +| [dataFlowDebugSessionAddDataFlowSample.js][dataflowdebugsessionadddataflowsample] | Add a data flow into debug session. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json | +| [dataFlowDebugSessionCreateSample.js][dataflowdebugsessioncreatesample] | Creates a data flow debug session. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json | +| [dataFlowDebugSessionDeleteSample.js][dataflowdebugsessiondeletesample] | Deletes a data flow debug session. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json | +| [dataFlowDebugSessionExecuteCommandSample.js][dataflowdebugsessionexecutecommandsample] | Execute a data flow debug command. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json | +| [dataFlowDebugSessionQueryByFactorySample.js][dataflowdebugsessionquerybyfactorysample] | Query all active data flow debug sessions. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json | +| [dataFlowsCreateOrUpdateSample.js][dataflowscreateorupdatesample] | Creates or updates a data flow. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json | +| [dataFlowsDeleteSample.js][dataflowsdeletesample] | Deletes a data flow. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json | +| [dataFlowsGetSample.js][dataflowsgetsample] | Gets a data flow. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json | +| [dataFlowsListByFactorySample.js][dataflowslistbyfactorysample] | Lists data flows. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json | +| [datasetsCreateOrUpdateSample.js][datasetscreateorupdatesample] | Creates or updates a dataset. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json | +| [datasetsDeleteSample.js][datasetsdeletesample] | Deletes a dataset. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json | +| [datasetsGetSample.js][datasetsgetsample] | Gets a dataset. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json | +| [datasetsListByFactorySample.js][datasetslistbyfactorysample] | Lists datasets. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json | +| [exposureControlGetFeatureValueByFactorySample.js][exposurecontrolgetfeaturevaluebyfactorysample] | Get exposure control feature for specific factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json | +| [exposureControlGetFeatureValueSample.js][exposurecontrolgetfeaturevaluesample] | Get exposure control feature for specific location. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json | +| [exposureControlQueryFeatureValuesByFactorySample.js][exposurecontrolqueryfeaturevaluesbyfactorysample] | Get list of exposure control features for specific factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json | +| [factoriesConfigureFactoryRepoSample.js][factoriesconfigurefactoryreposample] | Updates a factory's repo information. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json | +| [factoriesCreateOrUpdateSample.js][factoriescreateorupdatesample] | Creates or updates a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json | +| [factoriesDeleteSample.js][factoriesdeletesample] | Deletes a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json | +| [factoriesGetDataPlaneAccessSample.js][factoriesgetdataplaneaccesssample] | Get Data Plane access. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json | +| [factoriesGetGitHubAccessTokenSample.js][factoriesgetgithubaccesstokensample] | Get GitHub Access Token. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json | +| [factoriesGetSample.js][factoriesgetsample] | Gets a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json | +| [factoriesListByResourceGroupSample.js][factorieslistbyresourcegroupsample] | Lists factories. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json | +| [factoriesListSample.js][factorieslistsample] | Lists factories under the specified subscription. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json | +| [factoriesUpdateSample.js][factoriesupdatesample] | Updates a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json | +| [globalParametersCreateOrUpdateSample.js][globalparameterscreateorupdatesample] | Creates or updates a Global parameter x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json | +| [globalParametersDeleteSample.js][globalparametersdeletesample] | Deletes a Global parameter x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json | +| [globalParametersGetSample.js][globalparametersgetsample] | Gets a Global parameter x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json | +| [globalParametersListByFactorySample.js][globalparameterslistbyfactorysample] | Lists Global parameters x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json | +| [integrationRuntimeNodesDeleteSample.js][integrationruntimenodesdeletesample] | Deletes a self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json | +| [integrationRuntimeNodesGetIPAddressSample.js][integrationruntimenodesgetipaddresssample] | Get the IP address of self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json | +| [integrationRuntimeNodesGetSample.js][integrationruntimenodesgetsample] | Gets a self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json | +| [integrationRuntimeNodesUpdateSample.js][integrationruntimenodesupdatesample] | Updates a self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json | +| [integrationRuntimeObjectMetadataGetSample.js][integrationruntimeobjectmetadatagetsample] | Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json | +| [integrationRuntimeObjectMetadataRefreshSample.js][integrationruntimeobjectmetadatarefreshsample] | Refresh a SSIS integration runtime object metadata. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json | +| [integrationRuntimesCreateLinkedIntegrationRuntimeSample.js][integrationruntimescreatelinkedintegrationruntimesample] | Create a linked integration runtime entry in a shared integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json | +| [integrationRuntimesCreateOrUpdateSample.js][integrationruntimescreateorupdatesample] | Creates or updates an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json | +| [integrationRuntimesDeleteSample.js][integrationruntimesdeletesample] | Deletes an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json | +| [integrationRuntimesGetConnectionInfoSample.js][integrationruntimesgetconnectioninfosample] | Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json | +| [integrationRuntimesGetMonitoringDataSample.js][integrationruntimesgetmonitoringdatasample] | Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json | +| [integrationRuntimesGetSample.js][integrationruntimesgetsample] | Gets an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json | +| [integrationRuntimesGetStatusSample.js][integrationruntimesgetstatussample] | Gets detailed status information for an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json | +| [integrationRuntimesListAuthKeysSample.js][integrationruntimeslistauthkeyssample] | Retrieves the authentication keys for an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json | +| [integrationRuntimesListByFactorySample.js][integrationruntimeslistbyfactorysample] | Lists integration runtimes. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json | +| [integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.js][integrationruntimeslistoutboundnetworkdependenciesendpointssample] | Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json | +| [integrationRuntimesRegenerateAuthKeySample.js][integrationruntimesregenerateauthkeysample] | Regenerates the authentication key for an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json | +| [integrationRuntimesRemoveLinksSample.js][integrationruntimesremovelinkssample] | Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json | +| [integrationRuntimesStartSample.js][integrationruntimesstartsample] | Starts a ManagedReserved type integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json | +| [integrationRuntimesStopSample.js][integrationruntimesstopsample] | Stops a ManagedReserved type integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json | +| [integrationRuntimesSyncCredentialsSample.js][integrationruntimessynccredentialssample] | Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json | +| [integrationRuntimesUpdateSample.js][integrationruntimesupdatesample] | Updates an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json | +| [integrationRuntimesUpgradeSample.js][integrationruntimesupgradesample] | Upgrade self-hosted integration runtime to latest version if availability. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json | +| [linkedServicesCreateOrUpdateSample.js][linkedservicescreateorupdatesample] | Creates or updates a linked service. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json | +| [linkedServicesDeleteSample.js][linkedservicesdeletesample] | Deletes a linked service. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json | +| [linkedServicesGetSample.js][linkedservicesgetsample] | Gets a linked service. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json | +| [linkedServicesListByFactorySample.js][linkedserviceslistbyfactorysample] | Lists linked services. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json | +| [managedPrivateEndpointsCreateOrUpdateSample.js][managedprivateendpointscreateorupdatesample] | Creates or updates a managed private endpoint. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json | +| [managedPrivateEndpointsDeleteSample.js][managedprivateendpointsdeletesample] | Deletes a managed private endpoint. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json | +| [managedPrivateEndpointsGetSample.js][managedprivateendpointsgetsample] | Gets a managed private endpoint. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json | +| [managedPrivateEndpointsListByFactorySample.js][managedprivateendpointslistbyfactorysample] | Lists managed private endpoints. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json | +| [managedVirtualNetworksCreateOrUpdateSample.js][managedvirtualnetworkscreateorupdatesample] | Creates or updates a managed Virtual Network. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json | +| [managedVirtualNetworksGetSample.js][managedvirtualnetworksgetsample] | Gets a managed Virtual Network. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json | +| [managedVirtualNetworksListByFactorySample.js][managedvirtualnetworkslistbyfactorysample] | Lists managed Virtual Networks. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json | +| [operationsListSample.js][operationslistsample] | Lists the available Azure Data Factory API operations. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json | +| [pipelineRunsCancelSample.js][pipelinerunscancelsample] | Cancel a pipeline run by its run ID. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json | +| [pipelineRunsGetSample.js][pipelinerunsgetsample] | Get a pipeline run by its run ID. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json | +| [pipelineRunsQueryByFactorySample.js][pipelinerunsquerybyfactorysample] | Query pipeline runs in the factory based on input filter conditions. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json | +| [pipelinesCreateOrUpdateSample.js][pipelinescreateorupdatesample] | Creates or updates a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json | +| [pipelinesCreateRunSample.js][pipelinescreaterunsample] | Creates a run of a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json | +| [pipelinesDeleteSample.js][pipelinesdeletesample] | Deletes a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json | +| [pipelinesGetSample.js][pipelinesgetsample] | Gets a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json | +| [pipelinesListByFactorySample.js][pipelineslistbyfactorysample] | Lists pipelines. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json | +| [privateEndPointConnectionsListByFactorySample.js][privateendpointconnectionslistbyfactorysample] | Lists Private endpoint connections x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json | +| [privateEndpointConnectionCreateOrUpdateSample.js][privateendpointconnectioncreateorupdatesample] | Approves or rejects a private endpoint connection x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json | +| [privateEndpointConnectionDeleteSample.js][privateendpointconnectiondeletesample] | Deletes a private endpoint connection x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionGetSample.js][privateendpointconnectiongetsample] | Gets a private endpoint connection x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json | +| [privateLinkResourcesGetSample.js][privatelinkresourcesgetsample] | Gets the private link resources x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json | +| [triggerRunsCancelSample.js][triggerrunscancelsample] | Cancel a single trigger instance by runId. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json | +| [triggerRunsQueryByFactorySample.js][triggerrunsquerybyfactorysample] | Query trigger runs. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json | +| [triggerRunsRerunSample.js][triggerrunsrerunsample] | Rerun single trigger instance by runId. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json | +| [triggersCreateOrUpdateSample.js][triggerscreateorupdatesample] | Creates or updates a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json | +| [triggersDeleteSample.js][triggersdeletesample] | Deletes a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json | +| [triggersGetEventSubscriptionStatusSample.js][triggersgeteventsubscriptionstatussample] | Get a trigger's event subscription status. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json | +| [triggersGetSample.js][triggersgetsample] | Gets a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json | +| [triggersListByFactorySample.js][triggerslistbyfactorysample] | Lists triggers. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json | +| [triggersQueryByFactorySample.js][triggersquerybyfactorysample] | Query triggers. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json | +| [triggersStartSample.js][triggersstartsample] | Starts a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json | +| [triggersStopSample.js][triggersstopsample] | Stops a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json | +| [triggersSubscribeToEventsSample.js][triggerssubscribetoeventssample] | Subscribe event trigger to events. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json | +| [triggersUnsubscribeFromEventsSample.js][triggersunsubscribefromeventssample] | Unsubscribe event trigger from events. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +3. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node activityRunsQueryByPipelineRunSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env DATAFACTORY_SUBSCRIPTION_ID="" DATAFACTORY_RESOURCE_GROUP="" node activityRunsQueryByPipelineRunSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[activityrunsquerybypipelinerunsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/activityRunsQueryByPipelineRunSample.js +[credentialoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsCreateOrUpdateSample.js +[credentialoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsDeleteSample.js +[credentialoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsGetSample.js +[credentialoperationslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsListByFactorySample.js +[dataflowdebugsessionadddataflowsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionAddDataFlowSample.js +[dataflowdebugsessioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionCreateSample.js +[dataflowdebugsessiondeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionDeleteSample.js +[dataflowdebugsessionexecutecommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionExecuteCommandSample.js +[dataflowdebugsessionquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionQueryByFactorySample.js +[dataflowscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsCreateOrUpdateSample.js +[dataflowsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsDeleteSample.js +[dataflowsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsGetSample.js +[dataflowslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsListByFactorySample.js +[datasetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsCreateOrUpdateSample.js +[datasetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsDeleteSample.js +[datasetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsGetSample.js +[datasetslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsListByFactorySample.js +[exposurecontrolgetfeaturevaluebyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueByFactorySample.js +[exposurecontrolgetfeaturevaluesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueSample.js +[exposurecontrolqueryfeaturevaluesbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlQueryFeatureValuesByFactorySample.js +[factoriesconfigurefactoryreposample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesConfigureFactoryRepoSample.js +[factoriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesCreateOrUpdateSample.js +[factoriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesDeleteSample.js +[factoriesgetdataplaneaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetDataPlaneAccessSample.js +[factoriesgetgithubaccesstokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetGitHubAccessTokenSample.js +[factoriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetSample.js +[factorieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListByResourceGroupSample.js +[factorieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListSample.js +[factoriesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesUpdateSample.js +[globalparameterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersCreateOrUpdateSample.js +[globalparametersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersDeleteSample.js +[globalparametersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersGetSample.js +[globalparameterslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersListByFactorySample.js +[integrationruntimenodesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesDeleteSample.js +[integrationruntimenodesgetipaddresssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetIPAddressSample.js +[integrationruntimenodesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetSample.js +[integrationruntimenodesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesUpdateSample.js +[integrationruntimeobjectmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataGetSample.js +[integrationruntimeobjectmetadatarefreshsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataRefreshSample.js +[integrationruntimescreatelinkedintegrationruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateLinkedIntegrationRuntimeSample.js +[integrationruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateOrUpdateSample.js +[integrationruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesDeleteSample.js +[integrationruntimesgetconnectioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetConnectionInfoSample.js +[integrationruntimesgetmonitoringdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetMonitoringDataSample.js +[integrationruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetSample.js +[integrationruntimesgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetStatusSample.js +[integrationruntimeslistauthkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListAuthKeysSample.js +[integrationruntimeslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListByFactorySample.js +[integrationruntimeslistoutboundnetworkdependenciesendpointssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.js +[integrationruntimesregenerateauthkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRegenerateAuthKeySample.js +[integrationruntimesremovelinkssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRemoveLinksSample.js +[integrationruntimesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStartSample.js +[integrationruntimesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStopSample.js +[integrationruntimessynccredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesSyncCredentialsSample.js +[integrationruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpdateSample.js +[integrationruntimesupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpgradeSample.js +[linkedservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesCreateOrUpdateSample.js +[linkedservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesDeleteSample.js +[linkedservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesGetSample.js +[linkedserviceslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesListByFactorySample.js +[managedprivateendpointscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsCreateOrUpdateSample.js +[managedprivateendpointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsDeleteSample.js +[managedprivateendpointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsGetSample.js +[managedprivateendpointslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsListByFactorySample.js +[managedvirtualnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksCreateOrUpdateSample.js +[managedvirtualnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksGetSample.js +[managedvirtualnetworkslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksListByFactorySample.js +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/operationsListSample.js +[pipelinerunscancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsCancelSample.js +[pipelinerunsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsGetSample.js +[pipelinerunsquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsQueryByFactorySample.js +[pipelinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateOrUpdateSample.js +[pipelinescreaterunsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateRunSample.js +[pipelinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesDeleteSample.js +[pipelinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesGetSample.js +[pipelineslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesListByFactorySample.js +[privateendpointconnectionslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndPointConnectionsListByFactorySample.js +[privateendpointconnectioncreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionCreateOrUpdateSample.js +[privateendpointconnectiondeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionDeleteSample.js +[privateendpointconnectiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionGetSample.js +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateLinkResourcesGetSample.js +[triggerrunscancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsCancelSample.js +[triggerrunsquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsQueryByFactorySample.js +[triggerrunsrerunsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsRerunSample.js +[triggerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersCreateOrUpdateSample.js +[triggersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersDeleteSample.js +[triggersgeteventsubscriptionstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetEventSubscriptionStatusSample.js +[triggersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetSample.js +[triggerslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersListByFactorySample.js +[triggersquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersQueryByFactorySample.js +[triggersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStartSample.js +[triggersstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStopSample.js +[triggerssubscribetoeventssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersSubscribeToEventsSample.js +[triggersunsubscribefromeventssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersUnsubscribeFromEventsSample.js +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory/README.md diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/activityRunsQueryByPipelineRunSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/activityRunsQueryByPipelineRunSample.js new file mode 100644 index 000000000000..d307d3cad00b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/activityRunsQueryByPipelineRunSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Query activity runs based on input filter conditions. + * + * @summary Query activity runs based on input filter conditions. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json + */ +async function activityRunsQueryByPipelineRun() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const filterParameters = { + lastUpdatedAfter: new Date("2018-06-16T00:36:44.3345758Z"), + lastUpdatedBefore: new Date("2018-06-16T00:49:48.3686473Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.activityRuns.queryByPipelineRun( + resourceGroupName, + factoryName, + runId, + filterParameters + ); + console.log(result); +} + +async function main() { + activityRunsQueryByPipelineRun(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsCreateOrUpdateSample.js new file mode 100644 index 000000000000..8c2224bd2f86 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsCreateOrUpdateSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a credential. + * + * @summary Creates or updates a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json + */ +async function credentialsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credentials = { + properties: { + type: "ManagedIdentity", + resourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.createOrUpdate( + resourceGroupName, + factoryName, + credentialName, + credentials + ); + console.log(result); +} + +async function main() { + credentialsCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsDeleteSample.js new file mode 100644 index 000000000000..871b5428ddca --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a credential. + * + * @summary Deletes a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json + */ +async function credentialsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.delete( + resourceGroupName, + factoryName, + credentialName + ); + console.log(result); +} + +async function main() { + credentialsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsGetSample.js new file mode 100644 index 000000000000..4fe1dbe95d8d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a credential. + * + * @summary Gets a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json + */ +async function credentialsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.get( + resourceGroupName, + factoryName, + credentialName + ); + console.log(result); +} + +async function main() { + credentialsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsListByFactorySample.js new file mode 100644 index 000000000000..4369f76e0fdc --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/credentialOperationsListByFactorySample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to List credentials. + * + * @summary List credentials. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json + */ +async function credentialsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.credentialOperations.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + credentialsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionAddDataFlowSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionAddDataFlowSample.js new file mode 100644 index 000000000000..edd5027e230e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionAddDataFlowSample.js @@ -0,0 +1,105 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Add a data flow into debug session. + * + * @summary Add a data flow into debug session. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json + */ +async function dataFlowDebugSessionAddDataFlow() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request = { + dataFlow: { + name: "dataflow1", + properties: { + type: "MappingDataFlow", + script: + "\n\nsource(output(\n\t\tColumn_1 as string\n\t),\n\tallowSchemaDrift: true,\n\tvalidateSchema: false) ~> source1", + sinks: [], + sources: [ + { + name: "source1", + dataset: { + type: "DatasetReference", + referenceName: "DelimitedText2", + }, + }, + ], + transformations: [], + }, + }, + datasets: [ + { + name: "dataset1", + properties: { + type: "DelimitedText", + schema: [{ type: "String" }], + annotations: [], + columnDelimiter: ",", + escapeChar: "\\", + firstRowAsHeader: true, + linkedServiceName: { + type: "LinkedServiceReference", + referenceName: "linkedService5", + }, + location: { + type: "AzureBlobStorageLocation", + container: "dataflow-sample-data", + fileName: "Ansiencoding.csv", + }, + quoteChar: '"', + }, + }, + ], + debugSettings: { + datasetParameters: { Movies: { path: "abc" }, Output: { time: "def" } }, + parameters: { sourcePath: "Toy" }, + sourceSettings: [ + { rowLimit: 1000, sourceName: "source1" }, + { rowLimit: 222, sourceName: "source2" }, + ], + }, + linkedServices: [ + { + name: "linkedService1", + properties: { + type: "AzureBlobStorage", + annotations: [], + connectionString: + "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;", + encryptedCredential: "", + }, + }, + ], + sessionId: "f06ed247-9d07-49b2-b05e-2cb4a2fc871e", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.addDataFlow( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionAddDataFlow(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionCreateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionCreateSample.js new file mode 100644 index 000000000000..96017c4574cb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionCreateSample.js @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a data flow debug session. + * + * @summary Creates a data flow debug session. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json + */ +async function dataFlowDebugSessionCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request = { + integrationRuntime: { + name: "ir1", + properties: { + type: "Managed", + computeProperties: { + dataFlowProperties: { + computeType: "General", + coreCount: 48, + timeToLive: 10, + }, + location: "AutoResolve", + }, + }, + }, + timeToLive: 60, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.beginCreateAndWait( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionDeleteSample.js new file mode 100644 index 000000000000..8372502c8f40 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionDeleteSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a data flow debug session. + * + * @summary Deletes a data flow debug session. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json + */ +async function dataFlowDebugSessionDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request = { + sessionId: "91fb57e0-8292-47be-89ff-c8f2d2bb2a7e", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.delete(resourceGroupName, factoryName, request); + console.log(result); +} + +async function main() { + dataFlowDebugSessionDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionExecuteCommandSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionExecuteCommandSample.js new file mode 100644 index 000000000000..b691641f22cb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionExecuteCommandSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Execute a data flow debug command. + * + * @summary Execute a data flow debug command. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json + */ +async function dataFlowDebugSessionExecuteCommand() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request = { + command: "executePreviewQuery", + commandPayload: { rowLimits: 100, streamName: "source1" }, + sessionId: "f06ed247-9d07-49b2-b05e-2cb4a2fc871e", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.beginExecuteCommandAndWait( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionExecuteCommand(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionQueryByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionQueryByFactorySample.js new file mode 100644 index 000000000000..7e5716dfc9b1 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowDebugSessionQueryByFactorySample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Query all active data flow debug sessions. + * + * @summary Query all active data flow debug sessions. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json + */ +async function dataFlowDebugSessionQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataFlowDebugSession.listQueryByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataFlowDebugSessionQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsCreateOrUpdateSample.js new file mode 100644 index 000000000000..e3791d2a3ac9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsCreateOrUpdateSample.js @@ -0,0 +1,180 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a data flow. + * + * @summary Creates or updates a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json + */ +async function dataFlowsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const dataFlow = { + properties: { + type: "MappingDataFlow", + description: + "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.", + scriptLines: [ + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: false,", + "validateSchema: false) ~> USDCurrency", + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: true,", + "validateSchema: false) ~> CADSource", + "USDCurrency, CADSource union(byName: true)~> Union", + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", + "NewCurrencyColumn split(Country == 'USD',", + "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink", + ], + sinks: [ + { + name: "USDSink", + dataset: { type: "DatasetReference", referenceName: "USDOutput" }, + }, + { + name: "CADSink", + dataset: { type: "DatasetReference", referenceName: "CADOutput" }, + }, + ], + sources: [ + { + name: "USDCurrency", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetUSD", + }, + }, + { + name: "CADSource", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetCAD", + }, + }, + ], + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.createOrUpdate( + resourceGroupName, + factoryName, + dataFlowName, + dataFlow + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a data flow. + * + * @summary Creates or updates a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json + */ +async function dataFlowsUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const dataFlow = { + properties: { + type: "MappingDataFlow", + description: + "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.", + scriptLines: [ + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: false,", + "validateSchema: false) ~> USDCurrency", + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: true,", + "validateSchema: false) ~> CADSource", + "USDCurrency, CADSource union(byName: true)~> Union", + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", + "NewCurrencyColumn split(Country == 'USD',", + "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink", + ], + sinks: [ + { + name: "USDSink", + dataset: { type: "DatasetReference", referenceName: "USDOutput" }, + }, + { + name: "CADSink", + dataset: { type: "DatasetReference", referenceName: "CADOutput" }, + }, + ], + sources: [ + { + name: "USDCurrency", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetUSD", + }, + }, + { + name: "CADSource", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetCAD", + }, + }, + ], + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.createOrUpdate( + resourceGroupName, + factoryName, + dataFlowName, + dataFlow + ); + console.log(result); +} + +async function main() { + dataFlowsCreate(); + dataFlowsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsDeleteSample.js new file mode 100644 index 000000000000..be1bb16150b0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsDeleteSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a data flow. + * + * @summary Deletes a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json + */ +async function dataFlowsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.delete(resourceGroupName, factoryName, dataFlowName); + console.log(result); +} + +async function main() { + dataFlowsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsGetSample.js new file mode 100644 index 000000000000..5db9955bf489 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a data flow. + * + * @summary Gets a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json + */ +async function dataFlowsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.get(resourceGroupName, factoryName, dataFlowName); + console.log(result); +} + +async function main() { + dataFlowsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsListByFactorySample.js new file mode 100644 index 000000000000..4b5956c2c048 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/dataFlowsListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists data flows. + * + * @summary Lists data flows. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json + */ +async function dataFlowsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataFlows.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataFlowsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsCreateOrUpdateSample.js new file mode 100644 index 000000000000..d605a9ee8f7c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsCreateOrUpdateSample.js @@ -0,0 +1,99 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a dataset. + * + * @summary Creates or updates a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json + */ +async function datasetsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const dataset = { + properties: { + type: "AzureBlob", + format: { type: "TextFormat" }, + fileName: { type: "Expression", value: "@dataset().MyFileName" }, + folderPath: { type: "Expression", value: "@dataset().MyFolderPath" }, + linkedServiceName: { + type: "LinkedServiceReference", + referenceName: "exampleLinkedService", + }, + parameters: { + myFileName: { type: "String" }, + myFolderPath: { type: "String" }, + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.createOrUpdate( + resourceGroupName, + factoryName, + datasetName, + dataset + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a dataset. + * + * @summary Creates or updates a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json + */ +async function datasetsUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const dataset = { + properties: { + type: "AzureBlob", + format: { type: "TextFormat" }, + description: "Example description", + fileName: { type: "Expression", value: "@dataset().MyFileName" }, + folderPath: { type: "Expression", value: "@dataset().MyFolderPath" }, + linkedServiceName: { + type: "LinkedServiceReference", + referenceName: "exampleLinkedService", + }, + parameters: { + myFileName: { type: "String" }, + myFolderPath: { type: "String" }, + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.createOrUpdate( + resourceGroupName, + factoryName, + datasetName, + dataset + ); + console.log(result); +} + +async function main() { + datasetsCreate(); + datasetsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsDeleteSample.js new file mode 100644 index 000000000000..055aa4d1bf4f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsDeleteSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a dataset. + * + * @summary Deletes a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json + */ +async function datasetsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.delete(resourceGroupName, factoryName, datasetName); + console.log(result); +} + +async function main() { + datasetsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsGetSample.js new file mode 100644 index 000000000000..0dded9509dbb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a dataset. + * + * @summary Gets a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json + */ +async function datasetsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.get(resourceGroupName, factoryName, datasetName); + console.log(result); +} + +async function main() { + datasetsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsListByFactorySample.js new file mode 100644 index 000000000000..713eeb24082f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/datasetsListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists datasets. + * + * @summary Lists datasets. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json + */ +async function datasetsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.datasets.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + datasetsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueByFactorySample.js new file mode 100644 index 000000000000..879f4a1f9af4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueByFactorySample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get exposure control feature for specific factory. + * + * @summary Get exposure control feature for specific factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json + */ +async function exposureControlGetFeatureValueByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const exposureControlRequest = { + featureName: "ADFIntegrationRuntimeSharingRbac", + featureType: "Feature", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.exposureControl.getFeatureValueByFactory( + resourceGroupName, + factoryName, + exposureControlRequest + ); + console.log(result); +} + +async function main() { + exposureControlGetFeatureValueByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueSample.js new file mode 100644 index 000000000000..18b2b8cc5be4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlGetFeatureValueSample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get exposure control feature for specific location. + * + * @summary Get exposure control feature for specific location. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json + */ +async function exposureControlGetFeatureValue() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const locationId = "WestEurope"; + const exposureControlRequest = { + featureName: "ADFIntegrationRuntimeSharingRbac", + featureType: "Feature", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.exposureControl.getFeatureValue(locationId, exposureControlRequest); + console.log(result); +} + +async function main() { + exposureControlGetFeatureValue(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlQueryFeatureValuesByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlQueryFeatureValuesByFactorySample.js new file mode 100644 index 000000000000..bed4485bb2b5 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/exposureControlQueryFeatureValuesByFactorySample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get list of exposure control features for specific factory. + * + * @summary Get list of exposure control features for specific factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json + */ +async function exposureControlQueryFeatureValuesByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const exposureControlBatchRequest = { + exposureControlRequests: [ + { + featureName: "ADFIntegrationRuntimeSharingRbac", + featureType: "Feature", + }, + { featureName: "ADFSampleFeature", featureType: "Feature" }, + ], + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.exposureControl.queryFeatureValuesByFactory( + resourceGroupName, + factoryName, + exposureControlBatchRequest + ); + console.log(result); +} + +async function main() { + exposureControlQueryFeatureValuesByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesConfigureFactoryRepoSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesConfigureFactoryRepoSample.js new file mode 100644 index 000000000000..902157f562b4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesConfigureFactoryRepoSample.js @@ -0,0 +1,49 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates a factory's repo information. + * + * @summary Updates a factory's repo information. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json + */ +async function factoriesConfigureFactoryRepo() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const locationId = "East US"; + const factoryRepoUpdate = { + factoryResourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName", + repoConfiguration: { + type: "FactoryVSTSConfiguration", + accountName: "ADF", + collaborationBranch: "master", + lastCommitId: "", + projectName: "project", + repositoryName: "repo", + rootFolder: "/", + tenantId: "", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.configureFactoryRepo(locationId, factoryRepoUpdate); + console.log(result); +} + +async function main() { + factoriesConfigureFactoryRepo(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesCreateOrUpdateSample.js new file mode 100644 index 000000000000..a0bca9eb58b6 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesCreateOrUpdateSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a factory. + * + * @summary Creates or updates a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json + */ +async function factoriesCreateOrUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const factory = { location: "East US" }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.createOrUpdate(resourceGroupName, factoryName, factory); + console.log(result); +} + +async function main() { + factoriesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesDeleteSample.js new file mode 100644 index 000000000000..dadff32e1e90 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesDeleteSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a factory. + * + * @summary Deletes a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json + */ +async function factoriesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.delete(resourceGroupName, factoryName); + console.log(result); +} + +async function main() { + factoriesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetDataPlaneAccessSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetDataPlaneAccessSample.js new file mode 100644 index 000000000000..ec761d7f7452 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetDataPlaneAccessSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get Data Plane access. + * + * @summary Get Data Plane access. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json + */ +async function factoriesGetDataPlaneAccess() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const policy = { + accessResourcePath: "", + expireTime: "2018-11-10T09:46:20.2659347Z", + permissions: "r", + profileName: "DefaultProfile", + startTime: "2018-11-10T02:46:20.2659347Z", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.getDataPlaneAccess(resourceGroupName, factoryName, policy); + console.log(result); +} + +async function main() { + factoriesGetDataPlaneAccess(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetGitHubAccessTokenSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetGitHubAccessTokenSample.js new file mode 100644 index 000000000000..c9b669fada14 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetGitHubAccessTokenSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get GitHub Access Token. + * + * @summary Get GitHub Access Token. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json + */ +async function factoriesGetGitHubAccessToken() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const gitHubAccessTokenRequest = { + gitHubAccessCode: "some", + gitHubAccessTokenBaseUrl: "some", + gitHubClientId: "some", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.getGitHubAccessToken( + resourceGroupName, + factoryName, + gitHubAccessTokenRequest + ); + console.log(result); +} + +async function main() { + factoriesGetGitHubAccessToken(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetSample.js new file mode 100644 index 000000000000..b2994cd25e45 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesGetSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a factory. + * + * @summary Gets a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json + */ +async function factoriesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.get(resourceGroupName, factoryName); + console.log(result); +} + +async function main() { + factoriesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListByResourceGroupSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListByResourceGroupSample.js new file mode 100644 index 000000000000..cc98632f3f52 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListByResourceGroupSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists factories. + * + * @summary Lists factories. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json + */ +async function factoriesListByResourceGroup() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.factories.listByResourceGroup(resourceGroupName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + factoriesListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListSample.js new file mode 100644 index 000000000000..a6fa88fce82b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists factories under the specified subscription. + * + * @summary Lists factories under the specified subscription. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json + */ +async function factoriesList() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.factories.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + factoriesList(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesUpdateSample.js new file mode 100644 index 000000000000..4f416aed3b2f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/factoriesUpdateSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates a factory. + * + * @summary Updates a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json + */ +async function factoriesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const factoryUpdateParameters = { + tags: { exampleTag: "exampleValue" }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.update( + resourceGroupName, + factoryName, + factoryUpdateParameters + ); + console.log(result); +} + +async function main() { + factoriesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersCreateOrUpdateSample.js new file mode 100644 index 000000000000..54ab497592d3 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersCreateOrUpdateSample.js @@ -0,0 +1,72 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a Global parameter + * + * @summary Creates or updates a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json + */ +async function globalParametersCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const defaultParam = { + properties: { waitTime: { type: "Int", value: 5 } }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.createOrUpdate( + resourceGroupName, + factoryName, + globalParameterName, + defaultParam + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a Global parameter + * + * @summary Creates or updates a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json + */ +async function globalParametersUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const defaultParam = { + properties: { waitTime: { type: "Int", value: 5 } }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.createOrUpdate( + resourceGroupName, + factoryName, + globalParameterName, + defaultParam + ); + console.log(result); +} + +async function main() { + globalParametersCreate(); + globalParametersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersDeleteSample.js new file mode 100644 index 000000000000..6e25deac27fd --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a Global parameter + * + * @summary Deletes a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json + */ +async function globalParametersDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.delete( + resourceGroupName, + factoryName, + globalParameterName + ); + console.log(result); +} + +async function main() { + globalParametersDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersGetSample.js new file mode 100644 index 000000000000..a56f46104dc7 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a Global parameter + * + * @summary Gets a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json + */ +async function globalParametersGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.get( + resourceGroupName, + factoryName, + globalParameterName + ); + console.log(result); +} + +async function main() { + globalParametersGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersListByFactorySample.js new file mode 100644 index 000000000000..c20f8426ed60 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/globalParametersListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists Global parameters + * + * @summary Lists Global parameters + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json + */ +async function globalParametersListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.globalParameters.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + globalParametersListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesDeleteSample.js new file mode 100644 index 000000000000..508508e36d5f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesDeleteSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a self-hosted integration runtime node. + * + * @summary Deletes a self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json + */ +async function integrationRuntimesNodesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.delete( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesNodesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetIPAddressSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetIPAddressSample.js new file mode 100644 index 000000000000..6dd256d10dea --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetIPAddressSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the IP address of self-hosted integration runtime node. + * + * @summary Get the IP address of self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json + */ +async function integrationRuntimeNodesGetIPAddress() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.getIpAddress( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName + ); + console.log(result); +} + +async function main() { + integrationRuntimeNodesGetIPAddress(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetSample.js new file mode 100644 index 000000000000..839595eb5f95 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesGetSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a self-hosted integration runtime node. + * + * @summary Gets a self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json + */ +async function integrationRuntimeNodesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.get( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName + ); + console.log(result); +} + +async function main() { + integrationRuntimeNodesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesUpdateSample.js new file mode 100644 index 000000000000..baa27774cd79 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeNodesUpdateSample.js @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates a self-hosted integration runtime node. + * + * @summary Updates a self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json + */ +async function integrationRuntimeNodesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const updateIntegrationRuntimeNodeRequest = { + concurrentJobsLimit: 2, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.update( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName, + updateIntegrationRuntimeNodeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimeNodesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataGetSample.js new file mode 100644 index 000000000000..c494ab4c44ce --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataGetSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @summary Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json + */ +async function integrationRuntimeObjectMetadataGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "testactivityv2"; + const getMetadataRequest = { + metadataPath: "ssisFolders", + }; + const options = { + getMetadataRequest, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeObjectMetadata.get( + resourceGroupName, + factoryName, + integrationRuntimeName, + options + ); + console.log(result); +} + +async function main() { + integrationRuntimeObjectMetadataGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataRefreshSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataRefreshSample.js new file mode 100644 index 000000000000..cbc98c900cc8 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimeObjectMetadataRefreshSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Refresh a SSIS integration runtime object metadata. + * + * @summary Refresh a SSIS integration runtime object metadata. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json + */ +async function integrationRuntimeObjectMetadataRefresh() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "testactivityv2"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeObjectMetadata.beginRefreshAndWait( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimeObjectMetadataRefresh(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateLinkedIntegrationRuntimeSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateLinkedIntegrationRuntimeSample.js new file mode 100644 index 000000000000..4af9fa5469dd --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateLinkedIntegrationRuntimeSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Create a linked integration runtime entry in a shared integration runtime. + * + * @summary Create a linked integration runtime entry in a shared integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json + */ +async function integrationRuntimesCreateLinkedIntegrationRuntime() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const createLinkedIntegrationRuntimeRequest = { + name: "bfa92911-9fb6-4fbe-8f23-beae87bc1c83", + dataFactoryLocation: "West US", + dataFactoryName: "e9955d6d-56ea-4be3-841c-52a12c1a9981", + subscriptionId: "061774c7-4b5a-4159-a55b-365581830283", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.createLinkedIntegrationRuntime( + resourceGroupName, + factoryName, + integrationRuntimeName, + createLinkedIntegrationRuntimeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimesCreateLinkedIntegrationRuntime(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateOrUpdateSample.js new file mode 100644 index 000000000000..157d7ae72b8a --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesCreateOrUpdateSample.js @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates an integration runtime. + * + * @summary Creates or updates an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json + */ +async function integrationRuntimesCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const integrationRuntime = { + properties: { + type: "SelfHosted", + description: "A selfhosted integration runtime", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.createOrUpdate( + resourceGroupName, + factoryName, + integrationRuntimeName, + integrationRuntime + ); + console.log(result); +} + +async function main() { + integrationRuntimesCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesDeleteSample.js new file mode 100644 index 000000000000..0e7c08105b65 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes an integration runtime. + * + * @summary Deletes an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json + */ +async function integrationRuntimesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.delete( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetConnectionInfoSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetConnectionInfoSample.js new file mode 100644 index 000000000000..5f80fcf5d001 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetConnectionInfoSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * + * @summary Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json + */ +async function integrationRuntimesGetConnectionInfo() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.getConnectionInfo( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGetConnectionInfo(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetMonitoringDataSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetMonitoringDataSample.js new file mode 100644 index 000000000000..40341b709700 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetMonitoringDataSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * + * @summary Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json + */ +async function integrationRuntimesGetMonitoringData() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.getMonitoringData( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGetMonitoringData(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetSample.js new file mode 100644 index 000000000000..284a5b387f96 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets an integration runtime. + * + * @summary Gets an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json + */ +async function integrationRuntimesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.get( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetStatusSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetStatusSample.js new file mode 100644 index 000000000000..444e431537e4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesGetStatusSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets detailed status information for an integration runtime. + * + * @summary Gets detailed status information for an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json + */ +async function integrationRuntimesGetStatus() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.getStatus( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGetStatus(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListAuthKeysSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListAuthKeysSample.js new file mode 100644 index 000000000000..38a43d1cbf5e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListAuthKeysSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Retrieves the authentication keys for an integration runtime. + * + * @summary Retrieves the authentication keys for an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json + */ +async function integrationRuntimesListAuthKeys() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.listAuthKeys( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesListAuthKeys(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListByFactorySample.js new file mode 100644 index 000000000000..2f0481db34fd --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists integration runtimes. + * + * @summary Lists integration runtimes. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json + */ +async function integrationRuntimesListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.integrationRuntimes.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + integrationRuntimesListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.js new file mode 100644 index 000000000000..412907860152 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + * @summary Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json + */ +async function integrationRuntimesOutboundNetworkDependenciesEndpoints() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "7ad7c73b-38b8-4df3-84ee-52ff91092f61"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.listOutboundNetworkDependenciesEndpoints( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesOutboundNetworkDependenciesEndpoints(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRegenerateAuthKeySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRegenerateAuthKeySample.js new file mode 100644 index 000000000000..7493f55220f0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRegenerateAuthKeySample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Regenerates the authentication key for an integration runtime. + * + * @summary Regenerates the authentication key for an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json + */ +async function integrationRuntimesRegenerateAuthKey() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const regenerateKeyParameters = { + keyName: "authKey2", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.regenerateAuthKey( + resourceGroupName, + factoryName, + integrationRuntimeName, + regenerateKeyParameters + ); + console.log(result); +} + +async function main() { + integrationRuntimesRegenerateAuthKey(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRemoveLinksSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRemoveLinksSample.js new file mode 100644 index 000000000000..82658e364416 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesRemoveLinksSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @summary Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json + */ +async function integrationRuntimesUpgrade() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const linkedIntegrationRuntimeRequest = { + linkedFactoryName: "exampleFactoryName-linked", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.removeLinks( + resourceGroupName, + factoryName, + integrationRuntimeName, + linkedIntegrationRuntimeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimesUpgrade(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStartSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStartSample.js new file mode 100644 index 000000000000..7c2fd5e91b58 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStartSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Starts a ManagedReserved type integration runtime. + * + * @summary Starts a ManagedReserved type integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json + */ +async function integrationRuntimesStart() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleManagedIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.beginStartAndWait( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesStart(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStopSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStopSample.js new file mode 100644 index 000000000000..c3177ea063d4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesStopSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Stops a ManagedReserved type integration runtime. + * + * @summary Stops a ManagedReserved type integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json + */ +async function integrationRuntimesStop() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleManagedIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.beginStopAndWait( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesStop(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesSyncCredentialsSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesSyncCredentialsSample.js new file mode 100644 index 000000000000..241d978ac66d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesSyncCredentialsSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * + * @summary Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json + */ +async function integrationRuntimesSyncCredentials() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.syncCredentials( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesSyncCredentials(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpdateSample.js new file mode 100644 index 000000000000..01e1813cd38c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpdateSample.js @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Updates an integration runtime. + * + * @summary Updates an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json + */ +async function integrationRuntimesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const updateIntegrationRuntimeRequest = { + autoUpdate: "Off", + updateDelayOffset: '"PT3H"', + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.update( + resourceGroupName, + factoryName, + integrationRuntimeName, + updateIntegrationRuntimeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpgradeSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpgradeSample.js new file mode 100644 index 000000000000..256e170d65dd --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/integrationRuntimesUpgradeSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Upgrade self-hosted integration runtime to latest version if availability. + * + * @summary Upgrade self-hosted integration runtime to latest version if availability. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json + */ +async function integrationRuntimesUpgrade() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.upgrade( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesUpgrade(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesCreateOrUpdateSample.js new file mode 100644 index 000000000000..884e4966a89d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesCreateOrUpdateSample.js @@ -0,0 +1,87 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a linked service. + * + * @summary Creates or updates a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json + */ +async function linkedServicesCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const linkedService = { + properties: { + type: "AzureStorage", + connectionString: { + type: "SecureString", + value: + "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.createOrUpdate( + resourceGroupName, + factoryName, + linkedServiceName, + linkedService + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a linked service. + * + * @summary Creates or updates a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json + */ +async function linkedServicesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const linkedService = { + properties: { + type: "AzureStorage", + description: "Example description", + connectionString: { + type: "SecureString", + value: + "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.createOrUpdate( + resourceGroupName, + factoryName, + linkedServiceName, + linkedService + ); + console.log(result); +} + +async function main() { + linkedServicesCreate(); + linkedServicesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesDeleteSample.js new file mode 100644 index 000000000000..9248a55e9529 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a linked service. + * + * @summary Deletes a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json + */ +async function linkedServicesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.delete( + resourceGroupName, + factoryName, + linkedServiceName + ); + console.log(result); +} + +async function main() { + linkedServicesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesGetSample.js new file mode 100644 index 000000000000..917c024a4010 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a linked service. + * + * @summary Gets a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json + */ +async function linkedServicesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.get(resourceGroupName, factoryName, linkedServiceName); + console.log(result); +} + +async function main() { + linkedServicesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesListByFactorySample.js new file mode 100644 index 000000000000..1ade57c7ca57 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/linkedServicesListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists linked services. + * + * @summary Lists linked services. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json + */ +async function linkedServicesListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.linkedServices.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + linkedServicesListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsCreateOrUpdateSample.js new file mode 100644 index 000000000000..9c3769205adf --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsCreateOrUpdateSample.js @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a managed private endpoint. + * + * @summary Creates or updates a managed private endpoint. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json + */ +async function managedVirtualNetworksCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; + const managedPrivateEndpoint = { + properties: { + fqdns: [], + groupId: "blob", + privateLinkResourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage", + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedPrivateEndpoints.createOrUpdate( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedPrivateEndpointName, + managedPrivateEndpoint + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsDeleteSample.js new file mode 100644 index 000000000000..531dc7bbb0e2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsDeleteSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a managed private endpoint. + * + * @summary Deletes a managed private endpoint. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json + */ +async function managedVirtualNetworksDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedPrivateEndpoints.delete( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedPrivateEndpointName + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsGetSample.js new file mode 100644 index 000000000000..3094490b7baf --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsGetSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a managed private endpoint. + * + * @summary Gets a managed private endpoint. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json + */ +async function managedPrivateEndpointsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedPrivateEndpoints.get( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedPrivateEndpointName + ); + console.log(result); +} + +async function main() { + managedPrivateEndpointsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsListByFactorySample.js new file mode 100644 index 000000000000..76b3280c5986 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedPrivateEndpointsListByFactorySample.js @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists managed private endpoints. + * + * @summary Lists managed private endpoints. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json + */ +async function managedPrivateEndpointsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.managedPrivateEndpoints.listByFactory( + resourceGroupName, + factoryName, + managedVirtualNetworkName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + managedPrivateEndpointsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksCreateOrUpdateSample.js new file mode 100644 index 000000000000..22113cb71941 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksCreateOrUpdateSample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a managed Virtual Network. + * + * @summary Creates or updates a managed Virtual Network. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json + */ +async function managedVirtualNetworksCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedVirtualNetwork = { + properties: {}, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedVirtualNetworks.createOrUpdate( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedVirtualNetwork + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksGetSample.js new file mode 100644 index 000000000000..a020f28ec373 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a managed Virtual Network. + * + * @summary Gets a managed Virtual Network. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json + */ +async function managedVirtualNetworksGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedVirtualNetworks.get( + resourceGroupName, + factoryName, + managedVirtualNetworkName + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksListByFactorySample.js new file mode 100644 index 000000000000..d74490665fb7 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/managedVirtualNetworksListByFactorySample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists managed Virtual Networks. + * + * @summary Lists managed Virtual Networks. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json + */ +async function managedVirtualNetworksListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.managedVirtualNetworks.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + managedVirtualNetworksListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/operationsListSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/operationsListSample.js new file mode 100644 index 000000000000..ce2640f65252 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/operationsListSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists the available Azure Data Factory API operations. + * + * @summary Lists the available Azure Data Factory API operations. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json + */ +async function operationsList() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/package.json b/sdk/datafactory/arm-datafactory/samples/v11/javascript/package.json new file mode 100644 index 000000000000..52288f314baa --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/package.json @@ -0,0 +1,32 @@ +{ + "name": "@azure-samples/arm-datafactory-js", + "private": true, + "version": "1.0.0", + "description": " client library samples for JavaScript", + "engines": { + "node": ">=14.0.0" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/datafactory/arm-datafactory" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory", + "dependencies": { + "@azure/arm-datafactory": "latest", + "dotenv": "latest", + "@azure/identity": "^2.0.1" + } +} diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsCancelSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsCancelSample.js new file mode 100644 index 000000000000..7356a1f81e25 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsCancelSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Cancel a pipeline run by its run ID. + * + * @summary Cancel a pipeline run by its run ID. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json + */ +async function pipelineRunsCancel() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const runId = "16ac5348-ff82-4f95-a80d-638c1d47b721"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelineRuns.cancel(resourceGroupName, factoryName, runId); + console.log(result); +} + +async function main() { + pipelineRunsCancel(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsGetSample.js new file mode 100644 index 000000000000..a0890bae97bc --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a pipeline run by its run ID. + * + * @summary Get a pipeline run by its run ID. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json + */ +async function pipelineRunsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelineRuns.get(resourceGroupName, factoryName, runId); + console.log(result); +} + +async function main() { + pipelineRunsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsQueryByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsQueryByFactorySample.js new file mode 100644 index 000000000000..ce3afa4605c2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelineRunsQueryByFactorySample.js @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Query pipeline runs in the factory based on input filter conditions. + * + * @summary Query pipeline runs in the factory based on input filter conditions. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json + */ +async function pipelineRunsQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const filterParameters = { + filters: [ + { + operand: "PipelineName", + operator: "Equals", + values: ["examplePipeline"], + }, + ], + lastUpdatedAfter: new Date("2018-06-16T00:36:44.3345758Z"), + lastUpdatedBefore: new Date("2018-06-16T00:49:48.3686473Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelineRuns.queryByFactory( + resourceGroupName, + factoryName, + filterParameters + ); + console.log(result); +} + +async function main() { + pipelineRunsQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateOrUpdateSample.js new file mode 100644 index 000000000000..1435d899bb51 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateOrUpdateSample.js @@ -0,0 +1,162 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a pipeline. + * + * @summary Creates or updates a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json + */ +async function pipelinesCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const pipeline = { + activities: [ + { + name: "ExampleForeachActivity", + type: "ForEach", + activities: [ + { + name: "ExampleCopyActivity", + type: "Copy", + dataIntegrationUnits: 32, + inputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: "examplecontainer.csv", + myFolderPath: "examplecontainer", + }, + referenceName: "exampleDataset", + }, + ], + outputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: { type: "Expression", value: "@item()" }, + myFolderPath: "examplecontainer", + }, + referenceName: "exampleDataset", + }, + ], + sink: { type: "BlobSink" }, + source: { type: "BlobSource" }, + }, + ], + isSequential: true, + items: { + type: "Expression", + value: "@pipeline().parameters.OutputBlobNameList", + }, + }, + ], + parameters: { + jobId: { type: "String" }, + outputBlobNameList: { type: "Array" }, + }, + policy: { elapsedTimeMetric: { duration: "0.00:10:00" } }, + runDimensions: { + jobId: { type: "Expression", value: "@pipeline().parameters.JobId" }, + }, + variables: { testVariableArray: { type: "Array" } }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.createOrUpdate( + resourceGroupName, + factoryName, + pipelineName, + pipeline + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a pipeline. + * + * @summary Creates or updates a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json + */ +async function pipelinesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const pipeline = { + description: "Example description", + activities: [ + { + name: "ExampleForeachActivity", + type: "ForEach", + activities: [ + { + name: "ExampleCopyActivity", + type: "Copy", + dataIntegrationUnits: 32, + inputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: "examplecontainer.csv", + myFolderPath: "examplecontainer", + }, + referenceName: "exampleDataset", + }, + ], + outputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: { type: "Expression", value: "@item()" }, + myFolderPath: "examplecontainer", + }, + referenceName: "exampleDataset", + }, + ], + sink: { type: "BlobSink" }, + source: { type: "BlobSource" }, + }, + ], + isSequential: true, + items: { + type: "Expression", + value: "@pipeline().parameters.OutputBlobNameList", + }, + }, + ], + parameters: { outputBlobNameList: { type: "Array" } }, + policy: { elapsedTimeMetric: { duration: "0.00:10:00" } }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.createOrUpdate( + resourceGroupName, + factoryName, + pipelineName, + pipeline + ); + console.log(result); +} + +async function main() { + pipelinesCreate(); + pipelinesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateRunSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateRunSample.js new file mode 100644 index 000000000000..960581a278f8 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesCreateRunSample.js @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates a run of a pipeline. + * + * @summary Creates a run of a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json + */ +async function pipelinesCreateRun() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const referencePipelineRunId = undefined; + const parameters = { + outputBlobNameList: ["exampleoutput.csv"], + }; + const options = { + referencePipelineRunId, + parameters, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.createRun( + resourceGroupName, + factoryName, + pipelineName, + options + ); + console.log(result); +} + +async function main() { + pipelinesCreateRun(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesDeleteSample.js new file mode 100644 index 000000000000..f37a5fcb21de --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesDeleteSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a pipeline. + * + * @summary Deletes a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json + */ +async function pipelinesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.delete(resourceGroupName, factoryName, pipelineName); + console.log(result); +} + +async function main() { + pipelinesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesGetSample.js new file mode 100644 index 000000000000..10373603099f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a pipeline. + * + * @summary Gets a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json + */ +async function pipelinesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.get(resourceGroupName, factoryName, pipelineName); + console.log(result); +} + +async function main() { + pipelinesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesListByFactorySample.js new file mode 100644 index 000000000000..acfc3c7abf39 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/pipelinesListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists pipelines. + * + * @summary Lists pipelines. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json + */ +async function pipelinesListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pipelines.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + pipelinesListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndPointConnectionsListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndPointConnectionsListByFactorySample.js new file mode 100644 index 000000000000..b02e8ae4785e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndPointConnectionsListByFactorySample.js @@ -0,0 +1,42 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists Private endpoint connections + * + * @summary Lists Private endpoint connections + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json + */ +async function privateEndPointConnectionsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndPointConnections.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndPointConnectionsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionCreateOrUpdateSample.js new file mode 100644 index 000000000000..a8321bad71fe --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionCreateOrUpdateSample.js @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Approves or rejects a private endpoint connection + * + * @summary Approves or rejects a private endpoint connection + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json + */ +async function approvesOrRejectsAPrivateEndpointConnectionForAFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const privateEndpointConnectionName = "connection"; + const privateEndpointWrapper = { + properties: { + privateEndpoint: { + id: "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint", + }, + privateLinkServiceConnectionState: { + description: "Approved by admin.", + actionsRequired: "", + status: "Approved", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnection.createOrUpdate( + resourceGroupName, + factoryName, + privateEndpointConnectionName, + privateEndpointWrapper + ); + console.log(result); +} + +async function main() { + approvesOrRejectsAPrivateEndpointConnectionForAFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionDeleteSample.js new file mode 100644 index 000000000000..726798f9074b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionDeleteSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a private endpoint connection + * + * @summary Deletes a private endpoint connection + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json + */ +async function deleteAPrivateEndpointConnectionForADatafactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const privateEndpointConnectionName = "connection"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnection.delete( + resourceGroupName, + factoryName, + privateEndpointConnectionName + ); + console.log(result); +} + +async function main() { + deleteAPrivateEndpointConnectionForADatafactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionGetSample.js new file mode 100644 index 000000000000..927a5425c165 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateEndpointConnectionGetSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a private endpoint connection + * + * @summary Gets a private endpoint connection + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json + */ +async function getAPrivateEndpointConnectionForADatafactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const privateEndpointConnectionName = "connection"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnection.get( + resourceGroupName, + factoryName, + privateEndpointConnectionName + ); + console.log(result); +} + +async function main() { + getAPrivateEndpointConnectionForADatafactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateLinkResourcesGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateLinkResourcesGetSample.js new file mode 100644 index 000000000000..ff6da1e31b76 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/privateLinkResourcesGetSample.js @@ -0,0 +1,36 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets the private link resources + * + * @summary Gets the private link resources + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json + */ +async function getPrivateLinkResourcesOfASite() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateLinkResources.get(resourceGroupName, factoryName); + console.log(result); +} + +async function main() { + getPrivateLinkResourcesOfASite(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/sample.env b/sdk/datafactory/arm-datafactory/samples/v11/javascript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsCancelSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsCancelSample.js new file mode 100644 index 000000000000..213ec251cfe3 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsCancelSample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Cancel a single trigger instance by runId. + * + * @summary Cancel a single trigger instance by runId. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json + */ +async function triggersCancel() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggerRuns.cancel( + resourceGroupName, + factoryName, + triggerName, + runId + ); + console.log(result); +} + +async function main() { + triggersCancel(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsQueryByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsQueryByFactorySample.js new file mode 100644 index 000000000000..b9b910e97f1e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsQueryByFactorySample.js @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Query trigger runs. + * + * @summary Query trigger runs. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json + */ +async function triggerRunsQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const filterParameters = { + filters: [{ operand: "TriggerName", operator: "Equals", values: ["exampleTrigger"] }], + lastUpdatedAfter: new Date("2018-06-16T00:36:44.3345758Z"), + lastUpdatedBefore: new Date("2018-06-16T00:49:48.3686473Z"), + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggerRuns.queryByFactory( + resourceGroupName, + factoryName, + filterParameters + ); + console.log(result); +} + +async function main() { + triggerRunsQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsRerunSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsRerunSample.js new file mode 100644 index 000000000000..1f3270bfb49d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggerRunsRerunSample.js @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Rerun single trigger instance by runId. + * + * @summary Rerun single trigger instance by runId. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json + */ +async function triggersRerun() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggerRuns.rerun(resourceGroupName, factoryName, triggerName, runId); + console.log(result); +} + +async function main() { + triggersRerun(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersCreateOrUpdateSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersCreateOrUpdateSample.js new file mode 100644 index 000000000000..bb2a39327c7f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersCreateOrUpdateSample.js @@ -0,0 +1,109 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Creates or updates a trigger. + * + * @summary Creates or updates a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json + */ +async function triggersCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const trigger = { + properties: { + type: "ScheduleTrigger", + pipelines: [ + { + parameters: { outputBlobNameList: ["exampleoutput.csv"] }, + pipelineReference: { + type: "PipelineReference", + referenceName: "examplePipeline", + }, + }, + ], + recurrence: { + endTime: new Date("2018-06-16T00:55:13.8441801Z"), + frequency: "Minute", + interval: 4, + startTime: new Date("2018-06-16T00:39:13.8441801Z"), + timeZone: "UTC", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.createOrUpdate( + resourceGroupName, + factoryName, + triggerName, + trigger + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a trigger. + * + * @summary Creates or updates a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json + */ +async function triggersUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const trigger = { + properties: { + type: "ScheduleTrigger", + description: "Example description", + pipelines: [ + { + parameters: { outputBlobNameList: ["exampleoutput.csv"] }, + pipelineReference: { + type: "PipelineReference", + referenceName: "examplePipeline", + }, + }, + ], + recurrence: { + endTime: new Date("2018-06-16T00:55:14.905167Z"), + frequency: "Minute", + interval: 4, + startTime: new Date("2018-06-16T00:39:14.905167Z"), + timeZone: "UTC", + }, + }, + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.createOrUpdate( + resourceGroupName, + factoryName, + triggerName, + trigger + ); + console.log(result); +} + +async function main() { + triggersCreate(); + triggersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersDeleteSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersDeleteSample.js new file mode 100644 index 000000000000..e478bb119a33 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersDeleteSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Deletes a trigger. + * + * @summary Deletes a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json + */ +async function triggersDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.delete(resourceGroupName, factoryName, triggerName); + console.log(result); +} + +async function main() { + triggersDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetEventSubscriptionStatusSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetEventSubscriptionStatusSample.js new file mode 100644 index 000000000000..60c8833065b4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetEventSubscriptionStatusSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Get a trigger's event subscription status. + * + * @summary Get a trigger's event subscription status. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json + */ +async function triggersGetEventSubscriptionStatus() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.getEventSubscriptionStatus( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersGetEventSubscriptionStatus(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetSample.js new file mode 100644 index 000000000000..54bf6a1ea2f9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersGetSample.js @@ -0,0 +1,37 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Gets a trigger. + * + * @summary Gets a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json + */ +async function triggersGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.get(resourceGroupName, factoryName, triggerName); + console.log(result); +} + +async function main() { + triggersGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersListByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersListByFactorySample.js new file mode 100644 index 000000000000..eee464dcaa84 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersListByFactorySample.js @@ -0,0 +1,39 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Lists triggers. + * + * @summary Lists triggers. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json + */ +async function triggersListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.triggers.listByFactory(resourceGroupName, factoryName)) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + triggersListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersQueryByFactorySample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersQueryByFactorySample.js new file mode 100644 index 000000000000..254d2d800b03 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersQueryByFactorySample.js @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Query triggers. + * + * @summary Query triggers. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json + */ +async function triggersQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const filterParameters = { + parentTriggerName: "exampleTrigger", + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.queryByFactory( + resourceGroupName, + factoryName, + filterParameters + ); + console.log(result); +} + +async function main() { + triggersQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStartSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStartSample.js new file mode 100644 index 000000000000..df2dbeda36bc --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStartSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Starts a trigger. + * + * @summary Starts a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json + */ +async function triggersStart() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginStartAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersStart(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStopSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStopSample.js new file mode 100644 index 000000000000..39dc3a3feb87 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersStopSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Stops a trigger. + * + * @summary Stops a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json + */ +async function triggersStop() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginStopAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersStop(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersSubscribeToEventsSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersSubscribeToEventsSample.js new file mode 100644 index 000000000000..d1582a5a2dc5 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersSubscribeToEventsSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Subscribe event trigger to events. + * + * @summary Subscribe event trigger to events. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json + */ +async function triggersSubscribeToEvents() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginSubscribeToEventsAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersSubscribeToEvents(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersUnsubscribeFromEventsSample.js b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersUnsubscribeFromEventsSample.js new file mode 100644 index 000000000000..0248be596ff4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/javascript/triggersUnsubscribeFromEventsSample.js @@ -0,0 +1,41 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +const { DataFactoryManagementClient } = require("@azure/arm-datafactory"); +const { DefaultAzureCredential } = require("@azure/identity"); +require("dotenv").config(); + +/** + * This sample demonstrates how to Unsubscribe event trigger from events. + * + * @summary Unsubscribe event trigger from events. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json + */ +async function triggersUnsubscribeFromEvents() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginUnsubscribeFromEventsAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersUnsubscribeFromEvents(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/README.md b/sdk/datafactory/arm-datafactory/samples/v11/typescript/README.md new file mode 100644 index 000000000000..a24a961d3e43 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/README.md @@ -0,0 +1,251 @@ +# client library samples for TypeScript + +These sample programs show how to use the TypeScript client libraries for in some common scenarios. + +| **File Name** | **Description** | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| [activityRunsQueryByPipelineRunSample.ts][activityrunsquerybypipelinerunsample] | Query activity runs based on input filter conditions. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json | +| [credentialOperationsCreateOrUpdateSample.ts][credentialoperationscreateorupdatesample] | Creates or updates a credential. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json | +| [credentialOperationsDeleteSample.ts][credentialoperationsdeletesample] | Deletes a credential. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json | +| [credentialOperationsGetSample.ts][credentialoperationsgetsample] | Gets a credential. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json | +| [credentialOperationsListByFactorySample.ts][credentialoperationslistbyfactorysample] | List credentials. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json | +| [dataFlowDebugSessionAddDataFlowSample.ts][dataflowdebugsessionadddataflowsample] | Add a data flow into debug session. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json | +| [dataFlowDebugSessionCreateSample.ts][dataflowdebugsessioncreatesample] | Creates a data flow debug session. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json | +| [dataFlowDebugSessionDeleteSample.ts][dataflowdebugsessiondeletesample] | Deletes a data flow debug session. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json | +| [dataFlowDebugSessionExecuteCommandSample.ts][dataflowdebugsessionexecutecommandsample] | Execute a data flow debug command. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json | +| [dataFlowDebugSessionQueryByFactorySample.ts][dataflowdebugsessionquerybyfactorysample] | Query all active data flow debug sessions. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json | +| [dataFlowsCreateOrUpdateSample.ts][dataflowscreateorupdatesample] | Creates or updates a data flow. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json | +| [dataFlowsDeleteSample.ts][dataflowsdeletesample] | Deletes a data flow. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json | +| [dataFlowsGetSample.ts][dataflowsgetsample] | Gets a data flow. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json | +| [dataFlowsListByFactorySample.ts][dataflowslistbyfactorysample] | Lists data flows. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json | +| [datasetsCreateOrUpdateSample.ts][datasetscreateorupdatesample] | Creates or updates a dataset. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json | +| [datasetsDeleteSample.ts][datasetsdeletesample] | Deletes a dataset. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json | +| [datasetsGetSample.ts][datasetsgetsample] | Gets a dataset. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json | +| [datasetsListByFactorySample.ts][datasetslistbyfactorysample] | Lists datasets. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json | +| [exposureControlGetFeatureValueByFactorySample.ts][exposurecontrolgetfeaturevaluebyfactorysample] | Get exposure control feature for specific factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json | +| [exposureControlGetFeatureValueSample.ts][exposurecontrolgetfeaturevaluesample] | Get exposure control feature for specific location. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json | +| [exposureControlQueryFeatureValuesByFactorySample.ts][exposurecontrolqueryfeaturevaluesbyfactorysample] | Get list of exposure control features for specific factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json | +| [factoriesConfigureFactoryRepoSample.ts][factoriesconfigurefactoryreposample] | Updates a factory's repo information. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json | +| [factoriesCreateOrUpdateSample.ts][factoriescreateorupdatesample] | Creates or updates a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json | +| [factoriesDeleteSample.ts][factoriesdeletesample] | Deletes a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json | +| [factoriesGetDataPlaneAccessSample.ts][factoriesgetdataplaneaccesssample] | Get Data Plane access. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json | +| [factoriesGetGitHubAccessTokenSample.ts][factoriesgetgithubaccesstokensample] | Get GitHub Access Token. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json | +| [factoriesGetSample.ts][factoriesgetsample] | Gets a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json | +| [factoriesListByResourceGroupSample.ts][factorieslistbyresourcegroupsample] | Lists factories. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json | +| [factoriesListSample.ts][factorieslistsample] | Lists factories under the specified subscription. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json | +| [factoriesUpdateSample.ts][factoriesupdatesample] | Updates a factory. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json | +| [globalParametersCreateOrUpdateSample.ts][globalparameterscreateorupdatesample] | Creates or updates a Global parameter x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json | +| [globalParametersDeleteSample.ts][globalparametersdeletesample] | Deletes a Global parameter x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json | +| [globalParametersGetSample.ts][globalparametersgetsample] | Gets a Global parameter x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json | +| [globalParametersListByFactorySample.ts][globalparameterslistbyfactorysample] | Lists Global parameters x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json | +| [integrationRuntimeNodesDeleteSample.ts][integrationruntimenodesdeletesample] | Deletes a self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json | +| [integrationRuntimeNodesGetIPAddressSample.ts][integrationruntimenodesgetipaddresssample] | Get the IP address of self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json | +| [integrationRuntimeNodesGetSample.ts][integrationruntimenodesgetsample] | Gets a self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json | +| [integrationRuntimeNodesUpdateSample.ts][integrationruntimenodesupdatesample] | Updates a self-hosted integration runtime node. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json | +| [integrationRuntimeObjectMetadataGetSample.ts][integrationruntimeobjectmetadatagetsample] | Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json | +| [integrationRuntimeObjectMetadataRefreshSample.ts][integrationruntimeobjectmetadatarefreshsample] | Refresh a SSIS integration runtime object metadata. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json | +| [integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts][integrationruntimescreatelinkedintegrationruntimesample] | Create a linked integration runtime entry in a shared integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json | +| [integrationRuntimesCreateOrUpdateSample.ts][integrationruntimescreateorupdatesample] | Creates or updates an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json | +| [integrationRuntimesDeleteSample.ts][integrationruntimesdeletesample] | Deletes an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json | +| [integrationRuntimesGetConnectionInfoSample.ts][integrationruntimesgetconnectioninfosample] | Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json | +| [integrationRuntimesGetMonitoringDataSample.ts][integrationruntimesgetmonitoringdatasample] | Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json | +| [integrationRuntimesGetSample.ts][integrationruntimesgetsample] | Gets an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json | +| [integrationRuntimesGetStatusSample.ts][integrationruntimesgetstatussample] | Gets detailed status information for an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json | +| [integrationRuntimesListAuthKeysSample.ts][integrationruntimeslistauthkeyssample] | Retrieves the authentication keys for an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json | +| [integrationRuntimesListByFactorySample.ts][integrationruntimeslistbyfactorysample] | Lists integration runtimes. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json | +| [integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts][integrationruntimeslistoutboundnetworkdependenciesendpointssample] | Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json | +| [integrationRuntimesRegenerateAuthKeySample.ts][integrationruntimesregenerateauthkeysample] | Regenerates the authentication key for an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json | +| [integrationRuntimesRemoveLinksSample.ts][integrationruntimesremovelinkssample] | Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json | +| [integrationRuntimesStartSample.ts][integrationruntimesstartsample] | Starts a ManagedReserved type integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json | +| [integrationRuntimesStopSample.ts][integrationruntimesstopsample] | Stops a ManagedReserved type integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json | +| [integrationRuntimesSyncCredentialsSample.ts][integrationruntimessynccredentialssample] | Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json | +| [integrationRuntimesUpdateSample.ts][integrationruntimesupdatesample] | Updates an integration runtime. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json | +| [integrationRuntimesUpgradeSample.ts][integrationruntimesupgradesample] | Upgrade self-hosted integration runtime to latest version if availability. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json | +| [linkedServicesCreateOrUpdateSample.ts][linkedservicescreateorupdatesample] | Creates or updates a linked service. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json | +| [linkedServicesDeleteSample.ts][linkedservicesdeletesample] | Deletes a linked service. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json | +| [linkedServicesGetSample.ts][linkedservicesgetsample] | Gets a linked service. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json | +| [linkedServicesListByFactorySample.ts][linkedserviceslistbyfactorysample] | Lists linked services. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json | +| [managedPrivateEndpointsCreateOrUpdateSample.ts][managedprivateendpointscreateorupdatesample] | Creates or updates a managed private endpoint. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json | +| [managedPrivateEndpointsDeleteSample.ts][managedprivateendpointsdeletesample] | Deletes a managed private endpoint. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json | +| [managedPrivateEndpointsGetSample.ts][managedprivateendpointsgetsample] | Gets a managed private endpoint. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json | +| [managedPrivateEndpointsListByFactorySample.ts][managedprivateendpointslistbyfactorysample] | Lists managed private endpoints. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json | +| [managedVirtualNetworksCreateOrUpdateSample.ts][managedvirtualnetworkscreateorupdatesample] | Creates or updates a managed Virtual Network. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json | +| [managedVirtualNetworksGetSample.ts][managedvirtualnetworksgetsample] | Gets a managed Virtual Network. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json | +| [managedVirtualNetworksListByFactorySample.ts][managedvirtualnetworkslistbyfactorysample] | Lists managed Virtual Networks. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json | +| [operationsListSample.ts][operationslistsample] | Lists the available Azure Data Factory API operations. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json | +| [pipelineRunsCancelSample.ts][pipelinerunscancelsample] | Cancel a pipeline run by its run ID. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json | +| [pipelineRunsGetSample.ts][pipelinerunsgetsample] | Get a pipeline run by its run ID. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json | +| [pipelineRunsQueryByFactorySample.ts][pipelinerunsquerybyfactorysample] | Query pipeline runs in the factory based on input filter conditions. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json | +| [pipelinesCreateOrUpdateSample.ts][pipelinescreateorupdatesample] | Creates or updates a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json | +| [pipelinesCreateRunSample.ts][pipelinescreaterunsample] | Creates a run of a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json | +| [pipelinesDeleteSample.ts][pipelinesdeletesample] | Deletes a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json | +| [pipelinesGetSample.ts][pipelinesgetsample] | Gets a pipeline. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json | +| [pipelinesListByFactorySample.ts][pipelineslistbyfactorysample] | Lists pipelines. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json | +| [privateEndPointConnectionsListByFactorySample.ts][privateendpointconnectionslistbyfactorysample] | Lists Private endpoint connections x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json | +| [privateEndpointConnectionCreateOrUpdateSample.ts][privateendpointconnectioncreateorupdatesample] | Approves or rejects a private endpoint connection x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json | +| [privateEndpointConnectionDeleteSample.ts][privateendpointconnectiondeletesample] | Deletes a private endpoint connection x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json | +| [privateEndpointConnectionGetSample.ts][privateendpointconnectiongetsample] | Gets a private endpoint connection x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json | +| [privateLinkResourcesGetSample.ts][privatelinkresourcesgetsample] | Gets the private link resources x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json | +| [triggerRunsCancelSample.ts][triggerrunscancelsample] | Cancel a single trigger instance by runId. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json | +| [triggerRunsQueryByFactorySample.ts][triggerrunsquerybyfactorysample] | Query trigger runs. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json | +| [triggerRunsRerunSample.ts][triggerrunsrerunsample] | Rerun single trigger instance by runId. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json | +| [triggersCreateOrUpdateSample.ts][triggerscreateorupdatesample] | Creates or updates a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json | +| [triggersDeleteSample.ts][triggersdeletesample] | Deletes a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json | +| [triggersGetEventSubscriptionStatusSample.ts][triggersgeteventsubscriptionstatussample] | Get a trigger's event subscription status. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json | +| [triggersGetSample.ts][triggersgetsample] | Gets a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json | +| [triggersListByFactorySample.ts][triggerslistbyfactorysample] | Lists triggers. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json | +| [triggersQueryByFactorySample.ts][triggersquerybyfactorysample] | Query triggers. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json | +| [triggersStartSample.ts][triggersstartsample] | Starts a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json | +| [triggersStopSample.ts][triggersstopsample] | Stops a trigger. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json | +| [triggersSubscribeToEventsSample.ts][triggerssubscribetoeventssample] | Subscribe event trigger to events. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json | +| [triggersUnsubscribeFromEventsSample.ts][triggersunsubscribefromeventssample] | Unsubscribe event trigger from events. x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json | + +## Prerequisites + +The sample programs are compatible with [LTS versions of Node.js](https://github.com/nodejs/release#release-schedule). + +Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using: + +```bash +npm install -g typescript +``` + +You need [an Azure subscription][freesub] to run these sample programs. + +Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function. + +Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package]. + +## Setup + +To run the samples using the published version of the package: + +1. Install the dependencies using `npm`: + +```bash +npm install +``` + +2. Compile the samples: + +```bash +npm run build +``` + +3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically. + +4. Run whichever samples you like (note that some samples may require additional setup, see the table above): + +```bash +node dist/activityRunsQueryByPipelineRunSample.js +``` + +Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform): + +```bash +npx cross-env DATAFACTORY_SUBSCRIPTION_ID="" DATAFACTORY_RESOURCE_GROUP="" node dist/activityRunsQueryByPipelineRunSample.js +``` + +## Next Steps + +Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients. + +[activityrunsquerybypipelinerunsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/activityRunsQueryByPipelineRunSample.ts +[credentialoperationscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsCreateOrUpdateSample.ts +[credentialoperationsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsDeleteSample.ts +[credentialoperationsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsGetSample.ts +[credentialoperationslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsListByFactorySample.ts +[dataflowdebugsessionadddataflowsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts +[dataflowdebugsessioncreatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionCreateSample.ts +[dataflowdebugsessiondeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionDeleteSample.ts +[dataflowdebugsessionexecutecommandsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts +[dataflowdebugsessionquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts +[dataflowscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsCreateOrUpdateSample.ts +[dataflowsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsDeleteSample.ts +[dataflowsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsGetSample.ts +[dataflowslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsListByFactorySample.ts +[datasetscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsCreateOrUpdateSample.ts +[datasetsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsDeleteSample.ts +[datasetsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsGetSample.ts +[datasetslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsListByFactorySample.ts +[exposurecontrolgetfeaturevaluebyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueByFactorySample.ts +[exposurecontrolgetfeaturevaluesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueSample.ts +[exposurecontrolqueryfeaturevaluesbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts +[factoriesconfigurefactoryreposample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesConfigureFactoryRepoSample.ts +[factoriescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesCreateOrUpdateSample.ts +[factoriesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesDeleteSample.ts +[factoriesgetdataplaneaccesssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetDataPlaneAccessSample.ts +[factoriesgetgithubaccesstokensample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetGitHubAccessTokenSample.ts +[factoriesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetSample.ts +[factorieslistbyresourcegroupsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListByResourceGroupSample.ts +[factorieslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListSample.ts +[factoriesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesUpdateSample.ts +[globalparameterscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersCreateOrUpdateSample.ts +[globalparametersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersDeleteSample.ts +[globalparametersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersGetSample.ts +[globalparameterslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersListByFactorySample.ts +[integrationruntimenodesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesDeleteSample.ts +[integrationruntimenodesgetipaddresssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts +[integrationruntimenodesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetSample.ts +[integrationruntimenodesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesUpdateSample.ts +[integrationruntimeobjectmetadatagetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataGetSample.ts +[integrationruntimeobjectmetadatarefreshsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts +[integrationruntimescreatelinkedintegrationruntimesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts +[integrationruntimescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateOrUpdateSample.ts +[integrationruntimesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesDeleteSample.ts +[integrationruntimesgetconnectioninfosample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetConnectionInfoSample.ts +[integrationruntimesgetmonitoringdatasample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetMonitoringDataSample.ts +[integrationruntimesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetSample.ts +[integrationruntimesgetstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetStatusSample.ts +[integrationruntimeslistauthkeyssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListAuthKeysSample.ts +[integrationruntimeslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListByFactorySample.ts +[integrationruntimeslistoutboundnetworkdependenciesendpointssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts +[integrationruntimesregenerateauthkeysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts +[integrationruntimesremovelinkssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRemoveLinksSample.ts +[integrationruntimesstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStartSample.ts +[integrationruntimesstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStopSample.ts +[integrationruntimessynccredentialssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesSyncCredentialsSample.ts +[integrationruntimesupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpdateSample.ts +[integrationruntimesupgradesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpgradeSample.ts +[linkedservicescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesCreateOrUpdateSample.ts +[linkedservicesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesDeleteSample.ts +[linkedservicesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesGetSample.ts +[linkedserviceslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesListByFactorySample.ts +[managedprivateendpointscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts +[managedprivateendpointsdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsDeleteSample.ts +[managedprivateendpointsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsGetSample.ts +[managedprivateendpointslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsListByFactorySample.ts +[managedvirtualnetworkscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts +[managedvirtualnetworksgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksGetSample.ts +[managedvirtualnetworkslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksListByFactorySample.ts +[operationslistsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/operationsListSample.ts +[pipelinerunscancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsCancelSample.ts +[pipelinerunsgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsGetSample.ts +[pipelinerunsquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsQueryByFactorySample.ts +[pipelinescreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateOrUpdateSample.ts +[pipelinescreaterunsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateRunSample.ts +[pipelinesdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesDeleteSample.ts +[pipelinesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesGetSample.ts +[pipelineslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesListByFactorySample.ts +[privateendpointconnectionslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndPointConnectionsListByFactorySample.ts +[privateendpointconnectioncreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts +[privateendpointconnectiondeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionDeleteSample.ts +[privateendpointconnectiongetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionGetSample.ts +[privatelinkresourcesgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateLinkResourcesGetSample.ts +[triggerrunscancelsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsCancelSample.ts +[triggerrunsquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsQueryByFactorySample.ts +[triggerrunsrerunsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsRerunSample.ts +[triggerscreateorupdatesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersCreateOrUpdateSample.ts +[triggersdeletesample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersDeleteSample.ts +[triggersgeteventsubscriptionstatussample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetEventSubscriptionStatusSample.ts +[triggersgetsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetSample.ts +[triggerslistbyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersListByFactorySample.ts +[triggersquerybyfactorysample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersQueryByFactorySample.ts +[triggersstartsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStartSample.ts +[triggersstopsample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStopSample.ts +[triggerssubscribetoeventssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersSubscribeToEventsSample.ts +[triggersunsubscribefromeventssample]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersUnsubscribeFromEventsSample.ts +[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview +[freesub]: https://azure.microsoft.com/free/ +[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory/README.md +[typescript]: https://www.typescriptlang.org/docs/home.html diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/package.json b/sdk/datafactory/arm-datafactory/samples/v11/typescript/package.json new file mode 100644 index 000000000000..7a373ad066d7 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/package.json @@ -0,0 +1,41 @@ +{ + "name": "@azure-samples/arm-datafactory-ts", + "private": true, + "version": "1.0.0", + "description": " client library samples for TypeScript", + "engines": { + "node": ">=14.0.0" + }, + "scripts": { + "build": "tsc", + "prebuild": "rimraf dist/" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Azure/azure-sdk-for-js.git", + "directory": "sdk/datafactory/arm-datafactory" + }, + "keywords": [ + "node", + "azure", + "typescript", + "browser", + "isomorphic" + ], + "author": "Microsoft Corporation", + "license": "MIT", + "bugs": { + "url": "https://github.com/Azure/azure-sdk-for-js/issues" + }, + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory", + "dependencies": { + "@azure/arm-datafactory": "latest", + "dotenv": "latest", + "@azure/identity": "^2.0.1" + }, + "devDependencies": { + "@types/node": "^14.0.0", + "typescript": "~4.8.0", + "rimraf": "latest" + } +} diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/sample.env b/sdk/datafactory/arm-datafactory/samples/v11/typescript/sample.env new file mode 100644 index 000000000000..672847a3fea0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/sample.env @@ -0,0 +1,4 @@ +# App registration secret for AAD authentication +AZURE_CLIENT_SECRET= +AZURE_CLIENT_ID= +AZURE_TENANT_ID= \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/activityRunsQueryByPipelineRunSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/activityRunsQueryByPipelineRunSample.ts new file mode 100644 index 000000000000..39218fcc8497 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/activityRunsQueryByPipelineRunSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RunFilterParameters, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Query activity runs based on input filter conditions. + * + * @summary Query activity runs based on input filter conditions. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ActivityRuns_QueryByPipelineRun.json + */ +async function activityRunsQueryByPipelineRun() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const filterParameters: RunFilterParameters = { + lastUpdatedAfter: new Date("2018-06-16T00:36:44.3345758Z"), + lastUpdatedBefore: new Date("2018-06-16T00:49:48.3686473Z") + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.activityRuns.queryByPipelineRun( + resourceGroupName, + factoryName, + runId, + filterParameters + ); + console.log(result); +} + +async function main() { + activityRunsQueryByPipelineRun(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..f4d4a90044a6 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsCreateOrUpdateSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ManagedIdentityCredentialResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a credential. + * + * @summary Creates or updates a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Create.json + */ +async function credentialsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credentials: ManagedIdentityCredentialResource = { + properties: { + type: "ManagedIdentity", + resourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourcegroups/exampleResourceGroup/providers/Microsoft.ManagedIdentity/userAssignedIdentities/exampleUami" + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.createOrUpdate( + resourceGroupName, + factoryName, + credentialName, + credentials + ); + console.log(result); +} + +async function main() { + credentialsCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsDeleteSample.ts new file mode 100644 index 000000000000..672338070cd0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a credential. + * + * @summary Deletes a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Delete.json + */ +async function credentialsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.delete( + resourceGroupName, + factoryName, + credentialName + ); + console.log(result); +} + +async function main() { + credentialsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsGetSample.ts new file mode 100644 index 000000000000..358766c0d835 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a credential. + * + * @summary Gets a credential. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_Get.json + */ +async function credentialsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credentialName = "exampleCredential"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.credentialOperations.get( + resourceGroupName, + factoryName, + credentialName + ); + console.log(result); +} + +async function main() { + credentialsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsListByFactorySample.ts new file mode 100644 index 000000000000..06ac70e7da84 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/credentialOperationsListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to List credentials. + * + * @summary List credentials. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Credentials_ListByFactory.json + */ +async function credentialsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.credentialOperations.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + credentialsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts new file mode 100644 index 000000000000..4180ccc914a5 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionAddDataFlowSample.ts @@ -0,0 +1,112 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataFlowDebugPackage, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Add a data flow into debug session. + * + * @summary Add a data flow into debug session. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_AddDataFlow.json + */ +async function dataFlowDebugSessionAddDataFlow() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request: DataFlowDebugPackage = { + dataFlow: { + name: "dataflow1", + properties: { + type: "MappingDataFlow", + script: + "\n\nsource(output(\n\t\tColumn_1 as string\n\t),\n\tallowSchemaDrift: true,\n\tvalidateSchema: false) ~> source1", + sinks: [], + sources: [ + { + name: "source1", + dataset: { + type: "DatasetReference", + referenceName: "DelimitedText2" + } + } + ], + transformations: [] + } + }, + datasets: [ + { + name: "dataset1", + properties: { + type: "DelimitedText", + schema: [{ type: "String" }], + annotations: [], + columnDelimiter: ",", + escapeChar: "\\", + firstRowAsHeader: true, + linkedServiceName: { + type: "LinkedServiceReference", + referenceName: "linkedService5" + }, + location: { + type: "AzureBlobStorageLocation", + container: "dataflow-sample-data", + fileName: "Ansiencoding.csv" + }, + quoteChar: '"' + } + } + ], + debugSettings: { + datasetParameters: { Movies: { path: "abc" }, Output: { time: "def" } }, + parameters: { sourcePath: "Toy" }, + sourceSettings: [ + { rowLimit: 1000, sourceName: "source1" }, + { rowLimit: 222, sourceName: "source2" } + ] + }, + linkedServices: [ + { + name: "linkedService1", + properties: { + type: "AzureBlobStorage", + annotations: [], + connectionString: + "DefaultEndpointsProtocol=https;AccountName=;EndpointSuffix=core.windows.net;", + encryptedCredential: "" + } + } + ], + sessionId: "f06ed247-9d07-49b2-b05e-2cb4a2fc871e" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.addDataFlow( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionAddDataFlow(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionCreateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionCreateSample.ts new file mode 100644 index 000000000000..9e5cf4b556f2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionCreateSample.ts @@ -0,0 +1,64 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CreateDataFlowDebugSessionRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a data flow debug session. + * + * @summary Creates a data flow debug session. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Create.json + */ +async function dataFlowDebugSessionCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request: CreateDataFlowDebugSessionRequest = { + integrationRuntime: { + name: "ir1", + properties: { + type: "Managed", + computeProperties: { + dataFlowProperties: { + computeType: "General", + coreCount: 48, + timeToLive: 10 + }, + location: "AutoResolve" + } + } + }, + timeToLive: 60 + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.beginCreateAndWait( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionDeleteSample.ts new file mode 100644 index 000000000000..5f4c7a67b18d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionDeleteSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DeleteDataFlowDebugSessionRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a data flow debug session. + * + * @summary Deletes a data flow debug session. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_Delete.json + */ +async function dataFlowDebugSessionDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request: DeleteDataFlowDebugSessionRequest = { + sessionId: "91fb57e0-8292-47be-89ff-c8f2d2bb2a7e" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.delete( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts new file mode 100644 index 000000000000..774898178308 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionExecuteCommandSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataFlowDebugCommandRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Execute a data flow debug command. + * + * @summary Execute a data flow debug command. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_ExecuteCommand.json + */ +async function dataFlowDebugSessionExecuteCommand() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const request: DataFlowDebugCommandRequest = { + command: "executePreviewQuery", + commandPayload: { rowLimits: 100, streamName: "source1" }, + sessionId: "f06ed247-9d07-49b2-b05e-2cb4a2fc871e" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlowDebugSession.beginExecuteCommandAndWait( + resourceGroupName, + factoryName, + request + ); + console.log(result); +} + +async function main() { + dataFlowDebugSessionExecuteCommand(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts new file mode 100644 index 000000000000..b678460c91c5 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowDebugSessionQueryByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Query all active data flow debug sessions. + * + * @summary Query all active data flow debug sessions. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlowDebugSession_QueryByFactory.json + */ +async function dataFlowDebugSessionQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataFlowDebugSession.listQueryByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataFlowDebugSessionQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..505b6e68da4b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsCreateOrUpdateSample.ts @@ -0,0 +1,189 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DataFlowResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a data flow. + * + * @summary Creates or updates a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Create.json + */ +async function dataFlowsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const dataFlow: DataFlowResource = { + properties: { + type: "MappingDataFlow", + description: + "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.", + scriptLines: [ + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: false,", + "validateSchema: false) ~> USDCurrency", + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: true,", + "validateSchema: false) ~> CADSource", + "USDCurrency, CADSource union(byName: true)~> Union", + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", + "NewCurrencyColumn split(Country == 'USD',", + "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink" + ], + sinks: [ + { + name: "USDSink", + dataset: { type: "DatasetReference", referenceName: "USDOutput" } + }, + { + name: "CADSink", + dataset: { type: "DatasetReference", referenceName: "CADOutput" } + } + ], + sources: [ + { + name: "USDCurrency", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetUSD" + } + }, + { + name: "CADSource", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetCAD" + } + } + ] + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.createOrUpdate( + resourceGroupName, + factoryName, + dataFlowName, + dataFlow + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a data flow. + * + * @summary Creates or updates a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Update.json + */ +async function dataFlowsUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const dataFlow: DataFlowResource = { + properties: { + type: "MappingDataFlow", + description: + "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.", + scriptLines: [ + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: false,", + "validateSchema: false) ~> USDCurrency", + "source(output(", + "PreviousConversionRate as double,", + "Country as string,", + "DateTime1 as string,", + "CurrentConversionRate as double", + "),", + "allowSchemaDrift: true,", + "validateSchema: false) ~> CADSource", + "USDCurrency, CADSource union(byName: true)~> Union", + "Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn", + "NewCurrencyColumn split(Country == 'USD',", + "Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)", + "ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink", + "ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink" + ], + sinks: [ + { + name: "USDSink", + dataset: { type: "DatasetReference", referenceName: "USDOutput" } + }, + { + name: "CADSink", + dataset: { type: "DatasetReference", referenceName: "CADOutput" } + } + ], + sources: [ + { + name: "USDCurrency", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetUSD" + } + }, + { + name: "CADSource", + dataset: { + type: "DatasetReference", + referenceName: "CurrencyDatasetCAD" + } + } + ] + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.createOrUpdate( + resourceGroupName, + factoryName, + dataFlowName, + dataFlow + ); + console.log(result); +} + +async function main() { + dataFlowsCreate(); + dataFlowsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsDeleteSample.ts new file mode 100644 index 000000000000..cecd063a947c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a data flow. + * + * @summary Deletes a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Delete.json + */ +async function dataFlowsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.delete( + resourceGroupName, + factoryName, + dataFlowName + ); + console.log(result); +} + +async function main() { + dataFlowsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsGetSample.ts new file mode 100644 index 000000000000..1e9ffb9b349d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a data flow. + * + * @summary Gets a data flow. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_Get.json + */ +async function dataFlowsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const dataFlowName = "exampleDataFlow"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.dataFlows.get( + resourceGroupName, + factoryName, + dataFlowName + ); + console.log(result); +} + +async function main() { + dataFlowsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsListByFactorySample.ts new file mode 100644 index 000000000000..32b1507421f4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/dataFlowsListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists data flows. + * + * @summary Lists data flows. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DataFlows_ListByFactory.json + */ +async function dataFlowsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.dataFlows.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + dataFlowsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..dcb33c5f0b4c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsCreateOrUpdateSample.ts @@ -0,0 +1,108 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + DatasetResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a dataset. + * + * @summary Creates or updates a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Create.json + */ +async function datasetsCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const dataset: DatasetResource = { + properties: { + type: "AzureBlob", + format: { type: "TextFormat" }, + fileName: { type: "Expression", value: "@dataset().MyFileName" }, + folderPath: { type: "Expression", value: "@dataset().MyFolderPath" }, + linkedServiceName: { + type: "LinkedServiceReference", + referenceName: "exampleLinkedService" + }, + parameters: { + myFileName: { type: "String" }, + myFolderPath: { type: "String" } + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.createOrUpdate( + resourceGroupName, + factoryName, + datasetName, + dataset + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a dataset. + * + * @summary Creates or updates a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Update.json + */ +async function datasetsUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const dataset: DatasetResource = { + properties: { + type: "AzureBlob", + format: { type: "TextFormat" }, + description: "Example description", + fileName: { type: "Expression", value: "@dataset().MyFileName" }, + folderPath: { type: "Expression", value: "@dataset().MyFolderPath" }, + linkedServiceName: { + type: "LinkedServiceReference", + referenceName: "exampleLinkedService" + }, + parameters: { + myFileName: { type: "String" }, + myFolderPath: { type: "String" } + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.createOrUpdate( + resourceGroupName, + factoryName, + datasetName, + dataset + ); + console.log(result); +} + +async function main() { + datasetsCreate(); + datasetsUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsDeleteSample.ts new file mode 100644 index 000000000000..9eb1285ae6eb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a dataset. + * + * @summary Deletes a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Delete.json + */ +async function datasetsDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.delete( + resourceGroupName, + factoryName, + datasetName + ); + console.log(result); +} + +async function main() { + datasetsDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsGetSample.ts new file mode 100644 index 000000000000..724f7750d57b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a dataset. + * + * @summary Gets a dataset. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_Get.json + */ +async function datasetsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const datasetName = "exampleDataset"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.datasets.get( + resourceGroupName, + factoryName, + datasetName + ); + console.log(result); +} + +async function main() { + datasetsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsListByFactorySample.ts new file mode 100644 index 000000000000..bf8090e4ae82 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/datasetsListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists datasets. + * + * @summary Lists datasets. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Datasets_ListByFactory.json + */ +async function datasetsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.datasets.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + datasetsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueByFactorySample.ts new file mode 100644 index 000000000000..aa5146c1c0aa --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueByFactorySample.ts @@ -0,0 +1,51 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ExposureControlRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get exposure control feature for specific factory. + * + * @summary Get exposure control feature for specific factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValueByFactory.json + */ +async function exposureControlGetFeatureValueByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const exposureControlRequest: ExposureControlRequest = { + featureName: "ADFIntegrationRuntimeSharingRbac", + featureType: "Feature" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.exposureControl.getFeatureValueByFactory( + resourceGroupName, + factoryName, + exposureControlRequest + ); + console.log(result); +} + +async function main() { + exposureControlGetFeatureValueByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueSample.ts new file mode 100644 index 000000000000..862863141c66 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlGetFeatureValueSample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ExposureControlRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get exposure control feature for specific location. + * + * @summary Get exposure control feature for specific location. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_GetFeatureValue.json + */ +async function exposureControlGetFeatureValue() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const locationId = "WestEurope"; + const exposureControlRequest: ExposureControlRequest = { + featureName: "ADFIntegrationRuntimeSharingRbac", + featureType: "Feature" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.exposureControl.getFeatureValue( + locationId, + exposureControlRequest + ); + console.log(result); +} + +async function main() { + exposureControlGetFeatureValue(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts new file mode 100644 index 000000000000..572e32949831 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/exposureControlQueryFeatureValuesByFactorySample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ExposureControlBatchRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get list of exposure control features for specific factory. + * + * @summary Get list of exposure control features for specific factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ExposureControl_QueryFeatureValuesByFactory.json + */ +async function exposureControlQueryFeatureValuesByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const exposureControlBatchRequest: ExposureControlBatchRequest = { + exposureControlRequests: [ + { + featureName: "ADFIntegrationRuntimeSharingRbac", + featureType: "Feature" + }, + { featureName: "ADFSampleFeature", featureType: "Feature" } + ] + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.exposureControl.queryFeatureValuesByFactory( + resourceGroupName, + factoryName, + exposureControlBatchRequest + ); + console.log(result); +} + +async function main() { + exposureControlQueryFeatureValuesByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesConfigureFactoryRepoSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesConfigureFactoryRepoSample.ts new file mode 100644 index 000000000000..780ed59d3840 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesConfigureFactoryRepoSample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + FactoryRepoUpdate, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a factory's repo information. + * + * @summary Updates a factory's repo information. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ConfigureFactoryRepo.json + */ +async function factoriesConfigureFactoryRepo() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const locationId = "East US"; + const factoryRepoUpdate: FactoryRepoUpdate = { + factoryResourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName", + repoConfiguration: { + type: "FactoryVSTSConfiguration", + accountName: "ADF", + collaborationBranch: "master", + lastCommitId: "", + projectName: "project", + repositoryName: "repo", + rootFolder: "/", + tenantId: "" + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.configureFactoryRepo( + locationId, + factoryRepoUpdate + ); + console.log(result); +} + +async function main() { + factoriesConfigureFactoryRepo(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..4f204fec7b5e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesCreateOrUpdateSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { Factory, DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a factory. + * + * @summary Creates or updates a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_CreateOrUpdate.json + */ +async function factoriesCreateOrUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const factory: Factory = { location: "East US" }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.createOrUpdate( + resourceGroupName, + factoryName, + factory + ); + console.log(result); +} + +async function main() { + factoriesCreateOrUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesDeleteSample.ts new file mode 100644 index 000000000000..8d9fef67aa5a --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesDeleteSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a factory. + * + * @summary Deletes a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Delete.json + */ +async function factoriesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.delete(resourceGroupName, factoryName); + console.log(result); +} + +async function main() { + factoriesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetDataPlaneAccessSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetDataPlaneAccessSample.ts new file mode 100644 index 000000000000..2c36decca38d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetDataPlaneAccessSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + UserAccessPolicy, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get Data Plane access. + * + * @summary Get Data Plane access. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetDataPlaneAccess.json + */ +async function factoriesGetDataPlaneAccess() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const policy: UserAccessPolicy = { + accessResourcePath: "", + expireTime: "2018-11-10T09:46:20.2659347Z", + permissions: "r", + profileName: "DefaultProfile", + startTime: "2018-11-10T02:46:20.2659347Z" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.getDataPlaneAccess( + resourceGroupName, + factoryName, + policy + ); + console.log(result); +} + +async function main() { + factoriesGetDataPlaneAccess(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetGitHubAccessTokenSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetGitHubAccessTokenSample.ts new file mode 100644 index 000000000000..f3426cd397fa --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetGitHubAccessTokenSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GitHubAccessTokenRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get GitHub Access Token. + * + * @summary Get GitHub Access Token. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_GetGitHubAccessToken.json + */ +async function factoriesGetGitHubAccessToken() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const gitHubAccessTokenRequest: GitHubAccessTokenRequest = { + gitHubAccessCode: "some", + gitHubAccessTokenBaseUrl: "some", + gitHubClientId: "some" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.getGitHubAccessToken( + resourceGroupName, + factoryName, + gitHubAccessTokenRequest + ); + console.log(result); +} + +async function main() { + factoriesGetGitHubAccessToken(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetSample.ts new file mode 100644 index 000000000000..ee27528602e8 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesGetSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a factory. + * + * @summary Gets a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Get.json + */ +async function factoriesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.get(resourceGroupName, factoryName); + console.log(result); +} + +async function main() { + factoriesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListByResourceGroupSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListByResourceGroupSample.ts new file mode 100644 index 000000000000..46f0f73cc34d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListByResourceGroupSample.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists factories. + * + * @summary Lists factories. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_ListByResourceGroup.json + */ +async function factoriesListByResourceGroup() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.factories.listByResourceGroup( + resourceGroupName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + factoriesListByResourceGroup(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListSample.ts new file mode 100644 index 000000000000..6f2489fefce0 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists factories under the specified subscription. + * + * @summary Lists factories under the specified subscription. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_List.json + */ +async function factoriesList() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.factories.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + factoriesList(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesUpdateSample.ts new file mode 100644 index 000000000000..a67901452cdd --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/factoriesUpdateSample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + FactoryUpdateParameters, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a factory. + * + * @summary Updates a factory. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Factories_Update.json + */ +async function factoriesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const factoryUpdateParameters: FactoryUpdateParameters = { + tags: { exampleTag: "exampleValue" } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.factories.update( + resourceGroupName, + factoryName, + factoryUpdateParameters + ); + console.log(result); +} + +async function main() { + factoriesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..39b95d5d00b4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersCreateOrUpdateSample.ts @@ -0,0 +1,81 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GlobalParameterResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a Global parameter + * + * @summary Creates or updates a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Create.json + */ +async function globalParametersCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const defaultParam: GlobalParameterResource = { + properties: { waitTime: { type: "Int", value: 5 } } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.createOrUpdate( + resourceGroupName, + factoryName, + globalParameterName, + defaultParam + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a Global parameter + * + * @summary Creates or updates a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Update.json + */ +async function globalParametersUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const defaultParam: GlobalParameterResource = { + properties: { waitTime: { type: "Int", value: 5 } } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.createOrUpdate( + resourceGroupName, + factoryName, + globalParameterName, + defaultParam + ); + console.log(result); +} + +async function main() { + globalParametersCreate(); + globalParametersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersDeleteSample.ts new file mode 100644 index 000000000000..bc4e9feac5b9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a Global parameter + * + * @summary Deletes a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Delete.json + */ +async function globalParametersDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.delete( + resourceGroupName, + factoryName, + globalParameterName + ); + console.log(result); +} + +async function main() { + globalParametersDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersGetSample.ts new file mode 100644 index 000000000000..beedf1f759eb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a Global parameter + * + * @summary Gets a Global parameter + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_Get.json + */ +async function globalParametersGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const globalParameterName = "default"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.globalParameters.get( + resourceGroupName, + factoryName, + globalParameterName + ); + console.log(result); +} + +async function main() { + globalParametersGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersListByFactorySample.ts new file mode 100644 index 000000000000..49dedd7c5308 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/globalParametersListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists Global parameters + * + * @summary Lists Global parameters + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GlobalParameters_ListByFactory.json + */ +async function globalParametersListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.globalParameters.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + globalParametersListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesDeleteSample.ts new file mode 100644 index 000000000000..b4f5f96d5e86 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesDeleteSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a self-hosted integration runtime node. + * + * @summary Deletes a self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Delete.json + */ +async function integrationRuntimesNodesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.delete( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesNodesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts new file mode 100644 index 000000000000..ee6bbcf569b5 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetIPAddressSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the IP address of self-hosted integration runtime node. + * + * @summary Get the IP address of self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_GetIpAddress.json + */ +async function integrationRuntimeNodesGetIPAddress() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.getIpAddress( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName + ); + console.log(result); +} + +async function main() { + integrationRuntimeNodesGetIPAddress(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetSample.ts new file mode 100644 index 000000000000..497f2d9ccd5d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesGetSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a self-hosted integration runtime node. + * + * @summary Gets a self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Get.json + */ +async function integrationRuntimeNodesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.get( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName + ); + console.log(result); +} + +async function main() { + integrationRuntimeNodesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesUpdateSample.ts new file mode 100644 index 000000000000..413f650ff9c6 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeNodesUpdateSample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + UpdateIntegrationRuntimeNodeRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates a self-hosted integration runtime node. + * + * @summary Updates a self-hosted integration runtime node. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeNodes_Update.json + */ +async function integrationRuntimeNodesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const nodeName = "Node_1"; + const updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest = { + concurrentJobsLimit: 2 + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeNodes.update( + resourceGroupName, + factoryName, + integrationRuntimeName, + nodeName, + updateIntegrationRuntimeNodeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimeNodesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataGetSample.ts new file mode 100644 index 000000000000..ca23c6e76605 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataGetSample.ts @@ -0,0 +1,56 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + GetSsisObjectMetadataRequest, + IntegrationRuntimeObjectMetadataGetOptionalParams, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * + * @summary Get a SSIS integration runtime object metadata by specified path. The return is pageable metadata list. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Get.json + */ +async function integrationRuntimeObjectMetadataGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "testactivityv2"; + const getMetadataRequest: GetSsisObjectMetadataRequest = { + metadataPath: "ssisFolders" + }; + const options: IntegrationRuntimeObjectMetadataGetOptionalParams = { + getMetadataRequest + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeObjectMetadata.get( + resourceGroupName, + factoryName, + integrationRuntimeName, + options + ); + console.log(result); +} + +async function main() { + integrationRuntimeObjectMetadataGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts new file mode 100644 index 000000000000..725ccbb7c76d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimeObjectMetadataRefreshSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Refresh a SSIS integration runtime object metadata. + * + * @summary Refresh a SSIS integration runtime object metadata. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimeObjectMetadata_Refresh.json + */ +async function integrationRuntimeObjectMetadataRefresh() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "testactivityv2"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimeObjectMetadata.beginRefreshAndWait( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimeObjectMetadataRefresh(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts new file mode 100644 index 000000000000..d237ddf0df5d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateLinkedIntegrationRuntimeSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + CreateLinkedIntegrationRuntimeRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Create a linked integration runtime entry in a shared integration runtime. + * + * @summary Create a linked integration runtime entry in a shared integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_CreateLinkedIntegrationRuntime.json + */ +async function integrationRuntimesCreateLinkedIntegrationRuntime() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const createLinkedIntegrationRuntimeRequest: CreateLinkedIntegrationRuntimeRequest = { + name: "bfa92911-9fb6-4fbe-8f23-beae87bc1c83", + dataFactoryLocation: "West US", + dataFactoryName: "e9955d6d-56ea-4be3-841c-52a12c1a9981", + subscriptionId: "061774c7-4b5a-4159-a55b-365581830283" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.createLinkedIntegrationRuntime( + resourceGroupName, + factoryName, + integrationRuntimeName, + createLinkedIntegrationRuntimeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimesCreateLinkedIntegrationRuntime(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..d5df46c5f53e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesCreateOrUpdateSample.ts @@ -0,0 +1,55 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + IntegrationRuntimeResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates an integration runtime. + * + * @summary Creates or updates an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Create.json + */ +async function integrationRuntimesCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const integrationRuntime: IntegrationRuntimeResource = { + properties: { + type: "SelfHosted", + description: "A selfhosted integration runtime" + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.createOrUpdate( + resourceGroupName, + factoryName, + integrationRuntimeName, + integrationRuntime + ); + console.log(result); +} + +async function main() { + integrationRuntimesCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesDeleteSample.ts new file mode 100644 index 000000000000..adddbcc3b456 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes an integration runtime. + * + * @summary Deletes an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Delete.json + */ +async function integrationRuntimesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.delete( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetConnectionInfoSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetConnectionInfoSample.ts new file mode 100644 index 000000000000..9e3912d814b6 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetConnectionInfoSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * + * @summary Gets the on-premises integration runtime connection information for encrypting the on-premises data source credentials. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetConnectionInfo.json + */ +async function integrationRuntimesGetConnectionInfo() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.getConnectionInfo( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGetConnectionInfo(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetMonitoringDataSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetMonitoringDataSample.ts new file mode 100644 index 000000000000..9ad99ca37bb2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetMonitoringDataSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * + * @summary Get the integration runtime monitoring data, which includes the monitor data for all the nodes under this integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetMonitoringData.json + */ +async function integrationRuntimesGetMonitoringData() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.getMonitoringData( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGetMonitoringData(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetSample.ts new file mode 100644 index 000000000000..006326fbb113 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets an integration runtime. + * + * @summary Gets an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Get.json + */ +async function integrationRuntimesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.get( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetStatusSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetStatusSample.ts new file mode 100644 index 000000000000..33fecf3707a5 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesGetStatusSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets detailed status information for an integration runtime. + * + * @summary Gets detailed status information for an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_GetStatus.json + */ +async function integrationRuntimesGetStatus() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.getStatus( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesGetStatus(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListAuthKeysSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListAuthKeysSample.ts new file mode 100644 index 000000000000..32e9e7a00ad3 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListAuthKeysSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Retrieves the authentication keys for an integration runtime. + * + * @summary Retrieves the authentication keys for an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListAuthKeys.json + */ +async function integrationRuntimesListAuthKeys() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.listAuthKeys( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesListAuthKeys(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListByFactorySample.ts new file mode 100644 index 000000000000..2f24a365e55a --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists integration runtimes. + * + * @summary Lists integration runtimes. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListByFactory.json + */ +async function integrationRuntimesListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.integrationRuntimes.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + integrationRuntimesListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts new file mode 100644 index 000000000000..68973ae3ce98 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesListOutboundNetworkDependenciesEndpointsSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * + * @summary Gets the list of outbound network dependencies for a given Azure-SSIS integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_ListOutboundNetworkDependenciesEndpoints.json + */ +async function integrationRuntimesOutboundNetworkDependenciesEndpoints() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "7ad7c73b-38b8-4df3-84ee-52ff91092f61"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.listOutboundNetworkDependenciesEndpoints( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesOutboundNetworkDependenciesEndpoints(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts new file mode 100644 index 000000000000..f91887d54f2c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRegenerateAuthKeySample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + IntegrationRuntimeRegenerateKeyParameters, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Regenerates the authentication key for an integration runtime. + * + * @summary Regenerates the authentication key for an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RegenerateAuthKey.json + */ +async function integrationRuntimesRegenerateAuthKey() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const regenerateKeyParameters: IntegrationRuntimeRegenerateKeyParameters = { + keyName: "authKey2" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.regenerateAuthKey( + resourceGroupName, + factoryName, + integrationRuntimeName, + regenerateKeyParameters + ); + console.log(result); +} + +async function main() { + integrationRuntimesRegenerateAuthKey(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRemoveLinksSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRemoveLinksSample.ts new file mode 100644 index 000000000000..a4c64b86f729 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesRemoveLinksSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + LinkedIntegrationRuntimeRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * + * @summary Remove all linked integration runtimes under specific data factory in a self-hosted integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_RemoveLinks.json + */ +async function integrationRuntimesUpgrade() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const linkedIntegrationRuntimeRequest: LinkedIntegrationRuntimeRequest = { + linkedFactoryName: "exampleFactoryName-linked" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.removeLinks( + resourceGroupName, + factoryName, + integrationRuntimeName, + linkedIntegrationRuntimeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimesUpgrade(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStartSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStartSample.ts new file mode 100644 index 000000000000..1074f2f2783f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStartSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Starts a ManagedReserved type integration runtime. + * + * @summary Starts a ManagedReserved type integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Start.json + */ +async function integrationRuntimesStart() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleManagedIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.beginStartAndWait( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesStart(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStopSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStopSample.ts new file mode 100644 index 000000000000..1af9508b5113 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesStopSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Stops a ManagedReserved type integration runtime. + * + * @summary Stops a ManagedReserved type integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Stop.json + */ +async function integrationRuntimesStop() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleManagedIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.beginStopAndWait( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesStop(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesSyncCredentialsSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesSyncCredentialsSample.ts new file mode 100644 index 000000000000..bd126bbe71be --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesSyncCredentialsSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * + * @summary Force the integration runtime to synchronize credentials across integration runtime nodes, and this will override the credentials across all worker nodes with those available on the dispatcher node. If you already have the latest credential backup file, you should manually import it (preferred) on any self-hosted integration runtime node than using this API directly. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_SyncCredentials.json + */ +async function integrationRuntimesSyncCredentials() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.syncCredentials( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesSyncCredentials(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpdateSample.ts new file mode 100644 index 000000000000..b9dc71d92784 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpdateSample.ts @@ -0,0 +1,53 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + UpdateIntegrationRuntimeRequest, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Updates an integration runtime. + * + * @summary Updates an integration runtime. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Update.json + */ +async function integrationRuntimesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const updateIntegrationRuntimeRequest: UpdateIntegrationRuntimeRequest = { + autoUpdate: "Off", + updateDelayOffset: '"PT3H"' + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.update( + resourceGroupName, + factoryName, + integrationRuntimeName, + updateIntegrationRuntimeRequest + ); + console.log(result); +} + +async function main() { + integrationRuntimesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpgradeSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpgradeSample.ts new file mode 100644 index 000000000000..3f3a42340879 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/integrationRuntimesUpgradeSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Upgrade self-hosted integration runtime to latest version if availability. + * + * @summary Upgrade self-hosted integration runtime to latest version if availability. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/IntegrationRuntimes_Upgrade.json + */ +async function integrationRuntimesUpgrade() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const integrationRuntimeName = "exampleIntegrationRuntime"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.integrationRuntimes.upgrade( + resourceGroupName, + factoryName, + integrationRuntimeName + ); + console.log(result); +} + +async function main() { + integrationRuntimesUpgrade(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..de21ec9f8b5d --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesCreateOrUpdateSample.ts @@ -0,0 +1,96 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + LinkedServiceResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a linked service. + * + * @summary Creates or updates a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Create.json + */ +async function linkedServicesCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const linkedService: LinkedServiceResource = { + properties: { + type: "AzureStorage", + connectionString: { + type: "SecureString", + value: + "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=" + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.createOrUpdate( + resourceGroupName, + factoryName, + linkedServiceName, + linkedService + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a linked service. + * + * @summary Creates or updates a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Update.json + */ +async function linkedServicesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const linkedService: LinkedServiceResource = { + properties: { + type: "AzureStorage", + description: "Example description", + connectionString: { + type: "SecureString", + value: + "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=" + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.createOrUpdate( + resourceGroupName, + factoryName, + linkedServiceName, + linkedService + ); + console.log(result); +} + +async function main() { + linkedServicesCreate(); + linkedServicesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesDeleteSample.ts new file mode 100644 index 000000000000..a8db235d2c12 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a linked service. + * + * @summary Deletes a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Delete.json + */ +async function linkedServicesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.delete( + resourceGroupName, + factoryName, + linkedServiceName + ); + console.log(result); +} + +async function main() { + linkedServicesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesGetSample.ts new file mode 100644 index 000000000000..5f55cbed9d86 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a linked service. + * + * @summary Gets a linked service. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_Get.json + */ +async function linkedServicesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const linkedServiceName = "exampleLinkedService"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.linkedServices.get( + resourceGroupName, + factoryName, + linkedServiceName + ); + console.log(result); +} + +async function main() { + linkedServicesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesListByFactorySample.ts new file mode 100644 index 000000000000..94ef3c58b96c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/linkedServicesListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists linked services. + * + * @summary Lists linked services. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/LinkedServices_ListByFactory.json + */ +async function linkedServicesListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.linkedServices.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + linkedServicesListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts new file mode 100644 index 000000000000..55b6170059c9 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsCreateOrUpdateSample.ts @@ -0,0 +1,59 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ManagedPrivateEndpointResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a managed private endpoint. + * + * @summary Creates or updates a managed private endpoint. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Create.json + */ +async function managedVirtualNetworksCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; + const managedPrivateEndpoint: ManagedPrivateEndpointResource = { + properties: { + fqdns: [], + groupId: "blob", + privateLinkResourceId: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.Storage/storageAccounts/exampleBlobStorage" + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedPrivateEndpoints.createOrUpdate( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedPrivateEndpointName, + managedPrivateEndpoint + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsDeleteSample.ts new file mode 100644 index 000000000000..1581ec838f59 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsDeleteSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a managed private endpoint. + * + * @summary Deletes a managed private endpoint. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Delete.json + */ +async function managedVirtualNetworksDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedPrivateEndpoints.delete( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedPrivateEndpointName + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsGetSample.ts new file mode 100644 index 000000000000..4eaee914f5e4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsGetSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a managed private endpoint. + * + * @summary Gets a managed private endpoint. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_Get.json + */ +async function managedPrivateEndpointsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedPrivateEndpointName = "exampleManagedPrivateEndpointName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedPrivateEndpoints.get( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedPrivateEndpointName + ); + console.log(result); +} + +async function main() { + managedPrivateEndpointsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsListByFactorySample.ts new file mode 100644 index 000000000000..f4a7770e6422 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedPrivateEndpointsListByFactorySample.ts @@ -0,0 +1,48 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists managed private endpoints. + * + * @summary Lists managed private endpoints. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedPrivateEndpoints_ListByFactory.json + */ +async function managedPrivateEndpointsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.managedPrivateEndpoints.listByFactory( + resourceGroupName, + factoryName, + managedVirtualNetworkName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + managedPrivateEndpointsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts new file mode 100644 index 000000000000..7cf14961234f --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksCreateOrUpdateSample.ts @@ -0,0 +1,52 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + ManagedVirtualNetworkResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a managed Virtual Network. + * + * @summary Creates or updates a managed Virtual Network. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Create.json + */ +async function managedVirtualNetworksCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const managedVirtualNetwork: ManagedVirtualNetworkResource = { + properties: {} + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedVirtualNetworks.createOrUpdate( + resourceGroupName, + factoryName, + managedVirtualNetworkName, + managedVirtualNetwork + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksCreate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksGetSample.ts new file mode 100644 index 000000000000..98efb8f5db96 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a managed Virtual Network. + * + * @summary Gets a managed Virtual Network. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_Get.json + */ +async function managedVirtualNetworksGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const managedVirtualNetworkName = "exampleManagedVirtualNetworkName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.managedVirtualNetworks.get( + resourceGroupName, + factoryName, + managedVirtualNetworkName + ); + console.log(result); +} + +async function main() { + managedVirtualNetworksGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksListByFactorySample.ts new file mode 100644 index 000000000000..544dc37c2253 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/managedVirtualNetworksListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists managed Virtual Networks. + * + * @summary Lists managed Virtual Networks. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ManagedVirtualNetworks_ListByFactory.json + */ +async function managedVirtualNetworksListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.managedVirtualNetworks.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + managedVirtualNetworksListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/operationsListSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/operationsListSample.ts new file mode 100644 index 000000000000..0dbddfbfddef --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/operationsListSample.ts @@ -0,0 +1,40 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists the available Azure Data Factory API operations. + * + * @summary Lists the available Azure Data Factory API operations. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Operations_List.json + */ +async function operationsList() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "00000000-0000-0000-0000-000000000000"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.operations.list()) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + operationsList(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsCancelSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsCancelSample.ts new file mode 100644 index 000000000000..fe9134fa58af --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsCancelSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Cancel a pipeline run by its run ID. + * + * @summary Cancel a pipeline run by its run ID. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Cancel.json + */ +async function pipelineRunsCancel() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const runId = "16ac5348-ff82-4f95-a80d-638c1d47b721"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelineRuns.cancel( + resourceGroupName, + factoryName, + runId + ); + console.log(result); +} + +async function main() { + pipelineRunsCancel(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsGetSample.ts new file mode 100644 index 000000000000..3d2210ca7317 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a pipeline run by its run ID. + * + * @summary Get a pipeline run by its run ID. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_Get.json + */ +async function pipelineRunsGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelineRuns.get( + resourceGroupName, + factoryName, + runId + ); + console.log(result); +} + +async function main() { + pipelineRunsGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsQueryByFactorySample.ts new file mode 100644 index 000000000000..03b469f7db08 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelineRunsQueryByFactorySample.ts @@ -0,0 +1,58 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RunFilterParameters, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Query pipeline runs in the factory based on input filter conditions. + * + * @summary Query pipeline runs in the factory based on input filter conditions. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PipelineRuns_QueryByFactory.json + */ +async function pipelineRunsQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const filterParameters: RunFilterParameters = { + filters: [ + { + operand: "PipelineName", + operator: "Equals", + values: ["examplePipeline"] + } + ], + lastUpdatedAfter: new Date("2018-06-16T00:36:44.3345758Z"), + lastUpdatedBefore: new Date("2018-06-16T00:49:48.3686473Z") + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelineRuns.queryByFactory( + resourceGroupName, + factoryName, + filterParameters + ); + console.log(result); +} + +async function main() { + pipelineRunsQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateOrUpdateSample.ts new file mode 100644 index 000000000000..a5e4eea1b4e2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateOrUpdateSample.ts @@ -0,0 +1,171 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PipelineResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a pipeline. + * + * @summary Creates or updates a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Create.json + */ +async function pipelinesCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const pipeline: PipelineResource = { + activities: [ + { + name: "ExampleForeachActivity", + type: "ForEach", + activities: [ + { + name: "ExampleCopyActivity", + type: "Copy", + dataIntegrationUnits: 32, + inputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: "examplecontainer.csv", + myFolderPath: "examplecontainer" + }, + referenceName: "exampleDataset" + } + ], + outputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: { type: "Expression", value: "@item()" }, + myFolderPath: "examplecontainer" + }, + referenceName: "exampleDataset" + } + ], + sink: { type: "BlobSink" }, + source: { type: "BlobSource" } + } + ], + isSequential: true, + items: { + type: "Expression", + value: "@pipeline().parameters.OutputBlobNameList" + } + } + ], + parameters: { + jobId: { type: "String" }, + outputBlobNameList: { type: "Array" } + }, + policy: { elapsedTimeMetric: { duration: "0.00:10:00" } }, + runDimensions: { + jobId: { type: "Expression", value: "@pipeline().parameters.JobId" } + }, + variables: { testVariableArray: { type: "Array" } } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.createOrUpdate( + resourceGroupName, + factoryName, + pipelineName, + pipeline + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a pipeline. + * + * @summary Creates or updates a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Update.json + */ +async function pipelinesUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const pipeline: PipelineResource = { + description: "Example description", + activities: [ + { + name: "ExampleForeachActivity", + type: "ForEach", + activities: [ + { + name: "ExampleCopyActivity", + type: "Copy", + dataIntegrationUnits: 32, + inputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: "examplecontainer.csv", + myFolderPath: "examplecontainer" + }, + referenceName: "exampleDataset" + } + ], + outputs: [ + { + type: "DatasetReference", + parameters: { + myFileName: { type: "Expression", value: "@item()" }, + myFolderPath: "examplecontainer" + }, + referenceName: "exampleDataset" + } + ], + sink: { type: "BlobSink" }, + source: { type: "BlobSource" } + } + ], + isSequential: true, + items: { + type: "Expression", + value: "@pipeline().parameters.OutputBlobNameList" + } + } + ], + parameters: { outputBlobNameList: { type: "Array" } }, + policy: { elapsedTimeMetric: { duration: "0.00:10:00" } } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.createOrUpdate( + resourceGroupName, + factoryName, + pipelineName, + pipeline + ); + console.log(result); +} + +async function main() { + pipelinesCreate(); + pipelinesUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateRunSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateRunSample.ts new file mode 100644 index 000000000000..5fcd54a1dfdc --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesCreateRunSample.ts @@ -0,0 +1,57 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PipelinesCreateRunOptionalParams, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates a run of a pipeline. + * + * @summary Creates a run of a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_CreateRun.json + */ +async function pipelinesCreateRun() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const referencePipelineRunId = undefined; + const parameters: { [propertyName: string]: any } = { + outputBlobNameList: ["exampleoutput.csv"] + }; + const options: PipelinesCreateRunOptionalParams = { + referencePipelineRunId, + parameters + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.createRun( + resourceGroupName, + factoryName, + pipelineName, + options + ); + console.log(result); +} + +async function main() { + pipelinesCreateRun(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesDeleteSample.ts new file mode 100644 index 000000000000..fb573e24fa30 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a pipeline. + * + * @summary Deletes a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Delete.json + */ +async function pipelinesDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.delete( + resourceGroupName, + factoryName, + pipelineName + ); + console.log(result); +} + +async function main() { + pipelinesDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesGetSample.ts new file mode 100644 index 000000000000..e1f04c8fbe42 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a pipeline. + * + * @summary Gets a pipeline. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_Get.json + */ +async function pipelinesGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const pipelineName = "examplePipeline"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.pipelines.get( + resourceGroupName, + factoryName, + pipelineName + ); + console.log(result); +} + +async function main() { + pipelinesGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesListByFactorySample.ts new file mode 100644 index 000000000000..c63da71fec9b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/pipelinesListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists pipelines. + * + * @summary Lists pipelines. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Pipelines_ListByFactory.json + */ +async function pipelinesListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.pipelines.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + pipelinesListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndPointConnectionsListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndPointConnectionsListByFactorySample.ts new file mode 100644 index 000000000000..81def1d82f0e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndPointConnectionsListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists Private endpoint connections + * + * @summary Lists Private endpoint connections + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/PrivateEndPointConnections_ListByFactory.json + */ +async function privateEndPointConnectionsListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.privateEndPointConnections.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + privateEndPointConnectionsListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts new file mode 100644 index 000000000000..a45c0f7491c4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionCreateOrUpdateSample.ts @@ -0,0 +1,62 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + PrivateLinkConnectionApprovalRequestResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Approves or rejects a private endpoint connection + * + * @summary Approves or rejects a private endpoint connection + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/ApproveRejectPrivateEndpointConnection.json + */ +async function approvesOrRejectsAPrivateEndpointConnectionForAFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const privateEndpointConnectionName = "connection"; + const privateEndpointWrapper: PrivateLinkConnectionApprovalRequestResource = { + properties: { + privateEndpoint: { + id: + "/subscriptions/12345678-1234-1234-1234-12345678abc/resourceGroups/exampleResourceGroup/providers/Microsoft.DataFactory/factories/exampleFactoryName/privateEndpoints/myPrivateEndpoint" + }, + privateLinkServiceConnectionState: { + description: "Approved by admin.", + actionsRequired: "", + status: "Approved" + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnection.createOrUpdate( + resourceGroupName, + factoryName, + privateEndpointConnectionName, + privateEndpointWrapper + ); + console.log(result); +} + +async function main() { + approvesOrRejectsAPrivateEndpointConnectionForAFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionDeleteSample.ts new file mode 100644 index 000000000000..8fa5be522b8a --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a private endpoint connection + * + * @summary Deletes a private endpoint connection + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/DeletePrivateEndpointConnection.json + */ +async function deleteAPrivateEndpointConnectionForADatafactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const privateEndpointConnectionName = "connection"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnection.delete( + resourceGroupName, + factoryName, + privateEndpointConnectionName + ); + console.log(result); +} + +async function main() { + deleteAPrivateEndpointConnectionForADatafactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionGetSample.ts new file mode 100644 index 000000000000..70a5021db8e3 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateEndpointConnectionGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a private endpoint connection + * + * @summary Gets a private endpoint connection + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateEndpointConnection.json + */ +async function getAPrivateEndpointConnectionForADatafactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const privateEndpointConnectionName = "connection"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateEndpointConnection.get( + resourceGroupName, + factoryName, + privateEndpointConnectionName + ); + console.log(result); +} + +async function main() { + getAPrivateEndpointConnectionForADatafactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateLinkResourcesGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateLinkResourcesGetSample.ts new file mode 100644 index 000000000000..65fb07ca294c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/privateLinkResourcesGetSample.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets the private link resources + * + * @summary Gets the private link resources + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/GetPrivateLinkResources.json + */ +async function getPrivateLinkResourcesOfASite() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.privateLinkResources.get( + resourceGroupName, + factoryName + ); + console.log(result); +} + +async function main() { + getPrivateLinkResourcesOfASite(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsCancelSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsCancelSample.ts new file mode 100644 index 000000000000..c93c08bdc41e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsCancelSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Cancel a single trigger instance by runId. + * + * @summary Cancel a single trigger instance by runId. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Cancel.json + */ +async function triggersCancel() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggerRuns.cancel( + resourceGroupName, + factoryName, + triggerName, + runId + ); + console.log(result); +} + +async function main() { + triggersCancel(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsQueryByFactorySample.ts new file mode 100644 index 000000000000..8a1dbae7c882 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsQueryByFactorySample.ts @@ -0,0 +1,54 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + RunFilterParameters, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Query trigger runs. + * + * @summary Query trigger runs. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_QueryByFactory.json + */ +async function triggerRunsQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const filterParameters: RunFilterParameters = { + filters: [ + { operand: "TriggerName", operator: "Equals", values: ["exampleTrigger"] } + ], + lastUpdatedAfter: new Date("2018-06-16T00:36:44.3345758Z"), + lastUpdatedBefore: new Date("2018-06-16T00:49:48.3686473Z") + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggerRuns.queryByFactory( + resourceGroupName, + factoryName, + filterParameters + ); + console.log(result); +} + +async function main() { + triggerRunsQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsRerunSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsRerunSample.ts new file mode 100644 index 000000000000..f93425f271a6 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggerRunsRerunSample.ts @@ -0,0 +1,47 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Rerun single trigger instance by runId. + * + * @summary Rerun single trigger instance by runId. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/TriggerRuns_Rerun.json + */ +async function triggersRerun() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const runId = "2f7fdb90-5df1-4b8e-ac2f-064cfa58202b"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggerRuns.rerun( + resourceGroupName, + factoryName, + triggerName, + runId + ); + console.log(result); +} + +async function main() { + triggersRerun(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersCreateOrUpdateSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersCreateOrUpdateSample.ts new file mode 100644 index 000000000000..2647b866eff4 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersCreateOrUpdateSample.ts @@ -0,0 +1,118 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + TriggerResource, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Creates or updates a trigger. + * + * @summary Creates or updates a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Create.json + */ +async function triggersCreate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const trigger: TriggerResource = { + properties: { + type: "ScheduleTrigger", + pipelines: [ + { + parameters: { outputBlobNameList: ["exampleoutput.csv"] }, + pipelineReference: { + type: "PipelineReference", + referenceName: "examplePipeline" + } + } + ], + recurrence: { + endTime: new Date("2018-06-16T00:55:13.8441801Z"), + frequency: "Minute", + interval: 4, + startTime: new Date("2018-06-16T00:39:13.8441801Z"), + timeZone: "UTC" + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.createOrUpdate( + resourceGroupName, + factoryName, + triggerName, + trigger + ); + console.log(result); +} + +/** + * This sample demonstrates how to Creates or updates a trigger. + * + * @summary Creates or updates a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Update.json + */ +async function triggersUpdate() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const trigger: TriggerResource = { + properties: { + type: "ScheduleTrigger", + description: "Example description", + pipelines: [ + { + parameters: { outputBlobNameList: ["exampleoutput.csv"] }, + pipelineReference: { + type: "PipelineReference", + referenceName: "examplePipeline" + } + } + ], + recurrence: { + endTime: new Date("2018-06-16T00:55:14.905167Z"), + frequency: "Minute", + interval: 4, + startTime: new Date("2018-06-16T00:39:14.905167Z"), + timeZone: "UTC" + } + } + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.createOrUpdate( + resourceGroupName, + factoryName, + triggerName, + trigger + ); + console.log(result); +} + +async function main() { + triggersCreate(); + triggersUpdate(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersDeleteSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersDeleteSample.ts new file mode 100644 index 000000000000..51afd7f271ca --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersDeleteSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Deletes a trigger. + * + * @summary Deletes a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Delete.json + */ +async function triggersDelete() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.delete( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersDelete(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetEventSubscriptionStatusSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetEventSubscriptionStatusSample.ts new file mode 100644 index 000000000000..2e1be50fdf1c --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetEventSubscriptionStatusSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Get a trigger's event subscription status. + * + * @summary Get a trigger's event subscription status. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_GetEventSubscriptionStatus.json + */ +async function triggersGetEventSubscriptionStatus() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.getEventSubscriptionStatus( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersGetEventSubscriptionStatus(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetSample.ts new file mode 100644 index 000000000000..ed748c1aadcb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersGetSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Gets a trigger. + * + * @summary Gets a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Get.json + */ +async function triggersGet() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.get( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersGet(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersListByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersListByFactorySample.ts new file mode 100644 index 000000000000..3cb0051bc36b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersListByFactorySample.ts @@ -0,0 +1,46 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Lists triggers. + * + * @summary Lists triggers. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_ListByFactory.json + */ +async function triggersListByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const resArray = new Array(); + for await (let item of client.triggers.listByFactory( + resourceGroupName, + factoryName + )) { + resArray.push(item); + } + console.log(resArray); +} + +async function main() { + triggersListByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersQueryByFactorySample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersQueryByFactorySample.ts new file mode 100644 index 000000000000..73bccf47c8a2 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersQueryByFactorySample.ts @@ -0,0 +1,50 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { + TriggerFilterParameters, + DataFactoryManagementClient +} from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Query triggers. + * + * @summary Query triggers. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_QueryByFactory.json + */ +async function triggersQueryByFactory() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const filterParameters: TriggerFilterParameters = { + parentTriggerName: "exampleTrigger" + }; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.queryByFactory( + resourceGroupName, + factoryName, + filterParameters + ); + console.log(result); +} + +async function main() { + triggersQueryByFactory(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStartSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStartSample.ts new file mode 100644 index 000000000000..5182a9420f0e --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStartSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Starts a trigger. + * + * @summary Starts a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Start.json + */ +async function triggersStart() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginStartAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersStart(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStopSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStopSample.ts new file mode 100644 index 000000000000..6523c22a33eb --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersStopSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Stops a trigger. + * + * @summary Stops a trigger. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_Stop.json + */ +async function triggersStop() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginStopAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersStop(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersSubscribeToEventsSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersSubscribeToEventsSample.ts new file mode 100644 index 000000000000..0c592928ad89 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersSubscribeToEventsSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Subscribe event trigger to events. + * + * @summary Subscribe event trigger to events. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_SubscribeToEvents.json + */ +async function triggersSubscribeToEvents() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginSubscribeToEventsAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersSubscribeToEvents(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersUnsubscribeFromEventsSample.ts b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersUnsubscribeFromEventsSample.ts new file mode 100644 index 000000000000..b9116bdb4d97 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/src/triggersUnsubscribeFromEventsSample.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT License. +import { DataFactoryManagementClient } from "@azure/arm-datafactory"; +import { DefaultAzureCredential } from "@azure/identity"; +import * as dotenv from "dotenv"; + +dotenv.config(); + +/** + * This sample demonstrates how to Unsubscribe event trigger from events. + * + * @summary Unsubscribe event trigger from events. + * x-ms-original-file: specification/datafactory/resource-manager/Microsoft.DataFactory/stable/2018-06-01/examples/Triggers_UnsubscribeFromEvents.json + */ +async function triggersUnsubscribeFromEvents() { + const subscriptionId = + process.env["DATAFACTORY_SUBSCRIPTION_ID"] || + "12345678-1234-1234-1234-12345678abc"; + const resourceGroupName = + process.env["DATAFACTORY_RESOURCE_GROUP"] || "exampleResourceGroup"; + const factoryName = "exampleFactoryName"; + const triggerName = "exampleTrigger"; + const credential = new DefaultAzureCredential(); + const client = new DataFactoryManagementClient(credential, subscriptionId); + const result = await client.triggers.beginUnsubscribeFromEventsAndWait( + resourceGroupName, + factoryName, + triggerName + ); + console.log(result); +} + +async function main() { + triggersUnsubscribeFromEvents(); +} + +main().catch(console.error); diff --git a/sdk/datafactory/arm-datafactory/samples/v11/typescript/tsconfig.json b/sdk/datafactory/arm-datafactory/samples/v11/typescript/tsconfig.json new file mode 100644 index 000000000000..e26ce2a6d8f7 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/samples/v11/typescript/tsconfig.json @@ -0,0 +1,17 @@ +{ + "compilerOptions": { + "target": "ES2020", + "module": "commonjs", + "moduleResolution": "node", + "resolveJsonModule": true, + "esModuleInterop": true, + "allowSyntheticDefaultImports": true, + "strict": true, + "alwaysStrict": true, + "outDir": "dist", + "rootDir": "src" + }, + "include": [ + "src/**.ts" + ] +} diff --git a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts index 9236af8667da..8f2d722e3142 100644 --- a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts +++ b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts @@ -32,6 +32,7 @@ import { DataFlowDebugSessionImpl, ManagedVirtualNetworksImpl, ManagedPrivateEndpointsImpl, + CredentialOperationsImpl, PrivateEndPointConnectionsImpl, PrivateEndpointConnectionImpl, PrivateLinkResourcesImpl, @@ -55,6 +56,7 @@ import { DataFlowDebugSession, ManagedVirtualNetworks, ManagedPrivateEndpoints, + CredentialOperations, PrivateEndPointConnections, PrivateEndpointConnection, PrivateLinkResources, @@ -94,7 +96,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-datafactory/10.10.2`; + const packageDetails = `azsdk-js-arm-datafactory/11.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` @@ -167,6 +169,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this); this.managedVirtualNetworks = new ManagedVirtualNetworksImpl(this); this.managedPrivateEndpoints = new ManagedPrivateEndpointsImpl(this); + this.credentialOperations = new CredentialOperationsImpl(this); this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this); this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this); this.privateLinkResources = new PrivateLinkResourcesImpl(this); @@ -219,6 +222,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { dataFlowDebugSession: DataFlowDebugSession; managedVirtualNetworks: ManagedVirtualNetworks; managedPrivateEndpoints: ManagedPrivateEndpoints; + credentialOperations: CredentialOperations; privateEndPointConnections: PrivateEndPointConnections; privateEndpointConnection: PrivateEndpointConnection; privateLinkResources: PrivateLinkResources; diff --git a/sdk/datafactory/arm-datafactory/src/lroImpl.ts b/sdk/datafactory/arm-datafactory/src/lroImpl.ts index 518d5f053b4e..dd803cd5e28c 100644 --- a/sdk/datafactory/arm-datafactory/src/lroImpl.ts +++ b/sdk/datafactory/arm-datafactory/src/lroImpl.ts @@ -6,29 +6,37 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ +// Copyright (c) Microsoft Corporation. +// Licensed under the MIT license. + +import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; -export class LroImpl implements LongRunningOperation { - constructor( - private sendOperationFn: (args: any, spec: any) => Promise>, - private args: Record, - private spec: { - readonly requestBody?: unknown; - readonly path?: string; - readonly httpMethod: string; - } & Record, - public requestPath: string = spec.path!, - public requestMethod: string = spec.httpMethod - ) {} - public async sendInitialRequest(): Promise> { - return this.sendOperationFn(this.args, this.spec); - } - public async sendPollRequest(path: string): Promise> { - const { requestBody, ...restSpec } = this.spec; - return this.sendOperationFn(this.args, { - ...restSpec, - path, - httpMethod: "GET" - }); - } +export function createLroSpec(inputs: { + sendOperationFn: (args: any, spec: any) => Promise>; + args: Record; + spec: { + readonly requestBody?: unknown; + readonly path?: string; + readonly httpMethod: string; + } & Record; +}): LongRunningOperation { + const { args, spec, sendOperationFn } = inputs; + return { + requestMethod: spec.httpMethod, + requestPath: spec.path!, + sendInitialRequest: () => sendOperationFn(args, spec), + sendPollRequest: ( + path: string, + options?: { abortSignal?: AbortSignalLike } + ) => { + const { requestBody, ...restSpec } = spec; + return sendOperationFn(args, { + ...restSpec, + httpMethod: "GET", + path, + abortSignal: options?.abortSignal + }); + } + }; } diff --git a/sdk/datafactory/arm-datafactory/src/models/index.ts b/sdk/datafactory/arm-datafactory/src/models/index.ts index 59949fe9f3f4..148a339dce1d 100644 --- a/sdk/datafactory/arm-datafactory/src/models/index.ts +++ b/sdk/datafactory/arm-datafactory/src/models/index.ts @@ -255,14 +255,14 @@ export type DataFlowUnion = | MappingDataFlow | Flowlet | WranglingDataFlow; +export type CredentialUnion = + | Credential + | ManagedIdentityCredential + | ServicePrincipalCredential; export type SecretBaseUnion = | SecretBase | SecureString | AzureKeyVaultSecretReference; -export type CredentialUnion = - | Credential - | ServicePrincipalCredential - | ManagedIdentityCredential; export type DatasetLocationUnion = | DatasetLocation | AzureBlobStorageLocation @@ -2242,6 +2242,26 @@ export interface ConnectionStateProperties { readonly status?: string; } +/** A list of credential resources. */ +export interface CredentialListResponse { + /** List of credentials. */ + value: ManagedIdentityCredentialResource[]; + /** The link to the next page of results, if any remaining results exist. */ + nextLink?: string; +} + +/** The Azure Data Factory nested object which contains the information and credential which can be used to connect with related store or compute resource. */ +export interface Credential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ManagedIdentity" | "ServicePrincipal"; + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Credential description. */ + description?: string; + /** List of tags that can be used for describing the Credential. */ + annotations?: any[]; +} + /** A list of linked service resources. */ export interface PrivateEndpointConnectionListResponse { /** List of Private Endpoint Connections. */ @@ -2412,18 +2432,6 @@ export interface CredentialReference { referenceName: string; } -/** The Azure Data Factory nested object which contains the information and credential which can be used to connect with related store or compute resource. */ -export interface Credential { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "ServicePrincipal" | "ManagedIdentity"; - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; - /** Credential description. */ - description?: string; - /** List of tags that can be used for describing the Credential. */ - annotations?: any[]; -} - /** A data flow transformation. */ export interface Transformation { /** Transformation name. */ @@ -2524,6 +2532,10 @@ export interface IntegrationRuntimeComputeProperties { dataFlowProperties?: IntegrationRuntimeDataFlowProperties; /** VNet properties for managed integration runtime. */ vNetProperties?: IntegrationRuntimeVNetProperties; + /** CopyComputeScale properties for managed integration runtime. */ + copyComputeScaleProperties?: CopyComputeScaleProperties; + /** PipelineExternalComputeScale properties for managed integration runtime. */ + pipelineExternalComputeScaleProperties?: PipelineExternalComputeScaleProperties; } /** Data flow properties for managed integration runtime. */ @@ -2554,6 +2566,24 @@ export interface IntegrationRuntimeVNetProperties { subnetId?: string; } +/** CopyComputeScale properties for managed integration runtime. */ +export interface CopyComputeScaleProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** DIU number setting reserved for copy activity execution. Supported values are multiples of 4 in range 4-256. */ + dataIntegrationUnit?: number; + /** Time to live (in minutes) setting of integration runtime which will execute copy activity. */ + timeToLive?: number; +} + +/** PipelineExternalComputeScale properties for managed integration runtime. */ +export interface PipelineExternalComputeScaleProperties { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; + /** Time to live (in minutes) setting of integration runtime which will execute pipeline and external activity. */ + timeToLive?: number; +} + /** SSIS properties for managed integration runtime. */ export interface IntegrationRuntimeSsisProperties { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -3630,6 +3660,14 @@ export interface SynapseSparkJobReference { referenceName: any; } +/** Spark configuration reference. */ +export interface SparkConfigurationParametrizationReference { + /** Spark configuration reference type. */ + type: SparkConfigurationReferenceType; + /** Reference spark configuration name. Type: string (or Expression with resultType string). */ + referenceName: any; +} + /** The workflow trigger recurrence. */ export interface ScheduleTriggerRecurrence { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -3847,6 +3885,12 @@ export interface ManagedPrivateEndpointResource extends SubResource { properties: ManagedPrivateEndpoint; } +/** Credential resource type. */ +export interface ManagedIdentityCredentialResource extends SubResource { + /** Managed Identity Credential properties. */ + properties: ManagedIdentityCredential; +} + /** Private Endpoint Connection ARM resource. */ export interface PrivateEndpointConnectionResource extends SubResource { /** Core resource properties */ @@ -4074,6 +4118,10 @@ export interface AzureBlobStorageLinkedService extends LinkedService { encryptedCredential?: string; /** The credential reference containing authentication information. */ credential?: CredentialReference; + /** The type used for authentication. Type: string. */ + authenticationType?: AzureStorageAuthenticationType; + /** Container uri of the Azure Blob Storage resource only support for anonymous access. Type: string (or Expression with resultType string). */ + containerUri?: any; } /** The azure table storage linked service. */ @@ -7538,6 +7586,26 @@ export interface LinkedServiceDebugResource extends SubResourceDebugResource { properties: LinkedServiceUnion; } +/** Managed identity credential. */ +export interface ManagedIdentityCredential extends Credential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ManagedIdentity"; + /** The resource id of user assigned managed identity */ + resourceId?: string; +} + +/** Service principal credential. */ +export interface ServicePrincipalCredential extends Credential { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "ServicePrincipal"; + /** The app ID of the service principal used to authenticate */ + servicePrincipalId?: any; + /** The key of the service principal used to authenticate. */ + servicePrincipalKey?: AzureKeyVaultSecretReference; + /** The ID of the tenant to which the service principal belongs */ + tenant?: any; +} + /** Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List API calls. */ export interface SecureString extends SecretBase { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -7558,26 +7626,6 @@ export interface AzureKeyVaultSecretReference extends SecretBase { secretVersion?: any; } -/** Service principal credential. */ -export interface ServicePrincipalCredential extends Credential { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "ServicePrincipal"; - /** The app ID of the service principal used to authenticate */ - servicePrincipalId?: any; - /** The key of the service principal used to authenticate. */ - servicePrincipalKey?: AzureKeyVaultSecretReference; - /** The ID of the tenant to which the service principal belongs */ - tenant?: any; -} - -/** Managed identity credential. */ -export interface ManagedIdentityCredential extends Credential { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "ManagedIdentity"; - /** The resource id of user assigned managed identity */ - resourceId?: string; -} - /** Transformation for data flow source. */ export interface DataFlowSource extends Transformation { /** Schema linked service reference. */ @@ -8811,7 +8859,7 @@ export interface SnowflakeSource extends CopySource { /** Snowflake Sql query. Type: string (or Expression with resultType string). */ query?: any; /** Snowflake export settings. */ - exportSettings?: SnowflakeExportCopyCommand; + exportSettings: SnowflakeExportCopyCommand; } /** A copy activity Azure Databricks Delta Lake source. */ @@ -10006,6 +10054,8 @@ export interface SynapseSparkJobDefinitionActivity extends ExecutionActivity { arguments?: any[]; /** The main file used for the job, which will override the 'file' of the spark job definition you provide. Type: string (or Expression with resultType string). */ file?: any; + /** Scanning subfolders from the root folder of the main definition file, these files will be added as reference files. The folders named 'jars', 'pyFiles', 'files' or 'archives' will be scanned, and the folders name are case sensitive. Type: boolean (or Expression with resultType boolean). */ + scanFolder?: any; /** The fully-qualified identifier or the main class that is in the main definition file, which will override the 'className' of the spark job definition you provide. Type: string (or Expression with resultType string). */ className?: any; /** (Deprecated. Please use pythonCodeReference and filesV2) Additional files used for reference in the main definition file, which will override the 'files' of the spark job definition you provide. */ @@ -10022,8 +10072,14 @@ export interface SynapseSparkJobDefinitionActivity extends ExecutionActivity { conf?: any; /** Number of core and memory to be used for driver allocated in the specified Spark pool for the job, which will be used for overriding 'driverCores' and 'driverMemory' of the spark job definition you provide. Type: string (or Expression with resultType string). */ driverSize?: any; - /** Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. */ - numExecutors?: number; + /** Number of executors to launch for this job, which will override the 'numExecutors' of the spark job definition you provide. Type: integer (or Expression with resultType integer). */ + numExecutors?: any; + /** The type of the spark config. */ + configurationType?: ConfigurationType; + /** The spark configuration of the spark job. */ + targetSparkConfiguration?: SparkConfigurationParametrizationReference; + /** Spark configuration property. */ + sparkConfig?: { [propertyName: string]: any }; } /** Trigger that creates pipeline runs periodically, on schedule. */ @@ -11441,6 +11497,33 @@ export enum KnownIntegrationRuntimeInternalChannelEncryptionMode { */ export type IntegrationRuntimeInternalChannelEncryptionMode = string; +/** Known values of {@link AzureStorageAuthenticationType} that the service accepts. */ +export enum KnownAzureStorageAuthenticationType { + /** Anonymous */ + Anonymous = "Anonymous", + /** AccountKey */ + AccountKey = "AccountKey", + /** SasUri */ + SasUri = "SasUri", + /** ServicePrincipal */ + ServicePrincipal = "ServicePrincipal", + /** Msi */ + Msi = "Msi" +} + +/** + * Defines values for AzureStorageAuthenticationType. \ + * {@link KnownAzureStorageAuthenticationType} can be used interchangeably with AzureStorageAuthenticationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Anonymous** \ + * **AccountKey** \ + * **SasUri** \ + * **ServicePrincipal** \ + * **Msi** + */ +export type AzureStorageAuthenticationType = string; + /** Known values of {@link SqlAlwaysEncryptedAkvAuthType} that the service accepts. */ export enum KnownSqlAlwaysEncryptedAkvAuthType { /** ServicePrincipal */ @@ -12530,6 +12613,42 @@ export enum KnownSparkJobReferenceType { */ export type SparkJobReferenceType = string; +/** Known values of {@link ConfigurationType} that the service accepts. */ +export enum KnownConfigurationType { + /** Default */ + Default = "Default", + /** Customized */ + Customized = "Customized", + /** Artifact */ + Artifact = "Artifact" +} + +/** + * Defines values for ConfigurationType. \ + * {@link KnownConfigurationType} can be used interchangeably with ConfigurationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** \ + * **Customized** \ + * **Artifact** + */ +export type ConfigurationType = string; + +/** Known values of {@link SparkConfigurationReferenceType} that the service accepts. */ +export enum KnownSparkConfigurationReferenceType { + /** SparkConfigurationReference */ + SparkConfigurationReference = "SparkConfigurationReference" +} + +/** + * Defines values for SparkConfigurationReferenceType. \ + * {@link KnownSparkConfigurationReferenceType} can be used interchangeably with SparkConfigurationReferenceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **SparkConfigurationReference** + */ +export type SparkConfigurationReferenceType = string; + /** Known values of {@link RecurrenceFrequency} that the service accepts. */ export enum KnownRecurrenceFrequency { /** NotSpecified */ @@ -13791,6 +13910,44 @@ export interface ManagedPrivateEndpointsListByFactoryNextOptionalParams /** Contains response data for the listByFactoryNext operation. */ export type ManagedPrivateEndpointsListByFactoryNextResponse = ManagedPrivateEndpointListResponse; +/** Optional parameters. */ +export interface CredentialOperationsListByFactoryOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByFactory operation. */ +export type CredentialOperationsListByFactoryResponse = CredentialListResponse; + +/** Optional parameters. */ +export interface CredentialOperationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** ETag of the credential entity. Should only be specified for update, for which it should match existing entity or can be * for unconditional update. */ + ifMatch?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type CredentialOperationsCreateOrUpdateResponse = ManagedIdentityCredentialResource; + +/** Optional parameters. */ +export interface CredentialOperationsGetOptionalParams + extends coreClient.OperationOptions { + /** ETag of the credential entity. Should only be specified for get. If the ETag matches the existing entity tag, or if * was provided, then no content will be returned. */ + ifNoneMatch?: string; +} + +/** Contains response data for the get operation. */ +export type CredentialOperationsGetResponse = ManagedIdentityCredentialResource; + +/** Optional parameters. */ +export interface CredentialOperationsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CredentialOperationsListByFactoryNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByFactoryNext operation. */ +export type CredentialOperationsListByFactoryNextResponse = CredentialListResponse; + /** Optional parameters. */ export interface PrivateEndPointConnectionsListByFactoryOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/datafactory/arm-datafactory/src/models/mappers.ts b/sdk/datafactory/arm-datafactory/src/models/mappers.ts index 64683bb8dd75..8c6af52cfa68 100644 --- a/sdk/datafactory/arm-datafactory/src/models/mappers.ts +++ b/sdk/datafactory/arm-datafactory/src/models/mappers.ts @@ -3523,6 +3523,74 @@ export const ConnectionStateProperties: coreClient.CompositeMapper = { } }; +export const CredentialListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CredentialListResponse", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedIdentityCredentialResource" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; + +export const Credential: coreClient.CompositeMapper = { + serializedName: "Credential", + type: { + name: "Composite", + className: "Credential", + uberParent: "Credential", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type" + }, + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + annotations: { + serializedName: "annotations", + type: { + name: "Sequence", + element: { + type: { + name: "any" + } + } + } + } + } + } +}; + export const PrivateEndpointConnectionListResponse: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4009,46 +4077,6 @@ export const CredentialReference: coreClient.CompositeMapper = { } }; -export const Credential: coreClient.CompositeMapper = { - serializedName: "Credential", - type: { - name: "Composite", - className: "Credential", - uberParent: "Credential", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type" - }, - modelProperties: { - type: { - serializedName: "type", - required: true, - type: { - name: "String" - } - }, - description: { - serializedName: "description", - type: { - name: "String" - } - }, - annotations: { - serializedName: "annotations", - type: { - name: "Sequence", - element: { - type: { - name: "any" - } - } - } - } - } - } -}; - export const Transformation: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4277,6 +4305,20 @@ export const IntegrationRuntimeComputeProperties: coreClient.CompositeMapper = { name: "Composite", className: "IntegrationRuntimeVNetProperties" } + }, + copyComputeScaleProperties: { + serializedName: "copyComputeScaleProperties", + type: { + name: "Composite", + className: "CopyComputeScaleProperties" + } + }, + pipelineExternalComputeScaleProperties: { + serializedName: "pipelineExternalComputeScaleProperties", + type: { + name: "Composite", + className: "PipelineExternalComputeScaleProperties" + } } } } @@ -4358,6 +4400,53 @@ export const IntegrationRuntimeVNetProperties: coreClient.CompositeMapper = { } }; +export const CopyComputeScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CopyComputeScaleProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + dataIntegrationUnit: { + constraints: { + InclusiveMinimum: 4 + }, + serializedName: "dataIntegrationUnit", + type: { + name: "Number" + } + }, + timeToLive: { + constraints: { + InclusiveMinimum: 5 + }, + serializedName: "timeToLive", + type: { + name: "Number" + } + } + } + } +}; + +export const PipelineExternalComputeScaleProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PipelineExternalComputeScaleProperties", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + timeToLive: { + constraints: { + InclusiveMinimum: 5 + }, + serializedName: "timeToLive", + type: { + name: "Number" + } + } + } + } +}; + export const IntegrationRuntimeSsisProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -6835,6 +6924,29 @@ export const SynapseSparkJobReference: coreClient.CompositeMapper = { } }; +export const SparkConfigurationParametrizationReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SparkConfigurationParametrizationReference", + modelProperties: { + type: { + serializedName: "type", + required: true, + type: { + name: "String" + } + }, + referenceName: { + serializedName: "referenceName", + required: true, + type: { + name: "any" + } + } + } + } +}; + export const ScheduleTriggerRecurrence: coreClient.CompositeMapper = { type: { name: "Composite", @@ -7472,6 +7584,23 @@ export const ManagedPrivateEndpointResource: coreClient.CompositeMapper = { } }; +export const ManagedIdentityCredentialResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ManagedIdentityCredentialResource", + modelProperties: { + ...SubResource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ManagedIdentityCredential" + } + } + } + } +}; + export const PrivateEndpointConnectionResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8028,6 +8157,18 @@ export const AzureBlobStorageLinkedService: coreClient.CompositeMapper = { name: "Composite", className: "CredentialReference" } + }, + authenticationType: { + serializedName: "typeProperties.authenticationType", + type: { + name: "String" + } + }, + containerUri: { + serializedName: "typeProperties.containerUri", + type: { + name: "any" + } } } } @@ -17862,18 +18003,18 @@ export const LinkedServiceDebugResource: coreClient.CompositeMapper = { } }; -export const SecureString: coreClient.CompositeMapper = { - serializedName: "SecureString", +export const ManagedIdentityCredential: coreClient.CompositeMapper = { + serializedName: "ManagedIdentity", type: { name: "Composite", - className: "SecureString", - uberParent: "SecretBase", - polymorphicDiscriminator: SecretBase.type.polymorphicDiscriminator, + className: "ManagedIdentityCredential", + uberParent: "Credential", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: Credential.type.polymorphicDiscriminator, modelProperties: { - ...SecretBase.type.modelProperties, - value: { - serializedName: "value", - required: true, + ...Credential.type.modelProperties, + resourceId: { + serializedName: "typeProperties.resourceId", type: { name: "String" } @@ -17882,39 +18023,6 @@ export const SecureString: coreClient.CompositeMapper = { } }; -export const AzureKeyVaultSecretReference: coreClient.CompositeMapper = { - serializedName: "AzureKeyVaultSecret", - type: { - name: "Composite", - className: "AzureKeyVaultSecretReference", - uberParent: "SecretBase", - polymorphicDiscriminator: SecretBase.type.polymorphicDiscriminator, - modelProperties: { - ...SecretBase.type.modelProperties, - store: { - serializedName: "store", - type: { - name: "Composite", - className: "LinkedServiceReference" - } - }, - secretName: { - serializedName: "secretName", - required: true, - type: { - name: "any" - } - }, - secretVersion: { - serializedName: "secretVersion", - type: { - name: "any" - } - } - } - } -}; - export const ServicePrincipalCredential: coreClient.CompositeMapper = { serializedName: "ServicePrincipal", type: { @@ -17948,18 +18056,18 @@ export const ServicePrincipalCredential: coreClient.CompositeMapper = { } }; -export const ManagedIdentityCredential: coreClient.CompositeMapper = { - serializedName: "ManagedIdentity", +export const SecureString: coreClient.CompositeMapper = { + serializedName: "SecureString", type: { name: "Composite", - className: "ManagedIdentityCredential", - uberParent: "Credential", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: Credential.type.polymorphicDiscriminator, + className: "SecureString", + uberParent: "SecretBase", + polymorphicDiscriminator: SecretBase.type.polymorphicDiscriminator, modelProperties: { - ...Credential.type.modelProperties, - resourceId: { - serializedName: "typeProperties.resourceId", + ...SecretBase.type.modelProperties, + value: { + serializedName: "value", + required: true, type: { name: "String" } @@ -17968,6 +18076,39 @@ export const ManagedIdentityCredential: coreClient.CompositeMapper = { } }; +export const AzureKeyVaultSecretReference: coreClient.CompositeMapper = { + serializedName: "AzureKeyVaultSecret", + type: { + name: "Composite", + className: "AzureKeyVaultSecretReference", + uberParent: "SecretBase", + polymorphicDiscriminator: SecretBase.type.polymorphicDiscriminator, + modelProperties: { + ...SecretBase.type.modelProperties, + store: { + serializedName: "store", + type: { + name: "Composite", + className: "LinkedServiceReference" + } + }, + secretName: { + serializedName: "secretName", + required: true, + type: { + name: "any" + } + }, + secretVersion: { + serializedName: "secretVersion", + type: { + name: "any" + } + } + } + } +}; + export const DataFlowSource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -24735,6 +24876,12 @@ export const SynapseSparkJobDefinitionActivity: coreClient.CompositeMapper = { name: "any" } }, + scanFolder: { + serializedName: "typeProperties.scanFolder", + type: { + name: "any" + } + }, className: { serializedName: "typeProperties.className", type: { @@ -24802,7 +24949,27 @@ export const SynapseSparkJobDefinitionActivity: coreClient.CompositeMapper = { numExecutors: { serializedName: "typeProperties.numExecutors", type: { - name: "Number" + name: "any" + } + }, + configurationType: { + serializedName: "typeProperties.configurationType", + type: { + name: "String" + } + }, + targetSparkConfiguration: { + serializedName: "typeProperties.targetSparkConfiguration", + type: { + name: "Composite", + className: "SparkConfigurationParametrizationReference" + } + }, + sparkConfig: { + serializedName: "typeProperties.sparkConfig", + type: { + name: "Dictionary", + value: { type: { name: "any" } } } } } @@ -26610,8 +26777,8 @@ export let discriminators = { Activity: Activity, Trigger: Trigger, DataFlow: DataFlow, - SecretBase: SecretBase, Credential: Credential, + SecretBase: SecretBase, DatasetLocation: DatasetLocation, DatasetStorageFormat: DatasetStorageFormat, CustomSetupBase: CustomSetupBase, @@ -26857,10 +27024,10 @@ export let discriminators = { "DataFlow.MappingDataFlow": MappingDataFlow, "DataFlow.Flowlet": Flowlet, "DataFlow.WranglingDataFlow": WranglingDataFlow, + "Credential.ManagedIdentity": ManagedIdentityCredential, + "Credential.ServicePrincipal": ServicePrincipalCredential, "SecretBase.SecureString": SecureString, "SecretBase.AzureKeyVaultSecret": AzureKeyVaultSecretReference, - "Credential.ServicePrincipal": ServicePrincipalCredential, - "Credential.ManagedIdentity": ManagedIdentityCredential, "DatasetLocation.AzureBlobStorageLocation": AzureBlobStorageLocation, "DatasetLocation.AzureBlobFSLocation": AzureBlobFSLocation, "DatasetLocation.AzureDataLakeStoreLocation": AzureDataLakeStoreLocation, diff --git a/sdk/datafactory/arm-datafactory/src/models/parameters.ts b/sdk/datafactory/arm-datafactory/src/models/parameters.ts index da13206c196d..6dadaebc8713 100644 --- a/sdk/datafactory/arm-datafactory/src/models/parameters.ts +++ b/sdk/datafactory/arm-datafactory/src/models/parameters.ts @@ -39,6 +39,7 @@ import { DataFlowDebugCommandRequest as DataFlowDebugCommandRequestMapper, ManagedVirtualNetworkResource as ManagedVirtualNetworkResourceMapper, ManagedPrivateEndpointResource as ManagedPrivateEndpointResourceMapper, + ManagedIdentityCredentialResource as ManagedIdentityCredentialResourceMapper, PrivateLinkConnectionApprovalRequestResource as PrivateLinkConnectionApprovalRequestResourceMapper, GlobalParameterResource as GlobalParameterResourceMapper } from "../models/mappers"; @@ -532,6 +533,29 @@ export const managedPrivateEndpointName: OperationURLParameter = { } }; +export const credential: OperationParameter = { + parameterPath: "credential", + mapper: ManagedIdentityCredentialResourceMapper +}; + +export const credentialName: OperationURLParameter = { + parameterPath: "credentialName", + mapper: { + constraints: { + Pattern: new RegExp( + "^([_A-Za-z0-9]|([_A-Za-z0-9][-_A-Za-z0-9]{0,125}[_A-Za-z0-9]))$" + ), + MaxLength: 127, + MinLength: 1 + }, + serializedName: "credentialName", + required: true, + type: { + name: "String" + } + } +}; + export const privateEndpointWrapper: OperationParameter = { parameterPath: "privateEndpointWrapper", mapper: PrivateLinkConnectionApprovalRequestResourceMapper diff --git a/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts b/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts new file mode 100644 index 000000000000..c51ea55a6265 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/src/operations/credentialOperations.ts @@ -0,0 +1,341 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { CredentialOperations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; +import { + ManagedIdentityCredentialResource, + CredentialOperationsListByFactoryNextOptionalParams, + CredentialOperationsListByFactoryOptionalParams, + CredentialOperationsListByFactoryResponse, + CredentialOperationsCreateOrUpdateOptionalParams, + CredentialOperationsCreateOrUpdateResponse, + CredentialOperationsGetOptionalParams, + CredentialOperationsGetResponse, + CredentialOperationsDeleteOptionalParams, + CredentialOperationsListByFactoryNextResponse +} from "../models"; + +/// +/** Class containing CredentialOperations operations. */ +export class CredentialOperationsImpl implements CredentialOperations { + private readonly client: DataFactoryManagementClient; + + /** + * Initialize a new instance of the class CredentialOperations class. + * @param client Reference to the service client + */ + constructor(client: DataFactoryManagementClient) { + this.client = client; + } + + /** + * List credentials. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param options The options parameters. + */ + public listByFactory( + resourceGroupName: string, + factoryName: string, + options?: CredentialOperationsListByFactoryOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listByFactoryPagingAll( + resourceGroupName, + factoryName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listByFactoryPagingPage( + resourceGroupName, + factoryName, + options, + settings + ); + } + }; + } + + private async *listByFactoryPagingPage( + resourceGroupName: string, + factoryName: string, + options?: CredentialOperationsListByFactoryOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: CredentialOperationsListByFactoryResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listByFactory( + resourceGroupName, + factoryName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listByFactoryNext( + resourceGroupName, + factoryName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listByFactoryPagingAll( + resourceGroupName: string, + factoryName: string, + options?: CredentialOperationsListByFactoryOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listByFactoryPagingPage( + resourceGroupName, + factoryName, + options + )) { + yield* page; + } + } + + /** + * List credentials. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param options The options parameters. + */ + private _listByFactory( + resourceGroupName: string, + factoryName: string, + options?: CredentialOperationsListByFactoryOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, factoryName, options }, + listByFactoryOperationSpec + ); + } + + /** + * Creates or updates a credential. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name + * @param credential Credential resource definition. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + factoryName: string, + credentialName: string, + credential: ManagedIdentityCredentialResource, + options?: CredentialOperationsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, factoryName, credentialName, credential, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Gets a credential. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + factoryName: string, + credentialName: string, + options?: CredentialOperationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, factoryName, credentialName, options }, + getOperationSpec + ); + } + + /** + * Deletes a credential. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + factoryName: string, + credentialName: string, + options?: CredentialOperationsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, factoryName, credentialName, options }, + deleteOperationSpec + ); + } + + /** + * ListByFactoryNext + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param nextLink The nextLink from the previous successful call to the ListByFactory method. + * @param options The options parameters. + */ + private _listByFactoryNext( + resourceGroupName: string, + factoryName: string, + nextLink: string, + options?: CredentialOperationsListByFactoryNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, factoryName, nextLink, options }, + listByFactoryNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listByFactoryOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialListResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.factoryName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ManagedIdentityCredentialResource + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.credential, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.factoryName, + Parameters.credentialName + ], + headerParameters: [ + Parameters.accept, + Parameters.contentType, + Parameters.ifMatch + ], + mediaType: "json", + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ManagedIdentityCredentialResource + }, + 304: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.factoryName, + Parameters.credentialName + ], + headerParameters: [Parameters.accept, Parameters.ifNoneMatch], + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.factoryName, + Parameters.credentialName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listByFactoryNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CredentialListResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + urlParameters: [ + Parameters.$host, + Parameters.nextLink, + Parameters.subscriptionId, + Parameters.resourceGroupName, + Parameters.factoryName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts b/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts index 868245a28eff..dce6e59270c3 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/dataFlowDebugSession.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { DataFlowDebugSessionInfo, DataFlowDebugSessionQueryByFactoryNextOptionalParams, @@ -144,8 +148,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { request: CreateDataFlowDebugSessionRequest, options?: DataFlowDebugSessionCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DataFlowDebugSessionCreateResponse > > { @@ -155,7 +159,7 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -188,13 +192,16 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, request, options }, - createOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, request, options }, + spec: createOperationSpec + }); + const poller = await createHttpPoller< + DataFlowDebugSessionCreateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -291,8 +298,8 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { request: DataFlowDebugCommandRequest, options?: DataFlowDebugSessionExecuteCommandOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DataFlowDebugSessionExecuteCommandResponse > > { @@ -302,7 +309,7 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -335,13 +342,16 @@ export class DataFlowDebugSessionImpl implements DataFlowDebugSession { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, request, options }, - executeCommandOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, request, options }, + spec: executeCommandOperationSpec + }); + const poller = await createHttpPoller< + DataFlowDebugSessionExecuteCommandResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/datafactory/arm-datafactory/src/operations/index.ts b/sdk/datafactory/arm-datafactory/src/operations/index.ts index b877568ac19c..f62a8123bec3 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/index.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/index.ts @@ -23,6 +23,7 @@ export * from "./dataFlows"; export * from "./dataFlowDebugSession"; export * from "./managedVirtualNetworks"; export * from "./managedPrivateEndpoints"; +export * from "./credentialOperations"; export * from "./privateEndPointConnections"; export * from "./privateEndpointConnection"; export * from "./privateLinkResources"; diff --git a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts index b1ef04e80bb3..20aa82241e0f 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimeObjectMetadata.ts @@ -11,8 +11,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { IntegrationRuntimeObjectMetadataRefreshOptionalParams, IntegrationRuntimeObjectMetadataRefreshResponse, @@ -46,8 +50,8 @@ export class IntegrationRuntimeObjectMetadataImpl integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimeObjectMetadataRefreshResponse > > { @@ -57,7 +61,7 @@ export class IntegrationRuntimeObjectMetadataImpl ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -90,13 +94,16 @@ export class IntegrationRuntimeObjectMetadataImpl }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, integrationRuntimeName, options }, - refreshOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, integrationRuntimeName, options }, + spec: refreshOperationSpec + }); + const poller = await createHttpPoller< + IntegrationRuntimeObjectMetadataRefreshResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts index 2f141665743e..28cbd7606b8f 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/integrationRuntimes.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { IntegrationRuntimeResource, IntegrationRuntimesListByFactoryNextOptionalParams, @@ -380,8 +384,8 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimesStartResponse > > { @@ -391,7 +395,7 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -424,13 +428,16 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, integrationRuntimeName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, integrationRuntimeName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller< + IntegrationRuntimesStartResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -471,14 +478,14 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -511,13 +518,13 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, integrationRuntimeName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, integrationRuntimeName, options }, + spec: stopOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/datafactory/arm-datafactory/src/operations/triggers.ts b/sdk/datafactory/arm-datafactory/src/operations/triggers.ts index 858b8303b35b..da0991da6cbe 100644 --- a/sdk/datafactory/arm-datafactory/src/operations/triggers.ts +++ b/sdk/datafactory/arm-datafactory/src/operations/triggers.ts @@ -13,8 +13,12 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { DataFactoryManagementClient } from "../dataFactoryManagementClient"; -import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro"; -import { LroImpl } from "../lroImpl"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; import { TriggerResource, TriggersListByFactoryNextOptionalParams, @@ -244,8 +248,8 @@ export class TriggersImpl implements Triggers { triggerName: string, options?: TriggersSubscribeToEventsOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TriggersSubscribeToEventsResponse > > { @@ -255,7 +259,7 @@ export class TriggersImpl implements Triggers { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -288,13 +292,16 @@ export class TriggersImpl implements Triggers { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, triggerName, options }, - subscribeToEventsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, triggerName, options }, + spec: subscribeToEventsOperationSpec + }); + const poller = await createHttpPoller< + TriggersSubscribeToEventsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -355,8 +362,8 @@ export class TriggersImpl implements Triggers { triggerName: string, options?: TriggersUnsubscribeFromEventsOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TriggersUnsubscribeFromEventsResponse > > { @@ -366,7 +373,7 @@ export class TriggersImpl implements Triggers { ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -399,13 +406,16 @@ export class TriggersImpl implements Triggers { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, triggerName, options }, - unsubscribeFromEventsOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, triggerName, options }, + spec: unsubscribeFromEventsOperationSpec + }); + const poller = await createHttpPoller< + TriggersUnsubscribeFromEventsResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -446,14 +456,14 @@ export class TriggersImpl implements Triggers { factoryName: string, triggerName: string, options?: TriggersStartOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -486,13 +496,13 @@ export class TriggersImpl implements Triggers { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, triggerName, options }, - startOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, triggerName, options }, + spec: startOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); @@ -533,14 +543,14 @@ export class TriggersImpl implements Triggers { factoryName: string, triggerName: string, options?: TriggersStopOptionalParams - ): Promise, void>> { + ): Promise, void>> { const directSendOperation = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ): Promise => { return this.client.sendOperationRequest(args, spec); }; - const sendOperation = async ( + const sendOperationFn = async ( args: coreClient.OperationArguments, spec: coreClient.OperationSpec ) => { @@ -573,13 +583,13 @@ export class TriggersImpl implements Triggers { }; }; - const lro = new LroImpl( - sendOperation, - { resourceGroupName, factoryName, triggerName, options }, - stopOperationSpec - ); - const poller = new LroEngine(lro, { - resumeFrom: options?.resumeFrom, + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, factoryName, triggerName, options }, + spec: stopOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, intervalInMs: options?.updateIntervalInMs }); await poller.poll(); diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts new file mode 100644 index 000000000000..4fb383f8e57b --- /dev/null +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/credentialOperations.ts @@ -0,0 +1,75 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + ManagedIdentityCredentialResource, + CredentialOperationsListByFactoryOptionalParams, + CredentialOperationsCreateOrUpdateOptionalParams, + CredentialOperationsCreateOrUpdateResponse, + CredentialOperationsGetOptionalParams, + CredentialOperationsGetResponse, + CredentialOperationsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a CredentialOperations. */ +export interface CredentialOperations { + /** + * List credentials. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param options The options parameters. + */ + listByFactory( + resourceGroupName: string, + factoryName: string, + options?: CredentialOperationsListByFactoryOptionalParams + ): PagedAsyncIterableIterator; + /** + * Creates or updates a credential. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name + * @param credential Credential resource definition. + * @param options The options parameters. + */ + createOrUpdate( + resourceGroupName: string, + factoryName: string, + credentialName: string, + credential: ManagedIdentityCredentialResource, + options?: CredentialOperationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Gets a credential. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name + * @param options The options parameters. + */ + get( + resourceGroupName: string, + factoryName: string, + credentialName: string, + options?: CredentialOperationsGetOptionalParams + ): Promise; + /** + * Deletes a credential. + * @param resourceGroupName The resource group name. + * @param factoryName The factory name. + * @param credentialName Credential name + * @param options The options parameters. + */ + delete( + resourceGroupName: string, + factoryName: string, + credentialName: string, + options?: CredentialOperationsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts index 8caf6156b190..e0228fd9e133 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/dataFlowDebugSession.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { DataFlowDebugSessionInfo, DataFlowDebugSessionQueryByFactoryOptionalParams, @@ -51,8 +51,8 @@ export interface DataFlowDebugSession { request: CreateDataFlowDebugSessionRequest, options?: DataFlowDebugSessionCreateOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DataFlowDebugSessionCreateResponse > >; @@ -108,8 +108,8 @@ export interface DataFlowDebugSession { request: DataFlowDebugCommandRequest, options?: DataFlowDebugSessionExecuteCommandOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, DataFlowDebugSessionExecuteCommandResponse > >; diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts index b877568ac19c..f62a8123bec3 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/index.ts @@ -23,6 +23,7 @@ export * from "./dataFlows"; export * from "./dataFlowDebugSession"; export * from "./managedVirtualNetworks"; export * from "./managedPrivateEndpoints"; +export * from "./credentialOperations"; export * from "./privateEndPointConnections"; export * from "./privateEndpointConnection"; export * from "./privateLinkResources"; diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts index 992f5578cd2a..3cffdd5e537d 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimeObjectMetadata.ts @@ -6,7 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { IntegrationRuntimeObjectMetadataRefreshOptionalParams, IntegrationRuntimeObjectMetadataRefreshResponse, @@ -29,8 +29,8 @@ export interface IntegrationRuntimeObjectMetadata { integrationRuntimeName: string, options?: IntegrationRuntimeObjectMetadataRefreshOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimeObjectMetadataRefreshResponse > >; diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts index 69e0c7ba0c63..1240d01e8001 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/integrationRuntimes.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { IntegrationRuntimeResource, IntegrationRuntimesListByFactoryOptionalParams, @@ -198,8 +198,8 @@ export interface IntegrationRuntimes { integrationRuntimeName: string, options?: IntegrationRuntimesStartOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, IntegrationRuntimesStartResponse > >; @@ -228,7 +228,7 @@ export interface IntegrationRuntimes { factoryName: string, integrationRuntimeName: string, options?: IntegrationRuntimesStopOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Stops a ManagedReserved type integration runtime. * @param resourceGroupName The resource group name. diff --git a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts index f9ed1d5c8d49..5a714e0c4dfe 100644 --- a/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts +++ b/sdk/datafactory/arm-datafactory/src/operationsInterfaces/triggers.ts @@ -7,7 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { PollerLike, PollOperationState } from "@azure/core-lro"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; import { TriggerResource, TriggersListByFactoryOptionalParams, @@ -110,8 +110,8 @@ export interface Triggers { triggerName: string, options?: TriggersSubscribeToEventsOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TriggersSubscribeToEventsResponse > >; @@ -154,8 +154,8 @@ export interface Triggers { triggerName: string, options?: TriggersUnsubscribeFromEventsOptionalParams ): Promise< - PollerLike< - PollOperationState, + SimplePollerLike< + OperationState, TriggersUnsubscribeFromEventsResponse > >; @@ -184,7 +184,7 @@ export interface Triggers { factoryName: string, triggerName: string, options?: TriggersStartOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Starts a trigger. * @param resourceGroupName The resource group name. @@ -210,7 +210,7 @@ export interface Triggers { factoryName: string, triggerName: string, options?: TriggersStopOptionalParams - ): Promise, void>>; + ): Promise, void>>; /** * Stops a trigger. * @param resourceGroupName The resource group name. diff --git a/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts b/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts index 0db4135e9c68..33b48cc8bea0 100644 --- a/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts +++ b/sdk/datafactory/arm-datafactory/test/datafactory_examples.spec.ts @@ -43,6 +43,7 @@ describe("Datafactory test", () => { let resourceGroup: string; let factoryName: string; let factory: Factory; + let sessionId: string; beforeEach(async function (this: Context) { recorder = new Recorder(this.currentTest); @@ -70,6 +71,33 @@ describe("Datafactory test", () => { assert.equal(res.name, factoryName); }); + it("dataFlowDebugSession create test", async function () { + factory = { location: location } + const res = await client.dataFlowDebugSession.beginCreateAndWait( + resourceGroup, + factoryName, + { + integrationRuntime: { + name: "ir1", + properties: { + type: "Managed", + computeProperties: { + dataFlowProperties: { + computeType: "General", + coreCount: 48, + timeToLive: 10 + }, + location: "AutoResolve" + } + } + }, + timeToLive: 60 + } + ); + + return sessionId = String(res.sessionId) + }); + it("datafactory get test", async function () { const res = await client.factories.get(resourceGroup, factoryName); assert.equal(res.name, factoryName); @@ -83,6 +111,16 @@ describe("Datafactory test", () => { assert.equal(resArray.length, 1); }); + it("dataFlowDebugSession delete test", async function () { + const result = await client.dataFlowDebugSession.delete( + resourceGroup, + factoryName, + { + sessionId + } + ); + }); + it("datafactory delete test", async function () { const resArray = new Array(); const res = await client.factories.delete(resourceGroup, factoryName)