* datalake-analytics-track2-ga

* update readme.md
This commit is contained in:
colawwj 2021-12-23 11:10:50 +08:00 коммит произвёл GitHub
Родитель cbbbcf14ed
Коммит 11b12c965f
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
15 изменённых файлов: 86 добавлений и 145 удалений

Просмотреть файл

@ -62,7 +62,7 @@
"node": ">=10.10.0"
},
"dependencies": {
"@azure-tools/js-sdk-release-tools": "^1.0.3",
"@azure-tools/js-sdk-release-tools": "^1.0.4",
"eng-package-utils": "file:eng/tools/eng-package-utils",
"versioning": "file:eng/tools/versioning"
}

Просмотреть файл

@ -1,26 +1,11 @@
## Release History
# Release History
### 2.0.0-beta.2 (Unreleased)
## 2.0.0-beta.2 (2021-12-23)
#### Features Added
The package of @azure/arm-datalake-analytics is using our next generation design principles since version 2.0.0-beta.2, which contains breaking changes.
#### Breaking Changes
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
#### Bugs Fixed
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
#### Other Changes
### 2.0.0-beta.1 (2021-11-17)
This is the first preview for the new version of the `@azure/arm-datalake-analytics` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
While this package remains auto generated, the SDK generator itself has undergone changes to comply with the above guidelines in order to generate packages that are idiomatic to the JavaScript/TypeScript ecosystem and consistent with other packages for Azure services. For more on this, please see [State of the Azure SDK 2021](https://devblogs.microsoft.com/azure-sdk/state-of-the-azure-sdk-2021/).
Please note that this version has breaking changes, all of which were made after careful consideration during the authoring of the guidelines and user studies.
**Noteworthy changes and features**
- Authentication: The packages `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` are no longer supported. Use package [@azure/identity](https://www.npmjs.com/package/@azure/identity) instead. Select a credential from Azure Identity examples based on the authentication method of your choice.
- Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
- List operations now return an iterable result that follows the `PagedAsyncIterableIterator` interface as opposed to the previous model where you had to make a new request using the link to the next page.
- Long running operations i.e. the Lro related object returned by methods whose names started with `begin`, now uses `pollUntilDone` to check whether the request is finished, instead of `pollUntilFinished`. To get the final result, use the corresponding method that will have the suffix `AndWait`.
- The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).

Просмотреть файл

@ -1,7 +1,7 @@
{
"commit": "c4d6f92d3fd35a69ebce68f4c73c35c4238c2ac5",
"commit": "270ba8923ce458af2b59cd66b008355676bccd49",
"readme": "specification/datalake-analytics/resource-manager/readme.md",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.15.20211116.1",
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/datalake-analytics/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"use": "@autorest/typescript@6.0.0-alpha.15.20211116.1"
"use": "@autorest/typescript@6.0.0-alpha.16.20211217.1"
}

Просмотреть файл

@ -4,9 +4,7 @@
"author": "Microsoft Corporation",
"description": "A generated SDK for DataLakeAnalyticsAccountManagementClient.",
"version": "2.0.0-beta.2",
"engines": {
"node": ">=12.0.0"
},
"engines": { "node": ">=12.0.0" },
"dependencies": {
"@azure/core-lro": "^2.2.0",
"@azure/abort-controller": "^1.0.0",
@ -16,13 +14,7 @@
"@azure/core-rest-pipeline": "^1.1.0",
"tslib": "^2.2.0"
},
"keywords": [
"node",
"azure",
"typescript",
"browser",
"isomorphic"
],
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
"main": "./dist/index.js",
"module": "./dist-esm/src/index.js",
@ -49,9 +41,7 @@
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
"bugs": {
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
},
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",

Просмотреть файл

@ -323,11 +323,15 @@ export interface DataLakeAnalyticsAccountListResult {
}
// @public (undocumented)
export class DataLakeAnalyticsAccountManagementClient extends DataLakeAnalyticsAccountManagementClientContext {
export class DataLakeAnalyticsAccountManagementClient extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DataLakeAnalyticsAccountManagementClientOptionalParams);
// (undocumented)
accounts: Accounts;
// (undocumented)
apiVersion: string;
// (undocumented)
computePolicies: ComputePolicies;
// (undocumented)
dataLakeStoreAccounts: DataLakeStoreAccounts;
@ -339,15 +343,6 @@ export class DataLakeAnalyticsAccountManagementClient extends DataLakeAnalyticsA
operations: Operations;
// (undocumented)
storageAccounts: StorageAccounts;
}
// @public (undocumented)
export class DataLakeAnalyticsAccountManagementClientContext extends coreClient.ServiceClient {
// (undocumented)
$host: string;
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DataLakeAnalyticsAccountManagementClientOptionalParams);
// (undocumented)
apiVersion: string;
// (undocumented)
subscriptionId: string;
}

