Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions sdk/datafactory/arm-datafactory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
# Release History

## 12.0.0 (2023-04-18)

**Features**

## 11.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface IntegrationRuntimeDataFlowPropertiesCustomPropertiesItem
- Interface IntegrationRuntimeDataFlowProperties has a new optional parameter customProperties
- Interface SetVariableActivity has a new optional parameter setSystemVariable

### 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**
Expand Down
8 changes: 4 additions & 4 deletions sdk/datafactory/arm-datafactory/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "a60468a0c5e2beb054680ae488fb9f92699f0a0d",
"commit": "84e89244be5b233eb4d3bb0b4d7d75728ab60324",
"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/[email protected].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/[email protected].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/[email protected].9"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.0",
"use": "@autorest/[email protected].10"
}
14 changes: 3 additions & 11 deletions sdk/datafactory/arm-datafactory/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down Expand Up @@ -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"
}
12 changes: 10 additions & 2 deletions sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -7085,6 +7092,7 @@ export type ServicePrincipalCredentialType = string;

// @public
export interface SetVariableActivity extends ControlActivity {
setSystemVariable?: boolean;
type: "SetVariable";
value?: any;
variableName?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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}`
Expand Down
27 changes: 19 additions & 8 deletions sdk/datafactory/arm-datafactory/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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). */
Expand All @@ -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). */
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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;
Expand All @@ -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[];
Expand Down Expand Up @@ -9548,8 +9557,10 @@ export interface SetVariableActivity extends ControlActivity {
type: "SetVariable";
/** Name of the variable whose value needs to be set. */
variableName?: string;
/** Value to be set. Could be a static value or Expression */
/** Value to be set. Could be a static value or Expression. */
value?: any;
/** If set to true, it sets the pipeline run return value. */
setSystemVariable?: boolean;
}

/** Append value for a Variable of type Array. */
Expand Down
44 changes: 42 additions & 2 deletions sdk/datafactory/arm-datafactory/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
}
}
Expand Down Expand Up @@ -18907,7 +18941,7 @@ export const AzureBlobFSReadSettings: coreClient.CompositeMapper = {
enablePartitionDiscovery: {
serializedName: "enablePartitionDiscovery",
type: {
name: "Boolean"
name: "any"
}
},
partitionRootPath: {
Expand Down Expand Up @@ -18987,7 +19021,7 @@ export const AzureDataLakeStoreReadSettings: coreClient.CompositeMapper = {
enablePartitionDiscovery: {
serializedName: "enablePartitionDiscovery",
type: {
name: "Boolean"
name: "any"
}
},
partitionRootPath: {
Expand Down Expand Up @@ -23238,6 +23272,12 @@ export const SetVariableActivity: coreClient.CompositeMapper = {
type: {
name: "any"
}
},
setSystemVariable: {
serializedName: "typeProperties.setSystemVariable",
type: {
name: "Boolean"
}
}
}
}
Expand Down
43 changes: 43 additions & 0 deletions sdk/datafactory/arm-datafactory/test/sampleTest.ts
Original file line number Diff line number Diff line change
@@ -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<string, string> = {
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!");
});
});
10 changes: 2 additions & 8 deletions sdk/datafactory/arm-datafactory/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down