@azure/arm-databricks 0.1.0 → 3.0.0-alpha.20211103.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (176) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +2 -2
  3. package/README.md +71 -77
  4. package/dist/index.js +3186 -0
  5. package/dist/index.js.map +1 -0
  6. package/dist/index.min.js +1 -0
  7. package/dist/index.min.js.map +1 -0
  8. package/dist-esm/src/azureDatabricksManagementClient.d.ts +20 -0
  9. package/dist-esm/src/azureDatabricksManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/azureDatabricksManagementClient.js +27 -0
  11. package/dist-esm/src/azureDatabricksManagementClient.js.map +1 -0
  12. package/dist-esm/src/azureDatabricksManagementClientContext.d.ts +16 -0
  13. package/dist-esm/src/azureDatabricksManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/azureDatabricksManagementClientContext.js +49 -0
  15. package/dist-esm/src/azureDatabricksManagementClientContext.js.map +1 -0
  16. package/dist-esm/src/index.d.ts +6 -0
  17. package/dist-esm/src/index.d.ts.map +1 -0
  18. package/dist-esm/src/index.js +13 -0
  19. package/dist-esm/src/index.js.map +1 -0
  20. package/dist-esm/src/lroImpl.d.ts +16 -0
  21. package/dist-esm/src/lroImpl.d.ts.map +1 -0
  22. package/dist-esm/src/lroImpl.js +29 -0
  23. package/dist-esm/src/lroImpl.js.map +1 -0
  24. package/dist-esm/src/models/index.d.ts +839 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +94 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +44 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/dist-esm/src/models/mappers.js +1298 -0
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +17 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +149 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/index.d.ts +7 -0
  37. package/dist-esm/src/operations/index.d.ts.map +1 -0
  38. package/dist-esm/src/operations/index.js +14 -0
  39. package/dist-esm/src/operations/index.js.map +1 -0
  40. package/dist-esm/src/operations/operations.d.ts +32 -0
  41. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  42. package/dist-esm/src/operations/operations.js +120 -0
  43. package/dist-esm/src/operations/operations.js.map +1 -0
  44. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts +22 -0
  45. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  46. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js +65 -0
  47. package/dist-esm/src/operations/outboundNetworkDependenciesEndpoints.js.map +1 -0
  48. package/dist-esm/src/operations/privateEndpointConnections.d.ts +81 -0
  49. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -0
  50. package/dist-esm/src/operations/privateEndpointConnections.js +347 -0
  51. package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -0
  52. package/dist-esm/src/operations/privateLinkResources.d.ts +46 -0
  53. package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -0
  54. package/dist-esm/src/operations/privateLinkResources.js +169 -0
  55. package/dist-esm/src/operations/privateLinkResources.js.map +1 -0
  56. package/dist-esm/src/operations/vNetPeering.d.ts +81 -0
  57. package/dist-esm/src/operations/vNetPeering.d.ts.map +1 -0
  58. package/dist-esm/src/operations/vNetPeering.js +338 -0
  59. package/dist-esm/src/operations/vNetPeering.js.map +1 -0
  60. package/dist-esm/src/operations/workspaces.d.ts +107 -0
  61. package/dist-esm/src/operations/workspaces.d.ts.map +1 -0
  62. package/dist-esm/src/operations/workspaces.js +500 -0
  63. package/dist-esm/src/operations/workspaces.js.map +1 -0
  64. package/dist-esm/src/operationsInterfaces/index.d.ts +7 -0
  65. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist-esm/src/operationsInterfaces/index.js +14 -0
  67. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
  69. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  71. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts +14 -0
  73. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.d.ts.map +1 -0
  74. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js +9 -0
  75. package/dist-esm/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +56 -0
  77. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  78. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js +9 -0
  79. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts +21 -0
  81. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/privateLinkResources.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts +56 -0
  85. package/dist-esm/src/operationsInterfaces/vNetPeering.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/vNetPeering.js +9 -0
  87. package/dist-esm/src/operationsInterfaces/vNetPeering.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/workspaces.d.ts +71 -0
  89. package/dist-esm/src/operationsInterfaces/workspaces.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/workspaces.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/workspaces.js.map +1 -0
  92. package/dist-esm/test/databricks_examples.d.ts +2 -0
  93. package/dist-esm/test/databricks_examples.d.ts.map +1 -0
  94. package/dist-esm/test/databricks_examples.js +100 -0
  95. package/dist-esm/test/databricks_examples.js.map +1 -0
  96. package/package.json +72 -25
  97. package/review/arm-databricks.api.md +742 -0
  98. package/rollup.config.js +184 -27
  99. package/src/azureDatabricksManagementClient.ts +58 -0
  100. package/src/azureDatabricksManagementClientContext.ts +70 -0
  101. package/src/index.ts +13 -0
  102. package/src/lroImpl.ts +34 -0
  103. package/src/models/index.ts +960 -0
  104. package/src/models/mappers.ts +1368 -0
  105. package/src/models/parameters.ts +174 -0
  106. package/src/operations/index.ts +14 -0
  107. package/src/operations/operations.ts +137 -0
  108. package/src/operations/outboundNetworkDependenciesEndpoints.ts +85 -0
  109. package/src/operations/privateEndpointConnections.ts +481 -0
  110. package/src/operations/privateLinkResources.ts +221 -0
  111. package/src/operations/vNetPeering.ts +483 -0
  112. package/src/operations/workspaces.ts +674 -0
  113. package/src/operationsInterfaces/index.ts +14 -0
  114. package/src/operationsInterfaces/operations.ts +22 -0
  115. package/src/operationsInterfaces/outboundNetworkDependenciesEndpoints.ts +29 -0
  116. package/src/operationsInterfaces/privateEndpointConnections.ts +109 -0
  117. package/src/operationsInterfaces/privateLinkResources.ts +44 -0
  118. package/src/operationsInterfaces/vNetPeering.ts +109 -0
  119. package/src/operationsInterfaces/workspaces.ts +139 -0
  120. package/tsconfig.json +4 -4
  121. package/types/arm-databricks.d.ts +1198 -0
  122. package/types/tsdoc-metadata.json +11 -0
  123. package/dist/arm-databricks.js +0 -1078
  124. package/dist/arm-databricks.js.map +0 -1
  125. package/dist/arm-databricks.min.js +0 -1
  126. package/dist/arm-databricks.min.js.map +0 -1
  127. package/esm/databricksClient.d.ts +0 -19
  128. package/esm/databricksClient.d.ts.map +0 -1
  129. package/esm/databricksClient.js +0 -34
  130. package/esm/databricksClient.js.map +0 -1
  131. package/esm/databricksClientContext.d.ts +0 -16
  132. package/esm/databricksClientContext.d.ts.map +0 -1
  133. package/esm/databricksClientContext.js +0 -56
  134. package/esm/databricksClientContext.js.map +0 -1
  135. package/esm/models/index.d.ts +0 -486
  136. package/esm/models/index.d.ts.map +0 -1
  137. package/esm/models/index.js +0 -10
  138. package/esm/models/index.js.map +0 -1
  139. package/esm/models/mappers.d.ts +0 -17
  140. package/esm/models/mappers.d.ts.map +0 -1
  141. package/esm/models/mappers.js +0 -370
  142. package/esm/models/mappers.js.map +0 -1
  143. package/esm/models/operationsMappers.d.ts +0 -2
  144. package/esm/models/operationsMappers.d.ts.map +0 -1
  145. package/esm/models/operationsMappers.js +0 -11
  146. package/esm/models/operationsMappers.js.map +0 -1
  147. package/esm/models/parameters.d.ts +0 -8
  148. package/esm/models/parameters.d.ts.map +0 -1
  149. package/esm/models/parameters.js +0 -80
  150. package/esm/models/parameters.js.map +0 -1
  151. package/esm/models/workspacesMappers.d.ts +0 -2
  152. package/esm/models/workspacesMappers.d.ts.map +0 -1
  153. package/esm/models/workspacesMappers.js +0 -11
  154. package/esm/models/workspacesMappers.js.map +0 -1
  155. package/esm/operations/index.d.ts +0 -3
  156. package/esm/operations/index.d.ts.map +0 -1
  157. package/esm/operations/index.js +0 -12
  158. package/esm/operations/index.js.map +0 -1
  159. package/esm/operations/operations.d.ts +0 -46
  160. package/esm/operations/operations.d.ts.map +0 -1
  161. package/esm/operations/operations.js +0 -77
  162. package/esm/operations/operations.js.map +0 -1
  163. package/esm/operations/workspaces.d.ts +0 -156
  164. package/esm/operations/workspaces.d.ts.map +0 -1
  165. package/esm/operations/workspaces.js +0 -332
  166. package/esm/operations/workspaces.js.map +0 -1
  167. package/lib/databricksClient.ts +0 -44
  168. package/lib/databricksClientContext.ts +0 -62
  169. package/lib/models/index.ts +0 -520
  170. package/lib/models/mappers.ts +0 -396
  171. package/lib/models/operationsMappers.ts +0 -19
  172. package/lib/models/parameters.ts +0 -82
  173. package/lib/models/workspacesMappers.ts +0 -24
  174. package/lib/operations/index.ts +0 -12
  175. package/lib/operations/operations.ts +0 -123
  176. package/lib/operations/workspaces.ts +0 -474
