Skip to content

Commit

Permalink
CodeGen from PR 26846 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 27fc75804fae39f2b6c5804d2ac44cc902329cbb into 30d711afc12628f35811e9f6eedeb7246e53264f
  • Loading branch information
SDKAuto committed Nov 30, 2023
1 parent 9a0d1f7 commit a44fe3e
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 56 deletions.
18 changes: 8 additions & 10 deletions sdk/datafactory/arm-datafactory/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
# Release History

## 12.1.0 (2023-11-30)

**Features**

## 12.0.1 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

- Interface AvroDataset has a new optional parameter schema
- Interface JsonDataset has a new optional parameter schema


## 12.0.0 (2023-11-10)

**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": "db9788dde7a0c2c0d82e4fdf5f7b4de3843937e3",
"commit": "7fef15c581ba801bca0c9a9b3fd3ca0a14e7870b",
"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/typescript@6.0.12 --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/js-sdk-release-tools@2.7.2",
"use": "@autorest/typescript@6.0.12"
"release_tool": "@azure-tools/js-sdk-release-tools@2.7.4",
"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": "12.0.1",
"version": "12.1.0",
"engines": {
"node": ">=18.0.0"
},
Expand Down Expand Up @@ -107,13 +107,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"
}
2 changes: 2 additions & 0 deletions sdk/datafactory/arm-datafactory/review/arm-datafactory.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,7 @@ export interface AvroDataset extends Dataset {
// (undocumented)
avroCompressionLevel?: number;
location?: DatasetLocationUnion;
schema?: any;
type: "Avro";
}

Expand Down Expand Up @@ -4178,6 +4179,7 @@ export interface JsonDataset extends Dataset {
compression?: DatasetCompression;
encodingName?: any;
location?: DatasetLocationUnion;
schema?: any;
type: "Json";
}

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/12.0.1`;
const packageDetails = `azsdk-js-arm-datafactory/12.1.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down
48 changes: 26 additions & 22 deletions sdk/datafactory/arm-datafactory/src/models/index.ts

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions sdk/datafactory/arm-datafactory/src/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15636,6 +15636,12 @@ export const AvroDataset: coreClient.CompositeMapper = {
polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator,
modelProperties: {
...Dataset.type.modelProperties,
schema: {
serializedName: "schema",
type: {
name: "any"
}
},
location: {
serializedName: "typeProperties.location",
type: {
Expand Down Expand Up @@ -15833,6 +15839,12 @@ export const JsonDataset: coreClient.CompositeMapper = {
polymorphicDiscriminator: Dataset.type.polymorphicDiscriminator,
modelProperties: {
...Dataset.type.modelProperties,
schema: {
serializedName: "schema",
type: {
name: "any"
}
},
location: {
serializedName: "typeProperties.location",
type: {
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

0 comments on commit a44fe3e

Please sign in to comment.