Skip to content

Commit 9590ba5

Browse files
authored
Generated from 8aa908c456517c1d7eac8d17010c4b6cb3ecfee4 (#647)
typo: Microsoft.DataCatalog - catlog -> catalog
1 parent 60cc241 commit 9590ba5

File tree

12 files changed

+119
-136
lines changed

12 files changed

+119
-136
lines changed
Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
The MIT License (MIT)
2-
3-
Copyright (c) 2018 Microsoft
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2018 Microsoft
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 77 additions & 96 deletions
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,77 @@
1-
## Azure DataCatalogRestClient SDK for JavaScript
2-
3-
This package contains an isomorphic SDK for DataCatalogRestClient.
4-
5-
### Currently supported environments
6-
7-
- Node.js version 6.x.x or higher
8-
- Browser JavaScript
9-
10-
### How to Install
11-
12-
```
13-
npm install @azure/arm-datacatalog
14-
```
15-
16-
### How to use
17-
18-
#### nodejs - Authentication, client creation and list aDCOperations as an example written in TypeScript.
19-
20-
##### Install @azure/ms-rest-nodeauth
21-
22-
```
23-
npm install @azure/ms-rest-nodeauth
24-
```
25-
26-
##### Sample code
27-
28-
```ts
29-
import * as msRest from "@azure/ms-rest-js";
30-
import * as msRestAzure from "@azure/ms-rest-azure-js";
31-
import * as msRestNodeAuth from "@azure/ms-rest-nodeauth";
32-
import { DataCatalogRestClient, DataCatalogRestModels, DataCatalogRestMappers } from "@azure/arm-datacatalog";
33-
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
34-
35-
msRestNodeAuth.interactiveLogin().then((creds) => {
36-
const client = new DataCatalogRestClient(creds, subscriptionId);
37-
client.aDCOperations.list().then((result) => {
38-
console.log("The result is:");
39-
console.log(result);
40-
});
41-
}).catch((err) => {
42-
console.error(err);
43-
});
44-
```
45-
46-
#### browser - Authentication, client creation and list aDCOperations as an example written in JavaScript.
47-
48-
##### Install @azure/ms-rest-browserauth
49-
50-
```
51-
npm install @azure/ms-rest-browserauth
52-
```
53-
54-
##### Sample code
55-
56-
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
57-
58-
- index.html
59-
```html
60-
<!DOCTYPE html>
61-
<html lang="en">
62-
<head>
63-
<title>@azure/arm-datacatalog sample</title>
64-
<script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
65-
<script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
66-
<script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
67-
<script src="node_modules/@azure/arm-datacatalog/dist/arm-datacatalog.js"></script>
68-
<script type="text/javascript">
69-
const subscriptionId = "<Subscription_Id>";
70-
const authManager = new msAuth.AuthManager({
71-
clientId: "<client id for your Azure AD app>",
72-
tenant: "<optional tenant for your organization>"
73-
});
74-
authManager.finalizeLogin().then((res) => {
75-
if (!res.isLoggedIn) {
76-
// may cause redirects
77-
authManager.login();
78-
}
79-
const client = new Azure.ArmDatacatalog.DataCatalogRestClient(res.creds, subscriptionId);
80-
client.aDCOperations.list().then((result) => {
81-
console.log("The result is:");
82-
console.log(result);
83-
}).catch((err) => {
84-
console.log("An error occurred:");
85-
console.error(err);
86-
});
87-
});
88-
</script>
89-
</head>
90-
<body></body>
91-
</html>
92-
```
93-
94-
## Related projects
95-
96-
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
1+
# Azure DataCatalogRestClient SDK for JavaScript
2+
This package contains an isomorphic SDK for DataCatalogRestClient.
3+
4+
## Currently supported environments
5+
- Node.js version 6.x.x or higher
6+
- Browser JavaScript
7+
8+
## How to Install
9+
```
10+
npm install @azure/arm-datacatalog
11+
```
12+
13+
14+
## How to use
15+
16+
### nodejs - Authentication, client creation and list aDCOperations as an example written in TypeScript.
17+
18+
```ts
19+
import * as msRest from "ms-rest-js";
20+
import * as msRestAzure from "ms-rest-azure-js";
21+
import * as msRestNodeAuth from "ms-rest-nodeauth";
22+
import { DataCatalogRestClient, DataCatalogRestModels, DataCatalogRestMappers } from "@azure/arm-datacatalog";
23+
const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
24+
25+
msRestNodeAuth.interactiveLogin().then((creds) => {
26+
const client = new DataCatalogRestClient(creds, subscriptionId);
27+
client.aDCOperations.list().then((result) => {
28+
console.log("The result is:");
29+
console.log(result);
30+
});
31+
}).catch((err) => {
32+
console.error(err);
33+
});
34+
```
35+
36+
### browser - Authentication, client creation and list aDCOperations as an example written in JavaScript.
37+
See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
38+
39+
- index.html
40+
```html
41+
<!DOCTYPE html>
42+
<html lang="en">
43+
<head>
44+
<title>@azure/arm-datacatalog sample</title>
45+
<script src="node_modules/ms-rest-js/dist/msRest.browser.js"></script>
46+
<script src="node_modules/ms-rest-azure-js/dist/msRestAzure.js"></script>
47+
<script src="node_modules/ms-rest-browserauth/dist/msAuth.js"></script>
48+
<script src="node_modules/@azure/arm-datacatalog/dist/arm-datacatalog.js"></script>
49+
<script>
50+
const subscriptionId = "<Subscription_Id>";
51+
const authManager = new msAuth.AuthManager({
52+
clientId: "<client id for your Azure AD app>",
53+
tenant: "<optional tenant for your organization>"
54+
});
55+
authManager.finalizeLogin().then((res) => {
56+
if (!res.isLoggedIn) {
57+
// may cause redirects
58+
authManager.login();
59+
}
60+
const client = new Azure.ArmDatacatalog.DataCatalogRestClient(res.creds, subscriptionId);
61+
client.aDCOperations.list().then((result) => {
62+
console.log("The result is:");
63+
console.log(result);
64+
}).catch((err) => {
65+
console.log("An error occurred:");
66+
console.error(err);
67+
});
68+
});
69+
</script>
70+
</head>
71+
<body>
72+
</body>
73+
</html>
74+
```
75+
76+
# Related projects
77+
- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)

packages/@azure/arm-datacatalog/lib/dataCatalogRestClient.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* regenerated.
99
*/
1010

11-
import * as msRest from "@azure/ms-rest-js";
11+
import * as msRest from "ms-rest-js";
1212
import * as Models from "./models";
1313
import * as Mappers from "./models/mappers";
1414
import * as operations from "./operations";
@@ -25,7 +25,8 @@ class DataCatalogRestClient extends DataCatalogRestClientContext {
2525
* @param credentials Credentials needed for the client to connect to Azure.
2626
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
2727
* subscription. The subscription ID forms part of the URI for every service call.
28-
* @param catalogName The name of the data catlog in the specified subscription and resource group.
28+
* @param catalogName The name of the data catalog in the specified subscription and resource
29+
* group.
2930
* @param [options] The parameter options
3031
*/
3132
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, catalogName: string, options?: Models.DataCatalogRestClientOptions) {

packages/@azure/arm-datacatalog/lib/dataCatalogRestClientContext.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
*/
1010

1111
import * as Models from "./models";
12-
import * as msRest from "@azure/ms-rest-js";
13-
import * as msRestAzure from "@azure/ms-rest-azure-js";
12+
import * as msRest from "ms-rest-js";
13+
import * as msRestAzure from "ms-rest-azure-js";
1414

1515
const packageName = "@azure/arm-datacatalog";
1616
const packageVersion = "0.1.0";
@@ -26,7 +26,8 @@ export class DataCatalogRestClientContext extends msRestAzure.AzureServiceClient
2626
* @param credentials Credentials needed for the client to connect to Azure.
2727
* @param subscriptionId Gets subscription credentials which uniquely identify the Microsoft Azure
2828
* subscription. The subscription ID forms part of the URI for every service call.
29-
* @param catalogName The name of the data catlog in the specified subscription and resource group.
29+
* @param catalogName The name of the data catalog in the specified subscription and resource
30+
* group.
3031
* @param [options] The parameter options
3132
*/
3233
constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, catalogName: string, options?: Models.DataCatalogRestClientOptions) {

packages/@azure/arm-datacatalog/lib/models/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* regenerated.
99
*/
1010

11-
import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
12-
import * as msRest from "@azure/ms-rest-js";
11+
import { BaseResource, CloudError, AzureServiceClientOptions } from "ms-rest-azure-js";
12+
import * as msRest from "ms-rest-js";
1313

1414
export { BaseResource, CloudError };
1515

packages/@azure/arm-datacatalog/lib/models/mappers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* regenerated.
99
*/
1010

11-
import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
12-
import * as msRest from "@azure/ms-rest-js";
11+
import { CloudErrorMapper, BaseResourceMapper } from "ms-rest-azure-js";
12+
import * as msRest from "ms-rest-js";
1313

1414
export const CloudError = CloudErrorMapper;
1515
export const BaseResource = BaseResourceMapper;

packages/@azure/arm-datacatalog/lib/models/parameters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* regenerated.
99
*/
1010

11-
import * as msRest from "@azure/ms-rest-js";
11+
import * as msRest from "ms-rest-js";
1212

1313
export const acceptLanguage: msRest.OperationParameter = {
1414
parameterPath: "acceptLanguage",

packages/@azure/arm-datacatalog/lib/operations/aDCCatalogs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
* regenerated.
99
*/
1010

11-
import * as msRest from "@azure/ms-rest-js";
12-
import * as msRestAzure from "@azure/ms-rest-azure-js";
11+
import * as msRest from "ms-rest-js";
12+
import * as msRestAzure from "ms-rest-azure-js";
1313
import * as Models from "../models";
1414
import * as Mappers from "../models/aDCCatalogsMappers";
1515
import * as Parameters from "../models/parameters";

packages/@azure/arm-datacatalog/lib/operations/aDCOperations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* regenerated.
99
*/
1010

11-
import * as msRest from "@azure/ms-rest-js";
11+
import * as msRest from "ms-rest-js";
1212
import * as Models from "../models";
1313
import * as Mappers from "../models/aDCOperationsMappers";
1414
import * as Parameters from "../models/parameters";

packages/@azure/arm-datacatalog/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "DataCatalogRestClient Library with typescript type definitions for node.js and browser.",
55
"version": "0.1.0",
66
"dependencies": {
7-
"@azure/ms-rest-azure-js": "^1.1.0",
8-
"@azure/ms-rest-js": "^1.1.0",
7+
"ms-rest-azure-js": "^1.0.181",
8+
"ms-rest-js": "^1.0.460",
99
"tslib": "^1.9.3"
1010
},
1111
"keywords": [

packages/@azure/arm-datacatalog/rollup.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ import nodeResolve from "rollup-plugin-node-resolve";
44
*/
55
const config = {
66
input: './esm/dataCatalogRestClient.js',
7-
external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"],
7+
external: ["ms-rest-js", "ms-rest-azure-js"],
88
output: {
99
file: "./dist/arm-datacatalog.js",
1010
format: "umd",
1111
name: "Azure.ArmDatacatalog",
1212
sourcemap: true,
1313
globals: {
14-
"@azure/ms-rest-js": "msRest",
15-
"@azure/ms-rest-azure-js": "msRestAzure"
14+
"ms-rest-js": "msRest",
15+
"ms-rest-azure-js": "msRestAzure"
1616
},
1717
banner: `/*
1818
* Copyright (c) Microsoft Corporation. All rights reserved.

packages/@azure/arm-datacatalog/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
"outDir": "./esm",
1515
"importHelpers": true
1616
},
17-
"include": ["./lib/**/*.ts"],
17+
"include": ["./lib/**/*"],
1818
"exclude": ["node_modules"]
1919
}

0 commit comments

Comments
 (0)