diff --git a/sdk/datafactory/arm-datafactory/CHANGELOG.md b/sdk/datafactory/arm-datafactory/CHANGELOG.md index 78986867b98d..c255f4bc49ed 100644 --- a/sdk/datafactory/arm-datafactory/CHANGELOG.md +++ b/sdk/datafactory/arm-datafactory/CHANGELOG.md @@ -1,15 +1,18 @@ # Release History + +## 12.0.0 (2023-04-03) + +**Features** -## 11.1.1 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed + - Added Interface IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem + - Interface IntegrationRuntimeDataFlowProperties has a new optional parameter customProperties -### Other Changes +**Breaking Changes** + - Type of parameter enablePartitionDiscovery of interface AzureBlobFSReadSettings is changed from boolean to any + - Type of parameter enablePartitionDiscovery of interface AzureDataLakeStoreReadSettings is changed from boolean to any + + ## 11.1.0 (2023-03-02) **Features** diff --git a/sdk/datafactory/arm-datafactory/_meta.json b/sdk/datafactory/arm-datafactory/_meta.json index 302757aad334..6b6322bd61a5 100644 --- a/sdk/datafactory/arm-datafactory/_meta.json +++ b/sdk/datafactory/arm-datafactory/_meta.json @@ -1,8 +1,8 @@ { - "commit": "a60468a0c5e2beb054680ae488fb9f92699f0a0d", + "commit": "39ee3f0ff259485b7bd4bb77cec64d101676a9a5", "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=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-rc.9 --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=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/datafactory/resource-manager/readme.md --use=@autorest/typescript@6.0.0-rc.10", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.9" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.0", + "use": "@autorest/typescript@6.0.0-rc.10" } \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/package.json b/sdk/datafactory/arm-datafactory/package.json index a1536906be74..01f0e9acdb57 100644 --- a/sdk/datafactory/arm-datafactory/package.json +++ b/sdk/datafactory/arm-datafactory/package.json @@ -3,7 +3,7 @@ "sdk-type": "mgmt", "author": "Microsoft Corporation", "description": "A generated SDK for DataFactoryManagementClient.", - "version": "11.1.1", + "version": "12.0.0", "engines": { "node": ">=14.0.0" }, @@ -111,13 +111,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory" +} \ No newline at end of file diff --git a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md index 5e817657fa34..97432fef5799 100644 --- a/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md +++ b/sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md @@ -421,7 +421,7 @@ export interface AzureBlobFSLocation extends DatasetLocation { // @public export interface AzureBlobFSReadSettings extends StoreReadSettings { deleteFilesAfterCompletion?: any; - enablePartitionDiscovery?: boolean; + enablePartitionDiscovery?: any; fileListPath?: any; modifiedDatetimeEnd?: any; modifiedDatetimeStart?: any; @@ -661,7 +661,7 @@ export interface AzureDataLakeStoreLocation extends DatasetLocation { // @public export interface AzureDataLakeStoreReadSettings extends StoreReadSettings { deleteFilesAfterCompletion?: any; - enablePartitionDiscovery?: boolean; + enablePartitionDiscovery?: any; fileListPath?: any; listAfter?: any; listBefore?: any; @@ -3661,9 +3661,16 @@ export interface IntegrationRuntimeDataFlowProperties { cleanup?: boolean; computeType?: DataFlowComputeType; coreCount?: number; + customProperties?: IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem[]; timeToLive?: number; } +// @public (undocumented) +export interface IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem { + name?: string; + value?: string; +} + // @public export interface IntegrationRuntimeDataProxyProperties { connectVia?: EntityReference; diff --git a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts index db1c1148f6c9..f92012d14da5 100644 --- a/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts +++ b/sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts @@ -96,7 +96,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient { credential: credentials }; - const packageDetails = `azsdk-js-arm-datafactory/11.1.1`; + const packageDetails = `azsdk-js-arm-datafactory/12.0.0`; const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}` diff --git a/sdk/datafactory/arm-datafactory/src/models/index.ts b/sdk/datafactory/arm-datafactory/src/models/index.ts index a42b9b43058c..79e35caa9a1b 100644 --- a/sdk/datafactory/arm-datafactory/src/models/index.ts +++ b/sdk/datafactory/arm-datafactory/src/models/index.ts @@ -2550,6 +2550,15 @@ export interface IntegrationRuntimeDataFlowProperties { timeToLive?: number; /** Cluster will not be recycled and it will be used in next data flow activity run until TTL (time to live) is reached if this is set as false. Default is true. */ cleanup?: boolean; + /** Custom properties are used to tune the data flow runtime performance. */ + customProperties?: IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem[]; +} + +export interface IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem { + /** Name of custom property. */ + name?: string; + /** Value of custom property. */ + value?: string; } /** VNet properties for managed integration runtime. */ @@ -7928,8 +7937,8 @@ export interface AzureBlobFSReadSettings extends StoreReadSettings { wildcardFileName?: any; /** Point to a text file that lists each file (relative path to the path configured in the dataset) that you want to copy. Type: string (or Expression with resultType string). */ fileListPath?: any; - /** Indicates whether to enable partition discovery. */ - enablePartitionDiscovery?: boolean; + /** Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). */ + enablePartitionDiscovery?: any; /** Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). */ partitionRootPath?: any; /** Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). */ @@ -7956,8 +7965,8 @@ export interface AzureDataLakeStoreReadSettings extends StoreReadSettings { listAfter?: any; /** Lists files before the value (inclusive) based on file/folder names’ lexicographical order. Applies under the folderPath in data set, and filter files/sub-folders under the folderPath. Type: string (or Expression with resultType string). */ listBefore?: any; - /** Indicates whether to enable partition discovery. */ - enablePartitionDiscovery?: boolean; + /** Indicates whether to enable partition discovery. Type: boolean (or Expression with resultType boolean). */ + enablePartitionDiscovery?: any; /** Specify the root path where partition discovery starts from. Type: string (or Expression with resultType string). */ partitionRootPath?: any; /** Indicates whether the source files need to be deleted after copy completion. Default is false. Type: boolean (or Expression with resultType boolean). */ @@ -8248,7 +8257,7 @@ export interface AzureBlobFSWriteSettings extends StoreWriteSettings { export interface AzureDataLakeStoreWriteSettings extends StoreWriteSettings { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "AzureDataLakeStoreWriteSettings"; - /** Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: integer (or Expression with resultType integer). */ + /** Specifies the expiry time of the written files. The time is applied to the UTC time zone in the format of "2018-12-01T05:00:00Z". Default value is NULL. Type: string (or Expression with resultType string). */ expiryDateTime?: any; } @@ -9200,7 +9209,7 @@ export interface OracleSink extends CopySink { export interface AzureDataLakeStoreSink extends CopySink { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "AzureDataLakeStoreSink"; - /** The type of copy behavior for copy sink. */ + /** The type of copy behavior for copy sink. Type: string (or Expression with resultType string). */ copyBehavior?: any; /** Single File Parallel. */ enableAdlsSingleFileParallel?: any; @@ -9210,7 +9219,7 @@ export interface AzureDataLakeStoreSink extends CopySink { export interface AzureBlobFSSink extends CopySink { /** Polymorphic discriminator, which specifies the different types this object can be */ type: "AzureBlobFSSink"; - /** The type of copy behavior for copy sink. */ + /** The type of copy behavior for copy sink. Type: string (or Expression with resultType string). */ copyBehavior?: any; /** Specify the custom metadata to be added to sink data. Type: array of objects (or Expression with resultType array of objects). */ metadata?: MetadataItem[]; diff --git a/sdk/datafactory/arm-datafactory/src/models/mappers.ts b/sdk/datafactory/arm-datafactory/src/models/mappers.ts index 72e2eff797be..3afa54c5fdc3 100644 --- a/sdk/datafactory/arm-datafactory/src/models/mappers.ts +++ b/sdk/datafactory/arm-datafactory/src/models/mappers.ts @@ -4356,6 +4356,40 @@ export const IntegrationRuntimeDataFlowProperties: coreClient.CompositeMapper = type: { name: "Boolean" } + }, + customProperties: { + serializedName: "customProperties", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: + "IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem" + } + } + } + } + } + } +}; + +export const IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + value: { + serializedName: "value", + type: { + name: "String" + } } } } @@ -18907,7 +18941,7 @@ export const AzureBlobFSReadSettings: coreClient.CompositeMapper = { enablePartitionDiscovery: { serializedName: "enablePartitionDiscovery", type: { - name: "Boolean" + name: "any" } }, partitionRootPath: { @@ -18987,7 +19021,7 @@ export const AzureDataLakeStoreReadSettings: coreClient.CompositeMapper = { enablePartitionDiscovery: { serializedName: "enablePartitionDiscovery", type: { - name: "Boolean" + name: "any" } }, partitionRootPath: { diff --git a/sdk/datafactory/arm-datafactory/test/sampleTest.ts b/sdk/datafactory/arm-datafactory/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/datafactory/arm-datafactory/test/sampleTest.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. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/datafactory/arm-datafactory/tsconfig.json b/sdk/datafactory/arm-datafactory/tsconfig.json index 6f440f5c25a9..3e6ae96443f3 100644 --- a/sdk/datafactory/arm-datafactory/tsconfig.json +++ b/sdk/datafactory/arm-datafactory/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-datafactory": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"