Skip to content

[AutoPR @azure/arm-datafactory] Update Databricks cluster options #9457

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
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
769 changes: 385 additions & 384 deletions common/config/rush/pnpm-lock.yaml

Large diffs are not rendered by default.

37 changes: 29 additions & 8 deletions sdk/datafactory/arm-datafactory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,36 @@
# Release History

## 15.0.0 (2024-04-25)

**Features**

## 14.1.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed
- Added Interface ServicePrincipalCredentialResource
- Interface AzureDatabricksLinkedService has a new optional parameter clusterOption
- Interface AzureDatabricksLinkedService has a new optional parameter dataSecurityMode
- Interface AzureDatabricksLinkedService has a new optional parameter newClusterAttributes

### Other Changes
**Breaking Changes**

- Operation CredentialOperations.createOrUpdate has a new signature
- Type of parameter headers of interface AzureFunctionActivity is changed from {
[propertyName: string]: string;
} to {
[propertyName: string]: any;
}
- Type of parameter value of interface CredentialListResponse is changed from ManagedIdentityCredentialResource[] to CredentialResource[]
- Type of parameter type of interface ScriptActivityScriptBlock is changed from ScriptType to any
- Type of parameter headers of interface WebActivity is changed from {
[propertyName: string]: string;
} to {
[propertyName: string]: any;
}
- Type of parameter headers of interface WebHookActivity is changed from {
[propertyName: string]: string;
} to {
[propertyName: string]: any;
}


## 14.1.0 (2024-03-11)

**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": "1a011ff0d72315ef3c530fe545c4fe82d0450201",
"commit": "44d5fffda451dbf7d5a58a0440b5c7faa5d9de48",
"readme": "specification/datafactory/resource-manager/readme.md",
"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",
"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",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/[email protected].4",
"use": "@autorest/[email protected].17"
"release_tool": "@azure-tools/[email protected].5",
"use": "@autorest/typescript@^6.0.12"
}
17 changes: 5 additions & 12 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": "14.1.1",
"version": "15.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -40,6 +40,7 @@
"@azure-tools/test-credential": "^1.0.0",
"mocha": "^10.0.0",
"@types/mocha": "^10.0.0",
"esm": "^3.2.18",
"@types/chai": "^4.2.8",
"chai": "^4.2.0",
"cross-env": "^7.0.2",
Expand Down Expand Up @@ -75,7 +76,7 @@
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
"prepack": "npm run build",
"pack": "npm pack 2>&1",
"extract-api": "dev-tool run extract-api",
"extract-api": "api-extractor run --local",
"lint": "echo skipped",
"clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
"build:node": "echo skipped",
Expand Down Expand Up @@ -105,13 +106,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"
}
30 changes: 20 additions & 10 deletions sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -558,11 +558,16 @@ export interface AzureDatabricksDeltaLakeSource extends CopySource {
export interface AzureDatabricksLinkedService extends LinkedService {
accessToken?: SecretBaseUnion;
authentication?: any;
clusterOption?: any;
credential?: CredentialReference;
dataSecurityMode?: any;
domain: any;
encryptedCredential?: string;
existingClusterId?: any;
instancePoolId?: any;
newClusterAttributes?: {
[propertyName: string]: any;
};
newClusterCustomTags?: {
[propertyName: string]: any;
};
Expand Down Expand Up @@ -747,7 +752,7 @@ export interface AzureFunctionActivity extends ExecutionActivity {
body?: any;
functionName: any;
headers?: {
[propertyName: string]: string;
[propertyName: string]: any;
};
method: AzureFunctionActivityMethod;
type: "AzureFunctionActivity";
Expand Down Expand Up @@ -1621,15 +1626,15 @@ export { Credential_2 as Credential }
// @public
export interface CredentialListResponse {
nextLink?: string;
value: ManagedIdentityCredentialResource[];
value: CredentialResource[];
}

// @public
export interface CredentialOperations {
createOrUpdate(resourceGroupName: string, factoryName: string, credentialName: string, credential: ManagedIdentityCredentialResource, options?: CredentialOperationsCreateOrUpdateOptionalParams): Promise<CredentialOperationsCreateOrUpdateResponse>;
createOrUpdate(resourceGroupName: string, factoryName: string, credentialName: string, credential: CredentialResource, options?: CredentialOperationsCreateOrUpdateOptionalParams): Promise<CredentialOperationsCreateOrUpdateResponse>;
delete(resourceGroupName: string, factoryName: string, credentialName: string, options?: CredentialOperationsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, factoryName: string, credentialName: string, options?: CredentialOperationsGetOptionalParams): Promise<CredentialOperationsGetResponse>;
listByFactory(resourceGroupName: string, factoryName: string, options?: CredentialOperationsListByFactoryOptionalParams): PagedAsyncIterableIterator<ManagedIdentityCredentialResource>;
listByFactory(resourceGroupName: string, factoryName: string, options?: CredentialOperationsListByFactoryOptionalParams): PagedAsyncIterableIterator<CredentialResource>;
}

// @public
Expand All @@ -1638,7 +1643,7 @@ export interface CredentialOperationsCreateOrUpdateOptionalParams extends coreCl
}

// @public
export type CredentialOperationsCreateOrUpdateResponse = ManagedIdentityCredentialResource;
export type CredentialOperationsCreateOrUpdateResponse = CredentialResource;

// @public
export interface CredentialOperationsDeleteOptionalParams extends coreClient.OperationOptions {
Expand All @@ -1650,7 +1655,7 @@ export interface CredentialOperationsGetOptionalParams extends coreClient.Operat
}

// @public
export type CredentialOperationsGetResponse = ManagedIdentityCredentialResource;
export type CredentialOperationsGetResponse = CredentialResource;

// @public
export interface CredentialOperationsListByFactoryNextOptionalParams extends coreClient.OperationOptions {
Expand Down Expand Up @@ -5368,7 +5373,7 @@ export interface ManagedIdentityCredential extends Credential_2 {
}

// @public
export interface ManagedIdentityCredentialResource extends SubResource {
export interface ManagedIdentityCredentialResource extends CredentialResource {
properties: ManagedIdentityCredential;
}

Expand Down Expand Up @@ -7456,7 +7461,7 @@ export type ScriptActivityParameterType = string;
export interface ScriptActivityScriptBlock {
parameters?: ScriptActivityParameter[];
text: any;
type: ScriptType;
type: any;
}

// @public
Expand Down Expand Up @@ -7620,6 +7625,11 @@ export interface ServicePrincipalCredential extends Credential_2 {
type: "ServicePrincipal";
}

// @public
export interface ServicePrincipalCredentialResource extends CredentialResource {
properties: ServicePrincipalCredential;
}

// @public
export type ServicePrincipalCredentialType = string;

Expand Down Expand Up @@ -8885,7 +8895,7 @@ export interface WebActivity extends ExecutionActivity {
datasets?: DatasetReference[];
disableCertValidation?: boolean;
headers?: {
[propertyName: string]: string;
[propertyName: string]: any;
};
httpRequestTimeout?: any;
linkedServices?: LinkedServiceReference[];
Expand Down Expand Up @@ -8936,7 +8946,7 @@ export interface WebHookActivity extends ControlActivity {
authentication?: WebActivityAuthentication;
body?: any;
headers?: {
[propertyName: string]: string;
[propertyName: string]: any;
};
method: WebHookActivityMethod;
policy?: SecureInputOutputPolicy;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
credential: credentials,
};

const packageDetails = `azsdk-js-arm-datafactory/14.1.1`;
const packageDetails = `azsdk-js-arm-datafactory/15.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
83 changes: 47 additions & 36 deletions sdk/datafactory/arm-datafactory/src/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2298,7 +2298,7 @@ export interface ConnectionStateProperties {
/** A list of credential resources. */
export interface CredentialListResponse {
/** List of credentials. */
value: ManagedIdentityCredentialResource[];
value: CredentialResource[];
/** The link to the next page of results, if any remaining results exist. */
nextLink?: string;
}
Expand Down Expand Up @@ -3843,8 +3843,8 @@ export interface PowerQuerySinkMapping {
export interface ScriptActivityScriptBlock {
/** The query text. Type: string (or Expression with resultType string). */
text: any;
/** The type of the query. Type: string. */
type: ScriptType;
/** The type of the query. Please refer to the ScriptType for valid options. Type: string (or Expression with resultType string). */
type: any;
/** Array of script parameters. Type: array. */
parameters?: ScriptActivityParameter[];
}
Expand Down Expand Up @@ -4143,9 +4143,9 @@ export interface ManagedPrivateEndpointResource extends SubResource {
}

/** Credential resource type. */
export interface ManagedIdentityCredentialResource extends SubResource {
/** Managed Identity Credential properties. */
properties: ManagedIdentityCredential;
export interface CredentialResource extends SubResource {
/** Properties of credentials. */
properties: CredentialUnion;
}

/** Private Endpoint Connection ARM resource. */
Expand Down Expand Up @@ -4193,12 +4193,6 @@ export interface ChangeDataCaptureResource extends SubResource {
status?: string;
}

/** Credential resource type. */
export interface CredentialResource extends SubResource {
/** Properties of credentials. */
properties: CredentialUnion;
}

/** Managed integration runtime status. */
export interface ManagedIntegrationRuntimeStatus
extends IntegrationRuntimeStatus {
Expand Down Expand Up @@ -6535,6 +6529,12 @@ export interface AzureDatabricksLinkedService extends LinkedService {
encryptedCredential?: string;
/** 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). */
policyId?: any;
/** A set of optional, user-specified cluster attributes key-value pairs. */
newClusterAttributes?: { [propertyName: string]: any };
/** 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). */
clusterOption?: any;
/** Access mode for data secured in unity catalog. Type: string (or Expression with resultType string). */
dataSecurityMode?: any;
/** The credential reference containing authentication information. */
credential?: CredentialReference;
}
Expand Down Expand Up @@ -10173,6 +10173,18 @@ export interface SelfDependencyTumblingWindowTriggerReference
size?: string;
}

/** Credential resource type. */
export interface ManagedIdentityCredentialResource extends CredentialResource {
/** Managed Identity Credential properties. */
properties: ManagedIdentityCredential;
}

/** Credential resource type. */
export interface ServicePrincipalCredentialResource extends CredentialResource {
/** Service Principal Credential properties. */
properties: ServicePrincipalCredential;
}

/** Execute pipeline activity. */
export interface ExecutePipelineActivity extends ControlActivity {
/** Polymorphic discriminator, which specifies the different types this object can be */
Expand Down Expand Up @@ -10318,7 +10330,7 @@ export interface WebHookActivity extends ControlActivity {
/** 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])). */
timeout?: string;
/** 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). */
headers?: { [propertyName: string]: string };
headers?: { [propertyName: string]: any };
/** 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). */
body?: any;
/** Authentication method used for calling the endpoint. */
Expand Down Expand Up @@ -10594,7 +10606,7 @@ export interface WebActivity extends ExecutionActivity {
/** Web activity target endpoint and path. Type: string (or Expression with resultType string). */
url: any;
/** 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). */
headers?: { [propertyName: string]: string };
headers?: { [propertyName: string]: any };
/** 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). */
body?: any;
/** Authentication method used for calling the endpoint. */
Expand Down Expand Up @@ -10738,7 +10750,7 @@ export interface AzureFunctionActivity extends ExecutionActivity {
/** Name of the Function that the Azure Function Activity will call. Type: string (or Expression with resultType string) */
functionName: any;
/** 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). */
headers?: { [propertyName: string]: string };
headers?: { [propertyName: string]: any };
/** 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). */
body?: any;
}
Expand Down Expand Up @@ -13377,24 +13389,6 @@ export enum KnownWebHookActivityMethod {
*/
export type WebHookActivityMethod = string;

/** Known values of {@link ScriptType} that the service accepts. */
export enum KnownScriptType {
/** Query */
Query = "Query",
/** NonQuery */
NonQuery = "NonQuery",
}

/**
* Defines values for ScriptType. \
* {@link KnownScriptType} can be used interchangeably with ScriptType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Query** \
* **NonQuery**
*/
export type ScriptType = string;

/** Known values of {@link ScriptActivityParameterType} that the service accepts. */
export enum KnownScriptActivityParameterType {
/** Boolean */
Expand Down Expand Up @@ -14040,6 +14034,24 @@ export enum KnownSqlDWWriteBehaviorEnum {
*/
export type SqlDWWriteBehaviorEnum = string;

/** Known values of {@link ScriptType} that the service accepts. */
export enum KnownScriptType {
/** Query */
Query = "Query",
/** NonQuery */
NonQuery = "NonQuery",
}

/**
* Defines values for ScriptType. \
* {@link KnownScriptType} can be used interchangeably with ScriptType,
* this enum contains the known values that the service supports.
* ### Known values supported by the service
* **Query** \
* **NonQuery**
*/
export type ScriptType = string;

/** Known values of {@link SqlPartitionOption} that the service accepts. */
export enum KnownSqlPartitionOption {
/** None */
Expand Down Expand Up @@ -14954,8 +14966,7 @@ export interface CredentialOperationsCreateOrUpdateOptionalParams
}

/** Contains response data for the createOrUpdate operation. */
export type CredentialOperationsCreateOrUpdateResponse =
ManagedIdentityCredentialResource;
export type CredentialOperationsCreateOrUpdateResponse = CredentialResource;

/** Optional parameters. */
export interface CredentialOperationsGetOptionalParams
Expand All @@ -14965,7 +14976,7 @@ export interface CredentialOperationsGetOptionalParams
}

/** Contains response data for the get operation. */
export type CredentialOperationsGetResponse = ManagedIdentityCredentialResource;
export type CredentialOperationsGetResponse = CredentialResource;

/** Optional parameters. */
export interface CredentialOperationsDeleteOptionalParams
Expand Down
Loading