From 90848ba563db2dfb40681462492219d35ea8c008 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Thu, 1 Aug 2019 04:48:50 +0000 Subject: [PATCH] Generated from 6a8aebfec8c9e667a1bb25c78d6b7607c9d8453d fix: datacatalog model validaiton errors Remove null body and headers for RESPONSE_SCHEMA_NOT_IN_SPEC errors --- sdk/datacatalog/arm-datacatalog/LICENSE.txt | 2 +- sdk/datacatalog/arm-datacatalog/README.md | 9 +- sdk/datacatalog/arm-datacatalog/package.json | 16 +-- .../arm-datacatalog/rollup.config.js | 22 +++-- .../src/dataCatalogRestClient.ts | 3 +- .../src/dataCatalogRestClientContext.ts | 5 +- .../src/models/aDCCatalogsMappers.ts | 13 +-- .../src/models/aDCOperationsMappers.ts | 13 +-- .../arm-datacatalog/src/models/index.ts | 99 ++++++------------- .../arm-datacatalog/src/models/mappers.ts | 6 +- sdk/datacatalog/arm-datacatalog/tsconfig.json | 2 +- 11 files changed, 78 insertions(+), 112 deletions(-) diff --git a/sdk/datacatalog/arm-datacatalog/LICENSE.txt b/sdk/datacatalog/arm-datacatalog/LICENSE.txt index a70e8cf66038..b73b4a1293c3 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) 2019 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 9cd2678a1536..adc1b3a0c908 100644 --- a/sdk/datacatalog/arm-datacatalog/README.md +++ b/sdk/datacatalog/arm-datacatalog/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for DataCatalogRestClient. ### How to Install -``` +```bash npm install @azure/arm-datacatalog ``` @@ -19,13 +19,13 @@ npm install @azure/arm-datacatalog ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -95,5 +95,4 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/datacatalog/arm-datacatalog/README.png) diff --git a/sdk/datacatalog/arm-datacatalog/package.json b/sdk/datacatalog/arm-datacatalog/package.json index 0da141a6a3e8..76899fed524a 100644 --- a/sdk/datacatalog/arm-datacatalog/package.json +++ b/sdk/datacatalog/arm-datacatalog/package.json @@ -4,9 +4,9 @@ "description": "DataCatalogRestClient Library with typescript type definitions for node.js and browser.", "version": "1.1.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", - "tslib": "^1.9.3" + "@azure/ms-rest-azure-js": "^2.0.0", + "@azure/ms-rest-js": "^2.0.3", + "tslib": "^1.10.0" }, "keywords": [ "node", @@ -23,15 +23,16 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, - "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/sdk/datacatalog/arm-datacatalog", + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/master/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", @@ -43,6 +44,7 @@ "esm/**/*.d.ts", "esm/**/*.d.ts.map", "src/**/*.ts", + "README.md", "rollup.config.js", "tsconfig.json" ], @@ -52,5 +54,5 @@ "prepack": "npm install && npm run build" }, "sideEffects": false, - "authPublish": true + "autoPublish": true } diff --git a/sdk/datacatalog/arm-datacatalog/rollup.config.js b/sdk/datacatalog/arm-datacatalog/rollup.config.js index ccc17b025801..4e0068fd515c 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", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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({ module: true }), + sourcemaps() ] }; + export default config; diff --git a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts index 4aa9c94fa9ea..542756544a62 100644 --- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts +++ b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClient.ts @@ -25,7 +25,8 @@ class DataCatalogRestClient extends DataCatalogRestClientContext { * @param credentials Credentials needed for the client to connect to Azure. * @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, 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 625a2fd045b7..a91ab91990af 100644 --- a/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts +++ b/sdk/datacatalog/arm-datacatalog/src/dataCatalogRestClientContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-datacatalog"; -const packageVersion = "0.1.0"; +const packageVersion = "1.1.0"; export class DataCatalogRestClientContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; @@ -26,7 +26,8 @@ export class DataCatalogRestClientContext extends msRestAzure.AzureServiceClient * @param credentials Credentials needed for the client to connect to Azure. * @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, 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..045c51e73368 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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..c83dbeabcc21 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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..aa173a5f6b2c 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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..5239b049abbd 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. + * Licensed under the MIT License. See License.txt in the project root for license information. * * 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/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