Skip to content

Commit bd42f1a

Browse files
author
SDKAuto
committed
CodeGen from PR 28572 in Azure/azure-rest-api-specs
Merge 6e54f92b83f66e11b0fa5c22c85eae9ee1a3294f into 1710ec7f391adbf27ec7071d63553f0f476637bc
1 parent 8cd5bc2 commit bd42f1a

File tree

13 files changed

+609
-500
lines changed

13 files changed

+609
-500
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 385 additions & 384 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/datafactory/arm-datafactory/CHANGELOG.md

Lines changed: 29 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,36 @@
11
# Release History
2+
3+
## 15.0.0 (2024-04-25)
4+
5+
**Features**
26

3-
## 14.1.1 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
7+
- Added Interface ServicePrincipalCredentialResource
8+
- Interface AzureDatabricksLinkedService has a new optional parameter clusterOption
9+
- Interface AzureDatabricksLinkedService has a new optional parameter dataSecurityMode
10+
- Interface AzureDatabricksLinkedService has a new optional parameter newClusterAttributes
1011

11-
### Other Changes
12+
**Breaking Changes**
1213

14+
- Operation CredentialOperations.createOrUpdate has a new signature
15+
- Type of parameter headers of interface AzureFunctionActivity is changed from {
16+
[propertyName: string]: string;
17+
} to {
18+
[propertyName: string]: any;
19+
}
20+
- Type of parameter value of interface CredentialListResponse is changed from ManagedIdentityCredentialResource[] to CredentialResource[]
21+
- Type of parameter type of interface ScriptActivityScriptBlock is changed from ScriptType to any
22+
- Type of parameter headers of interface WebActivity is changed from {
23+
[propertyName: string]: string;
24+
} to {
25+
[propertyName: string]: any;
26+
}
27+
- Type of parameter headers of interface WebHookActivity is changed from {
28+
[propertyName: string]: string;
29+
} to {
30+
[propertyName: string]: any;
31+
}
32+
33+
1334
## 14.1.0 (2024-03-11)
1435

1536
**Features**
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201",
2+
"commit": "44d5fffda451dbf7d5a58a0440b5c7faa5d9de48",
33
"readme": "specification/datafactory/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --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].17 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --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.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].4",
7-
"use": "@autorest/[email protected].17"
6+
"release_tool": "@azure-tools/[email protected].5",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/datafactory/arm-datafactory/package.json

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for DataFactoryManagementClient.",
6-
"version": "14.1.1",
6+
"version": "15.0.0",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -40,6 +40,7 @@
4040
"@azure-tools/test-credential": "^1.0.0",
4141
"mocha": "^10.0.0",
4242
"@types/mocha": "^10.0.0",
43+
"esm": "^3.2.18",
4344
"@types/chai": "^4.2.8",
4445
"chai": "^4.2.0",
4546
"cross-env": "^7.0.2",
@@ -75,7 +76,7 @@
7576
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
7677
"prepack": "npm run build",
7778
"pack": "npm pack 2>&1",
78-
"extract-api": "dev-tool run extract-api",
79+
"extract-api": "api-extractor run --local",
7980
"lint": "echo skipped",
8081
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
8182
"build:node": "echo skipped",
@@ -105,13 +106,5 @@
105106
]
106107
},
107108
"autoPublish": true,
108-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory",
109-
"//sampleConfiguration": {
110-
"productName": "",
111-
"productSlugs": [
112-
"azure"
113-
],
114-
"disableDocsMs": true,
115-
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview"
116-
}
117-
}
109+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory"
110+
}

sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -558,11 +558,16 @@ export interface AzureDatabricksDeltaLakeSource extends CopySource {
558558
export interface AzureDatabricksLinkedService extends LinkedService {
559559
accessToken?: SecretBaseUnion;
560560
authentication?: any;
561+
clusterOption?: any;
561562
credential?: CredentialReference;
563+
dataSecurityMode?: any;
562564
domain: any;
563565
encryptedCredential?: string;
564566
existingClusterId?: any;
565567
instancePoolId?: any;
568+
newClusterAttributes?: {
569+
[propertyName: string]: any;
570+
};
566571
newClusterCustomTags?: {
567572
[propertyName: string]: any;
568573
};
@@ -747,7 +752,7 @@ export interface AzureFunctionActivity extends ExecutionActivity {
747752
body?: any;
748753
functionName: any;
749754
headers?: {
750-
[propertyName: string]: string;
755+
[propertyName: string]: any;
751756
};
752757
method: AzureFunctionActivityMethod;
753758
type: "AzureFunctionActivity";
@@ -1621,15 +1626,15 @@ export { Credential_2 as Credential }
16211626
// @public
16221627
export interface CredentialListResponse {
16231628
nextLink?: string;
1624-
value: ManagedIdentityCredentialResource[];
1629+
value: CredentialResource[];
16251630
}
16261631

16271632
// @public
16281633
export interface CredentialOperations {
1629-
createOrUpdate(resourceGroupName: string, factoryName: string, credentialName: string, credential: ManagedIdentityCredentialResource, options?: CredentialOperationsCreateOrUpdateOptionalParams): Promise<CredentialOperationsCreateOrUpdateResponse>;
1634+
createOrUpdate(resourceGroupName: string, factoryName: string, credentialName: string, credential: CredentialResource, options?: CredentialOperationsCreateOrUpdateOptionalParams): Promise<CredentialOperationsCreateOrUpdateResponse>;
16301635
delete(resourceGroupName: string, factoryName: string, credentialName: string, options?: CredentialOperationsDeleteOptionalParams): Promise<void>;
16311636
get(resourceGroupName: string, factoryName: string, credentialName: string, options?: CredentialOperationsGetOptionalParams): Promise<CredentialOperationsGetResponse>;
1632-
listByFactory(resourceGroupName: string, factoryName: string, options?: CredentialOperationsListByFactoryOptionalParams): PagedAsyncIterableIterator<ManagedIdentityCredentialResource>;
1637+
listByFactory(resourceGroupName: string, factoryName: string, options?: CredentialOperationsListByFactoryOptionalParams): PagedAsyncIterableIterator<CredentialResource>;
16331638
}
16341639

16351640
// @public
@@ -1638,7 +1643,7 @@ export interface CredentialOperationsCreateOrUpdateOptionalParams extends coreCl
16381643
}
16391644

16401645
// @public
1641-
export type CredentialOperationsCreateOrUpdateResponse = ManagedIdentityCredentialResource;
1646+
export type CredentialOperationsCreateOrUpdateResponse = CredentialResource;
16421647

16431648
// @public
16441649
export interface CredentialOperationsDeleteOptionalParams extends coreClient.OperationOptions {
@@ -1650,7 +1655,7 @@ export interface CredentialOperationsGetOptionalParams extends coreClient.Operat
16501655
}
16511656

16521657
// @public
1653-
export type CredentialOperationsGetResponse = ManagedIdentityCredentialResource;
1658+
export type CredentialOperationsGetResponse = CredentialResource;
16541659

16551660
// @public
16561661
export interface CredentialOperationsListByFactoryNextOptionalParams extends coreClient.OperationOptions {
@@ -5368,7 +5373,7 @@ export interface ManagedIdentityCredential extends Credential_2 {
53685373
}
53695374

53705375
// @public
5371-
export interface ManagedIdentityCredentialResource extends SubResource {
5376+
export interface ManagedIdentityCredentialResource extends CredentialResource {
53725377
properties: ManagedIdentityCredential;
53735378
}
53745379

@@ -7456,7 +7461,7 @@ export type ScriptActivityParameterType = string;
74567461
export interface ScriptActivityScriptBlock {
74577462
parameters?: ScriptActivityParameter[];
74587463
text: any;
7459-
type: ScriptType;
7464+
type: any;
74607465
}
74617466

74627467
// @public
@@ -7620,6 +7625,11 @@ export interface ServicePrincipalCredential extends Credential_2 {
76207625
type: "ServicePrincipal";
76217626
}
76227627

7628+
// @public
7629+
export interface ServicePrincipalCredentialResource extends CredentialResource {
7630+
properties: ServicePrincipalCredential;
7631+
}
7632+
76237633
// @public
76247634
export type ServicePrincipalCredentialType = string;
76257635

@@ -8885,7 +8895,7 @@ export interface WebActivity extends ExecutionActivity {
88858895
datasets?: DatasetReference[];
88868896
disableCertValidation?: boolean;
88878897
headers?: {
8888-
[propertyName: string]: string;
8898+
[propertyName: string]: any;
88898899
};
88908900
httpRequestTimeout?: any;
88918901
linkedServices?: LinkedServiceReference[];
@@ -8936,7 +8946,7 @@ export interface WebHookActivity extends ControlActivity {
89368946
authentication?: WebActivityAuthentication;
89378947
body?: any;
89388948
headers?: {
8939-
[propertyName: string]: string;
8949+
[propertyName: string]: any;
89408950
};
89418951
method: WebHookActivityMethod;
89428952
policy?: SecureInputOutputPolicy;

sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
9898
credential: credentials,
9999
};
100100

101-
const packageDetails = `azsdk-js-arm-datafactory/14.1.1`;
101+
const packageDetails = `azsdk-js-arm-datafactory/15.0.0`;
102102
const userAgentPrefix =
103103
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
104104
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`

sdk/datafactory/arm-datafactory/src/models/index.ts

Lines changed: 47 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2298,7 +2298,7 @@ export interface ConnectionStateProperties {
22982298
/** A list of credential resources. */
22992299
export interface CredentialListResponse {
23002300
/** List of credentials. */
2301-
value: ManagedIdentityCredentialResource[];
2301+
value: CredentialResource[];
23022302
/** The link to the next page of results, if any remaining results exist. */
23032303
nextLink?: string;
23042304
}
@@ -3843,8 +3843,8 @@ export interface PowerQuerySinkMapping {
38433843
export interface ScriptActivityScriptBlock {
38443844
/** The query text. Type: string (or Expression with resultType string). */
38453845
text: any;
3846-
/** The type of the query. Type: string. */
3847-
type: ScriptType;
3846+
/** The type of the query. Please refer to the ScriptType for valid options. Type: string (or Expression with resultType string). */
3847+
type: any;
38483848
/** Array of script parameters. Type: array. */
38493849
parameters?: ScriptActivityParameter[];
38503850
}
@@ -4143,9 +4143,9 @@ export interface ManagedPrivateEndpointResource extends SubResource {
41434143
}
41444144

41454145
/** Credential resource type. */
4146-
export interface ManagedIdentityCredentialResource extends SubResource {
4147-
/** Managed Identity Credential properties. */
4148-
properties: ManagedIdentityCredential;
4146+
export interface CredentialResource extends SubResource {
4147+
/** Properties of credentials. */
4148+
properties: CredentialUnion;
41494149
}
41504150

41514151
/** Private Endpoint Connection ARM resource. */
@@ -4193,12 +4193,6 @@ export interface ChangeDataCaptureResource extends SubResource {
41934193
status?: string;
41944194
}
41954195

4196-
/** Credential resource type. */
4197-
export interface CredentialResource extends SubResource {
4198-
/** Properties of credentials. */
4199-
properties: CredentialUnion;
4200-
}
4201-
42024196
/** Managed integration runtime status. */
42034197
export interface ManagedIntegrationRuntimeStatus
42044198
extends IntegrationRuntimeStatus {
@@ -6535,6 +6529,12 @@ export interface AzureDatabricksLinkedService extends LinkedService {
65356529
encryptedCredential?: string;
65366530
/** The policy id for limiting the ability to configure clusters based on a user defined set of rules. Type: string (or Expression with resultType string). */
65376531
policyId?: any;
6532+
/** A set of optional, user-specified cluster attributes key-value pairs. */
6533+
newClusterAttributes?: { [propertyName: string]: any };
6534+
/** Cluster option (Fixed / Autoscaling / Single Node) to enables the cluster nodes to be fixed or automatically scale between the minimum and maximum number of nodes, based on load. Single node clusters consists of a driver but no workers. Type: string (or Expression with resultType string). */
6535+
clusterOption?: any;
6536+
/** Access mode for data secured in unity catalog. Type: string (or Expression with resultType string). */
6537+
dataSecurityMode?: any;
65386538
/** The credential reference containing authentication information. */
65396539
credential?: CredentialReference;
65406540
}
@@ -10173,6 +10173,18 @@ export interface SelfDependencyTumblingWindowTriggerReference
1017310173
size?: string;
1017410174
}
1017510175

10176+
/** Credential resource type. */
10177+
export interface ManagedIdentityCredentialResource extends CredentialResource {
10178+
/** Managed Identity Credential properties. */
10179+
properties: ManagedIdentityCredential;
10180+
}
10181+
10182+
/** Credential resource type. */
10183+
export interface ServicePrincipalCredentialResource extends CredentialResource {
10184+
/** Service Principal Credential properties. */
10185+
properties: ServicePrincipalCredential;
10186+
}
10187+
1017610188
/** Execute pipeline activity. */
1017710189
export interface ExecutePipelineActivity extends ControlActivity {
1017810190
/** Polymorphic discriminator, which specifies the different types this object can be */
@@ -10318,7 +10330,7 @@ export interface WebHookActivity extends ControlActivity {
1031810330
/** The timeout within which the webhook should be called back. If there is no value specified, it defaults to 10 minutes. Type: string. Pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). */
1031910331
timeout?: string;
1032010332
/** Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). */
10321-
headers?: { [propertyName: string]: string };
10333+
headers?: { [propertyName: string]: any };
1032210334
/** Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). */
1032310335
body?: any;
1032410336
/** Authentication method used for calling the endpoint. */
@@ -10594,7 +10606,7 @@ export interface WebActivity extends ExecutionActivity {
1059410606
/** Web activity target endpoint and path. Type: string (or Expression with resultType string). */
1059510607
url: any;
1059610608
/** Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). */
10597-
headers?: { [propertyName: string]: string };
10609+
headers?: { [propertyName: string]: any };
1059810610
/** Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). */
1059910611
body?: any;
1060010612
/** Authentication method used for calling the endpoint. */
@@ -10738,7 +10750,7 @@ export interface AzureFunctionActivity extends ExecutionActivity {
1073810750
/** Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string) */
1073910751
functionName: any;
1074010752
/** Represents the headers that will be sent to the request. For example, to set the language and type on a request: "headers" : { "Accept-Language": "en-us", "Content-Type": "application/json" }. Type: string (or Expression with resultType string). */
10741-
headers?: { [propertyName: string]: string };
10753+
headers?: { [propertyName: string]: any };
1074210754
/** Represents the payload that will be sent to the endpoint. Required for POST/PUT method, not allowed for GET method Type: string (or Expression with resultType string). */
1074310755
body?: any;
1074410756
}
@@ -13377,24 +13389,6 @@ export enum KnownWebHookActivityMethod {
1337713389
*/
1337813390
export type WebHookActivityMethod = string;
1337913391

13380-
/** Known values of {@link ScriptType} that the service accepts. */
13381-
export enum KnownScriptType {
13382-
/** Query */
13383-
Query = "Query",
13384-
/** NonQuery */
13385-
NonQuery = "NonQuery",
13386-
}
13387-
13388-
/**
13389-
* Defines values for ScriptType. \
13390-
* {@link KnownScriptType} can be used interchangeably with ScriptType,
13391-
* this enum contains the known values that the service supports.
13392-
* ### Known values supported by the service
13393-
* **Query** \
13394-
* **NonQuery**
13395-
*/
13396-
export type ScriptType = string;
13397-
1339813392
/** Known values of {@link ScriptActivityParameterType} that the service accepts. */
1339913393
export enum KnownScriptActivityParameterType {
1340013394
/** Boolean */
@@ -14040,6 +14034,24 @@ export enum KnownSqlDWWriteBehaviorEnum {
1404014034
*/
1404114035
export type SqlDWWriteBehaviorEnum = string;
1404214036

14037+
/** Known values of {@link ScriptType} that the service accepts. */
14038+
export enum KnownScriptType {
14039+
/** Query */
14040+
Query = "Query",
14041+
/** NonQuery */
14042+
NonQuery = "NonQuery",
14043+
}
14044+
14045+
/**
14046+
* Defines values for ScriptType. \
14047+
* {@link KnownScriptType} can be used interchangeably with ScriptType,
14048+
* this enum contains the known values that the service supports.
14049+
* ### Known values supported by the service
14050+
* **Query** \
14051+
* **NonQuery**
14052+
*/
14053+
export type ScriptType = string;
14054+
1404314055
/** Known values of {@link SqlPartitionOption} that the service accepts. */
1404414056
export enum KnownSqlPartitionOption {
1404514057
/** None */
@@ -14954,8 +14966,7 @@ export interface CredentialOperationsCreateOrUpdateOptionalParams
1495414966
}
1495514967

1495614968
/** Contains response data for the createOrUpdate operation. */
14957-
export type CredentialOperationsCreateOrUpdateResponse =
14958-
ManagedIdentityCredentialResource;
14969+
export type CredentialOperationsCreateOrUpdateResponse = CredentialResource;
1495914970

1496014971
/** Optional parameters. */
1496114972
export interface CredentialOperationsGetOptionalParams
@@ -14965,7 +14976,7 @@ export interface CredentialOperationsGetOptionalParams
1496514976
}
1496614977

1496714978
/** Contains response data for the get operation. */
14968-
export type CredentialOperationsGetResponse = ManagedIdentityCredentialResource;
14979+
export type CredentialOperationsGetResponse = CredentialResource;
1496914980

1497014981
/** Optional parameters. */
1497114982
export interface CredentialOperationsDeleteOptionalParams

0 commit comments

Comments
 (0)