package/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ ## Release History
2
+
3
+ ### 3.0.0-beta.2 (Unreleased)
4
+
5
+ #### Features Added
6
+
7
+ #### Breaking Changes
8
+
9
+ #### Bugs Fixed
10
+
11
+ #### Other Changes
12
+
13
+ ### 3.0.0-beta.1 (2021-10-29)
14
+
15
+ This is the first preview for the new version of the `@azure/arm-databricks` package that follows the new [guidelines for TypeScript SDKs](https://azure.github.io/azure-sdk/typescript_introduction.html) for Azure services.
16
+
17
+ 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/).
18
+
19
+ 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.
20
+
21
+ **Noteworthy changes and features**
22
+ - 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.
23
+ - Callbacks: Method overloads that used callbacks have been removed and the use of promises is encouraged instead.
24
+ - 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.
25
+ - 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`.
26
+ - The SDK only supports ECMAScript 2015 (ES6) and beyond, all projects that referenced this SDK should be upgraded to use ES6.
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 Microsoft
3
+ Copyright (c) 2021 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
18
  AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,100 +1,94 @@
1
- ## Azure DatabricksClient SDK for JavaScript
1
+ # AzureDatabricksManagement client library for JavaScript
2
2
 
3
- This package contains an isomorphic SDK for DatabricksClient.
3
+ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for AzureDatabricksManagement client.
4
+
5
+ The Microsoft Azure management APIs allow end users to operate on Azure Databricks Workspace resources.
6
+
7
+ [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/databricks/arm-databricks) |
8
+ [Package (NPM)](https://www.npmjs.com/package/@azure/arm-databricks) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-databricks) |
10
+ [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
+
12
+ ## Getting started
4
13
 
5
14
  ### Currently supported environments
6
15
 
7
- - Node.js version 6.x.x or higher
8
- - Browser JavaScript
16
+ - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
+ - Latest versions of Safari, Chrome, Edge and Firefox.
9
18
 
10
- ### How to Install
19
+ ### Prerequisites
11
20
 
12
- ```
21
+ - An [Azure subscription][azure_sub].
22
+
23
+ ### Install the `@azure/arm-databricks` package
24
+
25
+ Install the AzureDatabricksManagement client library for JavaScript with `npm`:
26
+
27
+ ```bash
13
28
  npm install @azure/arm-databricks
14
29
  ```