Просмотреть файл

@ -6,6 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
import * as coreClient from "@azure/core-client";
import * as coreAuth from "@azure/core-auth";
import {
AccountsImpl,
@ -25,10 +26,13 @@ import {
Operations,
Locations
} from "./operationsInterfaces";
import { DataLakeAnalyticsAccountManagementClientContext } from "./dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClientOptionalParams } from "./models";
export class DataLakeAnalyticsAccountManagementClient extends DataLakeAnalyticsAccountManagementClientContext {
export class DataLakeAnalyticsAccountManagementClient extends coreClient.ServiceClient {
$host: string;
subscriptionId: string;
apiVersion: string;
/**
* Initializes a new instance of the DataLakeAnalyticsAccountManagementClient class.
* @param credentials Subscription credentials which uniquely identify client subscription.
@ -41,7 +45,46 @@ export class DataLakeAnalyticsAccountManagementClient extends DataLakeAnalyticsA
subscriptionId: string,
options?: DataLakeAnalyticsAccountManagementClientOptionalParams
) {
super(credentials, subscriptionId, options);
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
}
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");
}
// Initializing default values for options
if (!options) {
options = {};
}
const defaults: DataLakeAnalyticsAccountManagementClientOptionalParams = {
requestContentType: "application/json; charset=utf-8",
credential: credentials
};
const packageDetails = `azsdk-js-arm-datalake-analytics/2.0.0-beta.2`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;
if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
userAgentOptions: {
userAgentPrefix
},
baseUri: options.endpoint || "https://management.azure.com"
};
super(optionsWithDefaults);
// Parameter assignments
this.subscriptionId = subscriptionId;
// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2019-11-01-preview";
this.accounts = new AccountsImpl(this);
this.dataLakeStoreAccounts = new DataLakeStoreAccountsImpl(this);
this.storageAccounts = new StorageAccountsImpl(this);

Просмотреть файл

@ -1,71 +0,0 @@
/*
* 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 * as coreClient from "@azure/core-client";
import * as coreAuth from "@azure/core-auth";
import { DataLakeAnalyticsAccountManagementClientOptionalParams } from "./models";
export class DataLakeAnalyticsAccountManagementClientContext extends coreClient.ServiceClient {
$host: string;
subscriptionId: string;
apiVersion: string;
/**
* Initializes a new instance of the DataLakeAnalyticsAccountManagementClientContext class.
* @param credentials Subscription credentials which uniquely identify client subscription.
* @param subscriptionId Get subscription credentials which uniquely identify Microsoft Azure
* subscription. The subscription ID forms part of the URI for every service call.
* @param options The parameter options
*/
constructor(
credentials: coreAuth.TokenCredential,
subscriptionId: string,
options?: DataLakeAnalyticsAccountManagementClientOptionalParams
) {
if (credentials === undefined) {
throw new Error("'credentials' cannot be null");
}
if (subscriptionId === undefined) {
throw new Error("'subscriptionId' cannot be null");
}
// Initializing default values for options
if (!options) {
options = {};
}
const defaults: DataLakeAnalyticsAccountManagementClientOptionalParams = {
requestContentType: "application/json; charset=utf-8",
credential: credentials
};
const packageDetails = `azsdk-js-arm-datalake-analytics/2.0.0-beta.1`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
: `${packageDetails}`;
if (!options.credentialScopes) {
options.credentialScopes = ["https://management.azure.com/.default"];
}
const optionsWithDefaults = {
...defaults,
...options,
userAgentOptions: {
userAgentPrefix
},
baseUri: options.endpoint || "https://management.azure.com"
};
super(optionsWithDefaults);
// Parameter assignments
this.subscriptionId = subscriptionId;
// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2019-11-01-preview";
}
}

Просмотреть файл

@ -9,5 +9,4 @@
/// <reference lib="esnext.asynciterable" />
export * from "./models";
export { DataLakeAnalyticsAccountManagementClient } from "./dataLakeAnalyticsAccountManagementClient";
export { DataLakeAnalyticsAccountManagementClientContext } from "./dataLakeAnalyticsAccountManagementClientContext";
export * from "./operationsInterfaces";

Просмотреть файл

@ -11,7 +11,7 @@ import { Accounts } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
import { LroImpl } from "../lroImpl";
import {
@ -40,13 +40,13 @@ import {
/// <reference lib="esnext.asynciterable" />
/** Class containing Accounts operations. */
export class AccountsImpl implements Accounts {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class Accounts class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}

Просмотреть файл

@ -11,7 +11,7 @@ import { ComputePolicies } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import {
ComputePolicy,
ComputePoliciesListByAccountNextOptionalParams,
@ -31,13 +31,13 @@ import {
/// <reference lib="esnext.asynciterable" />
/** Class containing ComputePolicies operations. */
export class ComputePoliciesImpl implements ComputePolicies {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class ComputePolicies class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}

Просмотреть файл

@ -11,7 +11,7 @@ import { DataLakeStoreAccounts } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import {
DataLakeStoreAccountInformation,
DataLakeStoreAccountsListByAccountNextOptionalParams,
@ -27,13 +27,13 @@ import {
/// <reference lib="esnext.asynciterable" />
/** Class containing DataLakeStoreAccounts operations. */
export class DataLakeStoreAccountsImpl implements DataLakeStoreAccounts {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class DataLakeStoreAccounts class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}

Просмотреть файл

@ -11,7 +11,7 @@ import { FirewallRules } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import {
FirewallRule,
FirewallRulesListByAccountNextOptionalParams,
@ -31,13 +31,13 @@ import {
/// <reference lib="esnext.asynciterable" />
/** Class containing FirewallRules operations. */
export class FirewallRulesImpl implements FirewallRules {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class FirewallRules class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}

Просмотреть файл

@ -10,7 +10,7 @@ import { Locations } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import {
LocationsGetCapabilityOptionalParams,
LocationsGetCapabilityResponse
@ -18,13 +18,13 @@ import {
/** Class containing Locations operations. */
export class LocationsImpl implements Locations {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class Locations class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}

Просмотреть файл

@ -10,7 +10,7 @@ import { Operations } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import {
OperationsListOptionalParams,
OperationsListResponse
@ -18,13 +18,13 @@ import {
/** Class containing Operations operations. */
export class OperationsImpl implements Operations {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class Operations class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}

Просмотреть файл

@ -11,7 +11,7 @@ import { StorageAccounts } from "../operationsInterfaces";
import * as coreClient from "@azure/core-client";
import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
import { DataLakeAnalyticsAccountManagementClient } from "../dataLakeAnalyticsAccountManagementClient";
import {
StorageAccountInformation,
StorageAccountsListByAccountNextOptionalParams,
@ -41,13 +41,13 @@ import {
/// <reference lib="esnext.asynciterable" />
/** Class containing StorageAccounts operations. */
export class StorageAccountsImpl implements StorageAccounts {
private readonly client: DataLakeAnalyticsAccountManagementClientContext;
private readonly client: DataLakeAnalyticsAccountManagementClient;
/**
* Initialize a new instance of the class StorageAccounts class.
* @param client Reference to the service client
*/
constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
constructor(client: DataLakeAnalyticsAccountManagementClient) {
this.client = client;
}