Skip to content

Commit

Permalink
CodeGen from PR 18956 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 3b478489713c1ee63461752bc987d8b2e1ad9f23 into ac286e05bedd69d301e1dc94ec70f66e8536686b
  • Loading branch information
SDKAuto committed May 11, 2022
1 parent 7901b5b commit f78912e
Show file tree
Hide file tree
Showing 8 changed files with 189 additions and 32 deletions.
14 changes: 14 additions & 0 deletions sdk/datafactory/arm-datafactory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# Release History

## 10.5.0 (2022-05-11)

**Features**

- Added Interface PrivateEndpoint
- Added Interface PurviewConfiguration
- Interface ExecuteDataFlowActivityTypeProperties has a new optional parameter sourceStagingConcurrency
- Interface PrivateLinkConnectionApprovalRequest has a new optional parameter privateEndpoint
- Type Alias DataFlowSink has a new parameter rejectedDataLinkedService
- Type Alias ExecuteDataFlowActivity has a new parameter sourceStagingConcurrency
- Type Alias ExecuteWranglingDataflowActivity has a new parameter sourceStagingConcurrency
- Type Alias Factory has a new parameter purviewConfiguration


## 10.4.0 (2022-04-20)

**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": "8a9bd9c5b65e5c3e5a8536f3c5b2b15bf9920b5d",
"commit": "b6bd290cd8c34e33387bd0bcf6cdaf9b03fecddd",
"readme": "specification/datafactory/resource-manager/readme.md",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\work\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\datafactory\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.19.20220408.1",
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --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-alpha.19.20220425.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.2.6",
"use": "@autorest/typescript@6.0.0-alpha.19.20220408.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.3.0",
"use": "@autorest/typescript@6.0.0-alpha.19.20220425.1"
}
12 changes: 7 additions & 5 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": "10.4.0",
"version": "10.5.0",
"engines": {
"node": ">=12.0.0"
},
Expand Down Expand Up @@ -40,9 +40,11 @@
"uglify-js": "^3.4.9",
"rimraf": "^3.0.0",
"@azure/identity": "^2.0.1",
"@azure-tools/test-recorder": "^1.0.0",
"@azure-tools/test-recorder": "^2.0.0",
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^7.1.1",
"cross-env": "^7.0.2"
"cross-env": "^7.0.2",
"@azure/dev-tool": "^1.0.0"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory",
"repository": {
Expand Down Expand Up @@ -93,7 +95,7 @@
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
"unit-test:browser": "echo skipped",
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
"integration-test:browser": "echo skipped",
"docs": "echo skipped"
},
Expand All @@ -107,4 +109,4 @@
]
},
"autoPublish": true
}
}
16 changes: 16 additions & 0 deletions sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -1848,6 +1848,7 @@ export type DataFlowsGetResponse = DataFlowResource;
// @public
export type DataFlowSink = Transformation & {
schemaLinkedService?: LinkedServiceReference;
rejectedDataLinkedService?: LinkedServiceReference;
};

// @public
Expand Down Expand Up @@ -2403,6 +2404,7 @@ export type ExecuteDataFlowActivity = ExecutionActivity & {
traceLevel?: Record<string, unknown>;
continueOnError?: Record<string, unknown>;
runConcurrently?: Record<string, unknown>;
sourceStagingConcurrency?: Record<string, unknown>;
};

// @public
Expand All @@ -2412,6 +2414,7 @@ export interface ExecuteDataFlowActivityTypeProperties {
dataFlow: DataFlowReference;
integrationRuntime?: IntegrationRuntimeReference;
runConcurrently?: Record<string, unknown>;
sourceStagingConcurrency?: Record<string, unknown>;
staging?: DataFlowStagingInfo;
traceLevel?: Record<string, unknown>;
}
Expand Down Expand Up @@ -2489,6 +2492,7 @@ export type ExecuteWranglingDataflowActivity = Activity & {
traceLevel?: Record<string, unknown>;
continueOnError?: Record<string, unknown>;
runConcurrently?: Record<string, unknown>;
sourceStagingConcurrency?: Record<string, unknown>;
sinks?: {
[propertyName: string]: PowerQuerySink;
};
Expand Down Expand Up @@ -2666,6 +2670,7 @@ export type Factory = Resource & {
readonly provisioningState?: string;
readonly createTime?: Date;
readonly version?: string;
purviewConfiguration?: PurviewConfiguration;
repoConfiguration?: FactoryRepoConfigurationUnion;
globalParameters?: {
[propertyName: string]: GlobalParameterSpecification;
Expand Down Expand Up @@ -6330,6 +6335,11 @@ export type PrestoSource = TabularSource & {
query?: Record<string, unknown>;
};

// @public
export interface PrivateEndpoint {
id?: string;
}

// @public
export interface PrivateEndpointConnection {
createOrUpdate(resourceGroupName: string, factoryName: string, privateEndpointConnectionName: string, privateEndpointWrapper: PrivateLinkConnectionApprovalRequestResource, options?: PrivateEndpointConnectionCreateOrUpdateOptionalParams): Promise<PrivateEndpointConnectionCreateOrUpdateResponse>;
Expand Down Expand Up @@ -6389,6 +6399,7 @@ export type PrivateEndPointConnectionsListByFactoryResponse = PrivateEndpointCon

// @public
export interface PrivateLinkConnectionApprovalRequest {
privateEndpoint?: PrivateEndpoint;
privateLinkServiceConnectionState?: PrivateLinkConnectionState;
}

Expand Down Expand Up @@ -6437,6 +6448,11 @@ export interface PrivateLinkResourcesWrapper {
// @public
export type PublicNetworkAccess = string;

// @public
export interface PurviewConfiguration {
purviewResourceId?: string;
}

// @public
export interface QueryDataFlowDebugSessionsResponse {
nextLink?: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@

import * as coreClient from "@azure/core-client";
import * as coreRestPipeline from "@azure/core-rest-pipeline";
import {
PipelineRequest,
PipelineResponse,
SendRequest
} from "@azure/core-rest-pipeline";
import * as coreAuth from "@azure/core-auth";
import {
OperationsImpl,
Expand Down Expand Up @@ -87,7 +92,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-datafactory/10.4.0`;
const packageDetails = `azsdk-js-arm-datafactory/10.5.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -157,6 +162,35 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
this.privateEndPointConnections = new PrivateEndPointConnectionsImpl(this);
this.privateEndpointConnection = new PrivateEndpointConnectionImpl(this);
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
this.addCustomApiVersionPolicy(options.apiVersion);
}

/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
private addCustomApiVersionPolicy(apiVersion?: string) {
if (!apiVersion) {
return;
}
const apiVersionPolicy = {
name: "CustomApiVersionPolicy",
async sendRequest(
request: PipelineRequest,
next: SendRequest
): Promise<PipelineResponse> {
const param = request.url.split("?");
if (param.length > 1) {
const newParams = param[1].split("&").map((item) => {
if (item.indexOf("api-version") > -1) {
return item.replace(/(?<==).*$/, apiVersion);
} else {
return item;
}
});
request.url = param[0] + "?" + newParams.join("&");
}
return next(request);
}
};
this.pipeline.addPolicy(apiVersionPolicy);
}

operations: Operations;
Expand Down
24 changes: 24 additions & 0 deletions sdk/datafactory/arm-datafactory/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -670,6 +670,12 @@ export interface FactoryIdentity {
userAssignedIdentities?: { [propertyName: string]: Record<string, unknown> };
}

/** Purview configuration. */
export interface PurviewConfiguration {
/** Purview resource id. */
purviewResourceId?: string;
}

/** Factory's git repo information. */
export interface FactoryRepoConfiguration {
/** Polymorphic discriminator, which specifies the different types this object can be */
Expand Down Expand Up @@ -2261,6 +2267,14 @@ export interface PrivateLinkConnectionState {
export interface PrivateLinkConnectionApprovalRequest {
/** The state of a private link connection */
privateLinkServiceConnectionState?: PrivateLinkConnectionState;
/** The resource of private endpoint. */
privateEndpoint?: PrivateEndpoint;
}

/** Private endpoint which a connection belongs to. */
export interface PrivateEndpoint {
/** The resource Id for private endpoint */
id?: string;
}

/** Wrapper for a collection of private link resources */
Expand Down Expand Up @@ -3510,6 +3524,8 @@ export interface ExecuteDataFlowActivityTypeProperties {
continueOnError?: Record<string, unknown>;
/** Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean) */
runConcurrently?: Record<string, unknown>;
/** Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) */
sourceStagingConcurrency?: Record<string, unknown>;
}

/** Compute properties for data flow activity. */
Expand Down Expand Up @@ -3672,6 +3688,8 @@ export type Factory = Resource & {
* NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly version?: string;
/** Purview information of the factory. */
purviewConfiguration?: PurviewConfiguration;
/** Git repo information of the factory. */
repoConfiguration?: FactoryRepoConfigurationUnion;
/** List of parameters for factory. */
Expand Down Expand Up @@ -7231,6 +7249,8 @@ export type ExecuteWranglingDataflowActivity = Activity & {
continueOnError?: Record<string, unknown>;
/** Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean) */
runConcurrently?: Record<string, unknown>;
/** Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) */
sourceStagingConcurrency?: Record<string, unknown>;
/** (Deprecated. Please use Queries). List of Power Query activity sinks mapped to a queryName. */
sinks?: { [propertyName: string]: PowerQuerySink };
/** List of mapping for Power Query mashup query to sink dataset(s). */
Expand Down Expand Up @@ -7418,6 +7438,8 @@ export type DataFlowSource = Transformation & {
export type DataFlowSink = Transformation & {
/** Schema linked service reference. */
schemaLinkedService?: LinkedServiceReference;
/** Rejected data linked service reference. */
rejectedDataLinkedService?: LinkedServiceReference;
};

/** The location of azure blob dataset. */
Expand Down Expand Up @@ -9789,6 +9811,8 @@ export type ExecuteDataFlowActivity = ExecutionActivity & {
continueOnError?: Record<string, unknown>;
/** Concurrent run setting used for data flow execution. Allows sinks with the same save order to be processed concurrently. Type: boolean (or Expression with resultType boolean) */
runConcurrently?: Record<string, unknown>;
/** Specify number of parallel staging for sources applicable to the sink. Type: integer (or Expression with resultType integer) */
sourceStagingConcurrency?: Record<string, unknown>;
};

/** Script activity type. */
Expand Down
72 changes: 72 additions & 0 deletions sdk/datafactory/arm-datafactory/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,21 @@ export const FactoryIdentity: coreClient.CompositeMapper = {
}
};

export const PurviewConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PurviewConfiguration",
modelProperties: {
purviewResourceId: {
serializedName: "purviewResourceId",
type: {
name: "String"
}
}
}
}
};

export const FactoryRepoConfiguration: coreClient.CompositeMapper = {
type: {
name: "Composite",
Expand Down Expand Up @@ -3641,6 +3656,28 @@ export const PrivateLinkConnectionApprovalRequest: coreClient.CompositeMapper =
name: "Composite",
className: "PrivateLinkConnectionState"
}
},
privateEndpoint: {
serializedName: "privateEndpoint",
type: {
name: "Composite",
className: "PrivateEndpoint"
}
}
}
}
};

export const PrivateEndpoint: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PrivateEndpoint",
modelProperties: {
id: {
serializedName: "id",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -6666,6 +6703,13 @@ export const ExecuteDataFlowActivityTypeProperties: coreClient.CompositeMapper =
name: "Dictionary",
value: { type: { name: "any" } }
}
},
sourceStagingConcurrency: {
serializedName: "sourceStagingConcurrency",
type: {
name: "Dictionary",
value: { type: { name: "any" } }
}
}
}
}
Expand Down Expand Up @@ -7139,6 +7183,13 @@ export const Factory: coreClient.CompositeMapper = {
name: "String"
}
},
purviewConfiguration: {
serializedName: "properties.purviewConfiguration",
type: {
name: "Composite",
className: "PurviewConfiguration"
}
},
repoConfiguration: {
serializedName: "properties.repoConfiguration",
type: {
Expand Down Expand Up @@ -17871,6 +17922,13 @@ export const ExecuteWranglingDataflowActivity: coreClient.CompositeMapper = {
value: { type: { name: "any" } }
}
},
sourceStagingConcurrency: {
serializedName: "typeProperties.sourceStagingConcurrency",
type: {
name: "Dictionary",
value: { type: { name: "any" } }
}
},
sinks: {
serializedName: "typeProperties.sinks",
type: {
Expand Down Expand Up @@ -18472,6 +18530,13 @@ export const DataFlowSink: coreClient.CompositeMapper = {
name: "Composite",
className: "LinkedServiceReference"
}
},
rejectedDataLinkedService: {
serializedName: "rejectedDataLinkedService",
type: {
name: "Composite",
className: "LinkedServiceReference"
}
}
}
}
Expand Down Expand Up @@ -25532,6 +25597,13 @@ export const ExecuteDataFlowActivity: coreClient.CompositeMapper = {
name: "Dictionary",
value: { type: { name: "any" } }
}
},
sourceStagingConcurrency: {
serializedName: "typeProperties.sourceStagingConcurrency",
type: {
name: "Dictionary",
value: { type: { name: "any" } }
}
}
}
}
Expand Down
Loading

0 comments on commit f78912e

Please sign in to comment.