15
30
 
16
- ### How to use
31
+ ### Create and authenticate a `AzureDatabricksManagementClient`
17
32
 
18
- #### nodejs - Authentication, client creation and get workspaces as an example written in TypeScript.
33
+ To create a client object to access the AzureDatabricksManagement API, you will need the `endpoint` of your AzureDatabricksManagement resource and a `credential`. The AzureDatabricksManagement client can use Azure Active Directory credentials to authenticate.
34
+ You can find the endpoint for your AzureDatabricksManagement resource in the [Azure Portal][azure_portal].
19
35
 
20
- ##### Install @azure/ms-rest-nodeauth
36
+ You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
21
37
 
22
- ```
23
- npm install @azure/ms-rest-nodeauth
24
- ```
38
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
25
39
 
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 { DatabricksClient, DatabricksModels, DatabricksMappers } from "@azure/arm-databricks";
33
- const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
34
-
35
- msRestNodeAuth.interactiveLogin().then((creds) => {
36
- const client = new DatabricksClient(creds, subscriptionId);
37
- const resourceGroupName = "testresourceGroupName";
38
- const workspaceName = "testworkspaceName";
39
- client.workspaces.get(resourceGroupName, workspaceName).then((result) => {
40
- console.log("The result is:");
41
- console.log(result);
42
- });
43
- }).catch((err) => {
44
- console.error(err);
45
- });
40
+ ```bash
41
+ npm install @azure/identity
46
42
  ```
