Skip to content

Commit

Permalink
CodeGen from PR 28294 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 1d103acc2539e143e3ef679a1a2d88ef66c357a4 into 92de53a5f1e0e03c94b40475d2135d97148ed014
  • Loading branch information
SDKAuto committed Apr 3, 2024
1 parent bd6bcfb commit 9542742
Show file tree
Hide file tree
Showing 12 changed files with 186 additions and 100 deletions.
30 changes: 30 additions & 0 deletions sdk/datafactory/arm-datafactory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,35 @@
# Release History

## 15.0.0 (2024-04-03)

**Features**

- Added Interface ServicePrincipalCredentialResource
- Interface ExpressionV2 has a new optional parameter operators
- Enum KnownExpressionV2Type has a new value NAry

**Breaking Changes**

- Operation CredentialOperations.createOrUpdate has a new signature
- Interface ExpressionV2 no longer has parameter operator
- Interface ManagedIdentityCredential no longer has parameter resourceId
- 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 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.1 (Unreleased)

### Features Added
Expand Down
6 changes: 3 additions & 3 deletions sdk/datafactory/arm-datafactory/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1a011ff0d72315ef3c530fe545c4fe82d0450201",
"commit": "b2e6c959570c6b3f2652678f023d5bb950bf51a6",
"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]",
"use": "@autorest/[email protected].17"
"use": "@autorest/typescript@^6.0.12"
}
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": "14.1.1",
"version": "15.0.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -106,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"
}
27 changes: 16 additions & 11 deletions sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,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 +1621,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 +1638,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 +1650,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 @@ -2767,7 +2767,7 @@ export interface Expression {
// @public
export interface ExpressionV2 {
operands?: ExpressionV2[];
operator?: string;
operators?: any[];
type?: ExpressionV2Type;
value?: string;
}
Expand Down Expand Up @@ -4459,6 +4459,7 @@ export enum KnownExpressionV2Type {
Binary = "Binary",
Constant = "Constant",
Field = "Field",
NAry = "NAry",
Unary = "Unary"
}

Expand Down Expand Up @@ -5363,12 +5364,11 @@ export interface MagentoSource extends TabularSource {

// @public
export interface ManagedIdentityCredential extends Credential_2 {
resourceId?: string;
type: "ManagedIdentity";
}

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

Expand Down Expand Up @@ -7620,6 +7620,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 +8890,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 +8941,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
48 changes: 27 additions & 21 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 @@ -3917,8 +3917,8 @@ export interface ExpressionV2 {
type?: ExpressionV2Type;
/** Value for Constant/Field Type: string. */
value?: string;
/** Expression operator value Type: string. */
operator?: string;
/** Expression operator value Type: list of strings. */
operators?: any[];
/** List of nested expressions. */
operands?: ExpressionV2[];
}
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 @@ -8188,8 +8182,6 @@ export interface LinkedServiceDebugResource extends SubResourceDebugResource {
export interface ManagedIdentityCredential extends Credential {
/** Polymorphic discriminator, which specifies the different types this object can be */
type: "ManagedIdentity";
/** The resource id of user assigned managed identity */
resourceId?: string;
}

/** Service principal credential. */
Expand Down Expand Up @@ -10173,6 +10165,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 +10322,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 +10598,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 +10742,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 @@ -13615,6 +13619,8 @@ export enum KnownExpressionV2Type {
Unary = "Unary",
/** Binary */
Binary = "Binary",
/** NAry */
NAry = "NAry",
}

/**
Expand All @@ -13625,7 +13631,8 @@ export enum KnownExpressionV2Type {
* **Constant** \
* **Field** \
* **Unary** \
* **Binary**
* **Binary** \
* **NAry**
*/
export type ExpressionV2Type = string;

Expand Down Expand Up @@ -14954,8 +14961,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 +14971,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

0 comments on commit 9542742

Please sign in to comment.