diff --git a/sdk/datacatalog/arm-datacatalog/LICENSE.txt b/sdk/datacatalog/arm-datacatalog/LICENSE.txt index a70e8cf66038..2d3163745319 100644 --- a/sdk/datacatalog/arm-datacatalog/LICENSE.txt +++ b/sdk/datacatalog/arm-datacatalog/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2021 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/sdk/datacatalog/arm-datacatalog/README.md b/sdk/datacatalog/arm-datacatalog/README.md index bfe24b08786b..bbf211ce3019 100644 --- a/sdk/datacatalog/arm-datacatalog/README.md +++ b/sdk/datacatalog/arm-datacatalog/README.md @@ -1,11 +1,11 @@ ## Azure DataCatalogRestClient SDK for JavaScript -This package contains an isomorphic SDK (runs both in Node.js and in browsers) for DataCatalogRestClient. +This package contains an isomorphic SDK (runs both in node.js and in browsers) for DataCatalogRestClient. ### Currently supported environments - [LTS versions of Node.js](https://nodejs.org/about/releases/) -- Latest versions of Safari, Chrome, Edge, and Firefox. +- Latest versions of Safari, Chrome, Edge and Firefox. ### Prerequisites @@ -21,7 +21,6 @@ Install both packages using the below command: ```bash npm install --save @azure/arm-datacatalog @azure/identity ``` - > **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features. If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options. @@ -37,7 +36,6 @@ If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/ In the below samples, we pass the credential and the Azure subscription id to instantiate the client. Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started. - #### nodejs - Authentication, client creation, and list aDCOperations as an example written in JavaScript. ##### Sample code @@ -51,7 +49,6 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"]; // Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead. const creds = new DefaultAzureCredential(); const client = new DataCatalogRestClient(creds, subscriptionId); - client.aDCOperations.list().then((result) => { console.log("The result is:"); console.log(result); @@ -86,7 +83,7 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t const credential = new InteractiveBrowserCredential( { clientId: "", - tenantId: "" + tenant: "" }); const client = new Azure.ArmDatacatalog.DataCatalogRestClient(creds, subscriptionId); client.aDCOperations.list().then((result) => { diff --git a/sdk/datacatalog/arm-datacatalog/package.json b/sdk/datacatalog/arm-datacatalog/package.json index e27b2c2c857e..058424621d37 100644 --- a/sdk/datacatalog/arm-datacatalog/package.json +++ b/sdk/datacatalog/arm-datacatalog/package.json @@ -2,12 +2,12 @@ "name": "@azure/arm-datacatalog", "author": "Microsoft Corporation", "description": "DataCatalogRestClient Library with typescript type definitions for node.js and browser.", - "version": "1.2.1", + "version": "2.0.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.4.0", - "@azure/ms-rest-js": "^1.11.0", + "@azure/ms-rest-azure-js": "^2.1.0", + "@azure/ms-rest-js": "^2.2.0", "@azure/core-auth": "^1.1.4", - "tslib": "^1.9.3" + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -22,17 +22,18 @@ "types": "./esm/dataCatalogRestClient.d.ts", "devDependencies": { "typescript": "^3.6.0", - "rollup": "^0.66.2", - "rollup-plugin-node-resolve": "^3.4.0", - "uglify-js": "^3.4.9" + "rollup": "^1.18.0", + "rollup-plugin-node-resolve": "^5.2.0", + "rollup-plugin-sourcemaps": "^0.4.2", + "uglify-js": "^3.6.0" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/feature/v4/sdk/datacatalog/arm-datacatalog", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/datacatalog/arm-datacatalog", "repository": { "type": "git", - "url": "https://github.com/azure/azure-sdk-for-js.git" + "url": "https://github.com/Azure/azure-sdk-for-js.git" }, "bugs": { - "url": "https://github.com/azure/azure-sdk-for-js/issues" + "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, "files": [ "dist/**/*.js", @@ -44,6 +45,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], diff --git a/sdk/datacatalog/arm-datacatalog/rollup.config.js b/sdk/datacatalog/arm-datacatalog/rollup.config.js index ccc17b025801..2fa0dbd82b2f 100644 --- a/sdk/datacatalog/arm-datacatalog/rollup.config.js +++ b/sdk/datacatalog/arm-datacatalog/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/dataCatalogRestClient.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/dataCatalogRestClient.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-datacatalog.js", format: "umd", @@ -15,17 +21,17 @@ const config = { "@azure/ms-rest-azure-js": "msRestAzure" }, banner: `/* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ mainFields: ['module', 'main'] }), + sourcemaps() ] }; + export default config; diff --git a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts index 81ff23bff504..2f7105427792 100644 --- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts +++ b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -31,7 +30,8 @@ class DataCatalogRestClient extends DataCatalogRestClientContext { * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. - * @param catalogName The name of the data catlog in the specified subscription and resource group. + * @param catalogName The name of the data catalog in the specified subscription and resource + * group. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, catalogName: string, options?: Models.DataCatalogRestClientOptions) { diff --git a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts index cff2af02fc8c..6641ebe6d602 100644 --- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts +++ b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 @@ -10,11 +9,11 @@ import * as Models from "./models"; import * as msRest from "@azure/ms-rest-js"; -import { TokenCredential } from "@azure/core-auth"; import * as msRestAzure from "@azure/ms-rest-azure-js"; +import { TokenCredential } from "@azure/core-auth"; const packageName = "@azure/arm-datacatalog"; -const packageVersion = "1.2.1"; +const packageVersion = "2.0.0"; export class DataCatalogRestClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials | TokenCredential; @@ -32,7 +31,8 @@ export class DataCatalogRestClientContext extends msRestAzure.AzureServiceClient * @azure/ms-rest-browserauth are also supported. * @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure * subscription. The subscription ID forms part of the URI for every service call. - * @param catalogName The name of the data catlog in the specified subscription and resource group. + * @param catalogName The name of the data catalog in the specified subscription and resource + * group. * @param [options] The parameter options */ constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, catalogName: string, options?: Models.DataCatalogRestClientOptions) { diff --git a/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts b/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts index c25ac42f58e0..75c6113dfbfb 100644 --- a/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts +++ b/sdk/datacatalog/arm-datacatalog/src/models/aDCCatalogsMappers.ts @@ -1,19 +1,16 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - ADCCatalogsListResult, ADCCatalog, - Resource, + ADCCatalogsListResult, BaseResource, + CloudError, Principals, - CloudError + Resource } from "../models/mappers"; - diff --git a/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts b/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts index aba5d8bf047b..a0ef9f388153 100644 --- a/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts +++ b/sdk/datacatalog/arm-datacatalog/src/models/aDCOperationsMappers.ts @@ -1,17 +1,14 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ export { - OperationEntityListResult, - OperationEntity, + CloudError, OperationDisplayInfo, - CloudError + OperationEntity, + OperationEntityListResult } from "../models/mappers"; - diff --git a/sdk/datacatalog/arm-datacatalog/src/models/index.ts b/sdk/datacatalog/arm-datacatalog/src/models/index.ts index 2c3606bc5249..7c694508963d 100644 --- a/sdk/datacatalog/arm-datacatalog/src/models/index.ts +++ b/sdk/datacatalog/arm-datacatalog/src/models/index.ts @@ -1,11 +1,9 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js"; @@ -13,184 +11,146 @@ import * as msRest from "@azure/ms-rest-js"; export { BaseResource, CloudError }; - /** - * @interface - * An interface representing Principals. * User principals. - * */ export interface Principals { /** - * @member {string} [upn] UPN of the user. + * UPN of the user. */ upn?: string; /** - * @member {string} [objectId] Object Id for the user + * Object Id for the user */ objectId?: string; } /** - * @interface - * An interface representing Resource. * The Resource model definition. - * - * @extends BaseResource */ export interface Resource extends BaseResource { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly name?: string; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly type?: string; /** - * @member {string} [location] Resource location + * Resource location */ location?: string; /** - * @member {{ [propertyName: string]: string }} [tags] Resource tags + * Resource tags */ tags?: { [propertyName: string]: string }; /** - * @member {string} [etag] Resource etag + * Resource etag */ etag?: string; } /** - * @interface - * An interface representing ADCCatalog. * Azure Data Catalog. - * - * @extends Resource */ export interface ADCCatalog extends Resource { /** - * @member {SkuType} [sku] Azure data catalog SKU. Possible values include: - * 'Free', 'Standard' + * Azure data catalog SKU. Possible values include: 'Free', 'Standard' */ sku?: SkuType; /** - * @member {number} [units] Azure data catalog units. + * Azure data catalog units. */ units?: number; /** - * @member {Principals[]} [admins] Azure data catalog admin list. + * Azure data catalog admin list. */ admins?: Principals[]; /** - * @member {Principals[]} [users] Azure data catalog user list. + * Azure data catalog user list. */ users?: Principals[]; /** - * @member {boolean} [successfullyProvisioned] Azure data catalog provision - * status. + * Azure data catalog provision status. */ successfullyProvisioned?: boolean; /** - * @member {boolean} [enableAutomaticUnitAdjustment] Automatic unit - * adjustment enabled or not. + * Automatic unit adjustment enabled or not. */ enableAutomaticUnitAdjustment?: boolean; } /** - * @interface - * An interface representing ADCCatalogsListResult. * The response from the List Azure Data Catalog operation. - * */ export interface ADCCatalogsListResult { /** - * @member {ADCCatalog[]} [value] the list of Azure Data Catalogs. + * the list of Azure Data Catalogs. */ value?: ADCCatalog[]; } /** - * @interface - * An interface representing OperationDisplayInfo. * The operation supported by Azure Data Catalog Service. - * */ export interface OperationDisplayInfo { /** - * @member {string} [description] The description of the operation. + * The description of the operation. */ description?: string; /** - * @member {string} [operation] The action that users can perform, based on - * their permission level. + * The action that users can perform, based on their permission level. */ operation?: string; /** - * @member {string} [provider] Service provider: Azure Data Catalog Service. + * Service provider: Azure Data Catalog Service. */ provider?: string; /** - * @member {string} [resource] Resource on which the operation is performed. + * Resource on which the operation is performed. */ resource?: string; } /** - * @interface - * An interface representing OperationEntity. * The operation supported by Azure Data Catalog Service. - * */ export interface OperationEntity { /** - * @member {string} [name] Operation name: {provider}/{resource}/{operation}. + * Operation name: {provider}/{resource}/{operation}. */ name?: string; /** - * @member {OperationDisplayInfo} [display] The operation supported by Azure - * Data Catalog Service. + * The operation supported by Azure Data Catalog Service. */ display?: OperationDisplayInfo; } /** - * @interface - * An interface representing OperationEntityListResult. * The list of Azure data catalog service operation response. - * */ export interface OperationEntityListResult { /** - * @member {OperationEntity[]} [value] The list of operations. + * The list of operations. */ value?: OperationEntity[]; } /** - * @interface * An interface representing DataCatalogRestClientOptions. - * @extends AzureServiceClientOptions */ export interface DataCatalogRestClientOptions extends AzureServiceClientOptions { - /** - * @member {string} [baseUri] - */ baseUri?: string; } - /** * Defines values for SkuType. * Possible values include: 'Free', 'Standard' @@ -211,6 +171,7 @@ export type ADCOperationsListResponse = OperationEntityListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -230,6 +191,7 @@ export type ADCCatalogsListtByResourceGroupResponse = ADCCatalogsListResult & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -249,6 +211,7 @@ export type ADCCatalogsCreateOrUpdateResponse = ADCCatalog & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -268,6 +231,7 @@ export type ADCCatalogsGetResponse = ADCCatalog & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ @@ -287,6 +251,7 @@ export type ADCCatalogsUpdateResponse = ADCCatalog & { * The response body as text (string format) */ bodyAsText: string; + /** * The response body as parsed JSON or XML */ diff --git a/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts b/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts index fd335ff89fc6..fffe1885d198 100644 --- a/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts +++ b/sdk/datacatalog/arm-datacatalog/src/models/mappers.ts @@ -1,11 +1,9 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js"; diff --git a/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts b/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts index 9ec29ab6c2c7..96c5dc9ee552 100644 --- a/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts +++ b/sdk/datacatalog/arm-datacatalog/src/models/parameters.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts b/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts index a8e717cffe94..609b54be9269 100644 --- a/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts +++ b/sdk/datacatalog/arm-datacatalog/src/operations/aDCCatalogs.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts b/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts index d75dd298f37a..dbdc96630ce2 100644 --- a/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts +++ b/sdk/datacatalog/arm-datacatalog/src/operations/aDCOperations.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/datacatalog/arm-datacatalog/src/operations/index.ts b/sdk/datacatalog/arm-datacatalog/src/operations/index.ts index b2d154cbed2d..26d3565105cd 100644 --- a/sdk/datacatalog/arm-datacatalog/src/operations/index.ts +++ b/sdk/datacatalog/arm-datacatalog/src/operations/index.ts @@ -1,7 +1,6 @@ /* - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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 diff --git a/sdk/datacatalog/arm-datacatalog/tsconfig.json b/sdk/datacatalog/arm-datacatalog/tsconfig.json index 87bbf5b5fa49..422b584abd5e 100644 --- a/sdk/datacatalog/arm-datacatalog/tsconfig.json +++ b/sdk/datacatalog/arm-datacatalog/tsconfig.json @@ -9,7 +9,7 @@ "esModuleInterop": true, "allowSyntheticDefaultImports": true, "forceConsistentCasingInFileNames": true, - "lib": ["es6"], + "lib": ["es6", "dom"], "declaration": true, "outDir": "./esm", "importHelpers": true