47
43
 
48
- #### browser - Authentication, client creation and get workspaces as an example written in JavaScript.
44
+ You will also need to **register a new AAD application and grant access to AzureDatabricksManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45
+ Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
49
46
 
50
- ##### Install @azure/ms-rest-browserauth
47
+ For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
51
48
 
49
+ ```javascript
50
+ const { AzureDatabricksManagementClient } = require("@azure/arm-databricks");
51
+ const { DefaultAzureCredential } = require("@azure/identity");
52
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
+ const client = new AzureDatabricksManagementClient(new DefaultAzureCredential(), subscriptionId);
52
54
  ```
53
- npm install @azure/ms-rest-browserauth
54
- ```
55
55
 
56
- ##### Sample code
57
-
58
- See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
59
-
60
- - index.html
61
- ```html
62
- <!DOCTYPE html>
63
- <html lang="en">
64
- <head>
65
- <title>@azure/arm-databricks sample</title>
66
- <script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
67
- <script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
68
- <script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
69
- <script src="node_modules/@azure/arm-databricks/dist/arm-databricks.js"></script>
70
- <script type="text/javascript">
71
- const subscriptionId = "<Subscription_Id>";
72
- const authManager = new msAuth.AuthManager({
73
- clientId: "<client id for your Azure AD app>",
74
- tenant: "<optional tenant for your organization>"
75
- });
76
- authManager.finalizeLogin().then((res) => {
77
- if (!res.isLoggedIn) {
78
- // may cause redirects
79
- authManager.login();
80
- }
81
- const client = new Azure.ArmDatabricks.DatabricksClient(res.creds, subscriptionId);
82
- const resourceGroupName = "testresourceGroupName";
83
- const workspaceName = "testworkspaceName";
84
- client.workspaces.get(resourceGroupName, workspaceName).then((result) => {
85
- console.log("The result is:");
86
- console.log(result);
87
- }).catch((err) => {
88
- console.log("An error occurred:");
89
- console.error(err);
90
- });
91
- });
92
- </script>
93
- </head>
94
- <body></body>
95
- </html>
56
+ ## Key concepts
57
+
58
+ ### AzureDatabricksManagementClient
59
+
60
+ `AzureDatabricksManagementClient` is the primary interface for developers using the AzureDatabricksManagement client library. Explore the methods on this client object to understand the different features of the AzureDatabricksManagement service that you can access.
61
+
62
+ ## Troubleshooting
63
+
64
+ ### Logging
65
+
66
+ Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
67
+
68
+ ```javascript
69
+ const { setLogLevel } = require("@azure/logger");
70
+ setLogLevel("info");
96
71
  ```
97
72
 
73
+ For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
74
+
75
+ ## Next steps
76
+
77
+ Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
78
+
79
+ ## Contributing
80
+
81
+ If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
82
+
98
83
  ## Related projects
99
84
 
100
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
85
+ - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
86
+
87
+ ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdatabricks%2Farm-databricks%2FREADME.png)
88
+
89
+ [azure_cli]: https://docs.microsoft.com/cli/azure
90
+ [azure_sub]: https://azure.microsoft.com/free/
91
+ [azure_sub]: https://azure.microsoft.com/free/
92
+ [azure_portal]: https://portal.azure.com
93
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
94
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential