@azure/arm-datalake-analytics 1.0.0 → 2.0.0-alpha.20211214.1

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 (217) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/{LICENSE.txt → LICENSE} +1 -1
  3. package/README.md +70 -82
  4. package/dist/index.js +4780 -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/dataLakeAnalyticsAccountManagementClient.d.ts +22 -0
  9. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts.map +1 -0
  10. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js +29 -0
  11. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js.map +1 -0
  12. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.d.ts +17 -0
  13. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +1 -0
  14. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.js +50 -0
  15. package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.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 +1346 -0
  25. package/dist-esm/src/models/index.d.ts.map +1 -0
  26. package/dist-esm/src/models/index.js +31 -0
  27. package/dist-esm/src/models/index.js.map +1 -0
  28. package/dist-esm/src/models/mappers.d.ts +56 -0
  29. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  30. package/{esm → dist-esm/src}/models/mappers.js +1439 -1205
  31. package/dist-esm/src/models/mappers.js.map +1 -0
  32. package/dist-esm/src/models/parameters.d.ts +32 -0
  33. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  34. package/dist-esm/src/models/parameters.js +254 -0
  35. package/dist-esm/src/models/parameters.js.map +1 -0
  36. package/dist-esm/src/operations/accounts.d.ts +120 -0
  37. package/dist-esm/src/operations/accounts.d.ts.map +1 -0
  38. package/dist-esm/src/operations/accounts.js +569 -0
  39. package/dist-esm/src/operations/accounts.js.map +1 -0
  40. package/dist-esm/src/operations/computePolicies.d.ts +76 -0
  41. package/dist-esm/src/operations/computePolicies.d.ts.map +1 -0
  42. package/dist-esm/src/operations/computePolicies.js +280 -0
  43. package/dist-esm/src/operations/computePolicies.js.map +1 -0
  44. package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts +64 -0
  45. package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts.map +1 -0
  46. package/dist-esm/src/operations/dataLakeStoreAccounts.js +250 -0
  47. package/dist-esm/src/operations/dataLakeStoreAccounts.js.map +1 -0
  48. package/dist-esm/src/operations/firewallRules.d.ts +72 -0
  49. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
  50. package/dist-esm/src/operations/firewallRules.js +270 -0
  51. package/dist-esm/src/operations/firewallRules.js.map +1 -0
  52. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  53. package/dist-esm/src/operations/index.d.ts.map +1 -0
  54. package/{esm → dist-esm/src}/operations/index.js +1 -2
  55. package/dist-esm/src/operations/index.js.map +1 -0
  56. package/dist-esm/src/operations/locations.d.ts +20 -0
  57. package/dist-esm/src/operations/locations.d.ts.map +1 -0
  58. package/dist-esm/src/operations/locations.js +53 -0
  59. package/dist-esm/src/operations/locations.js.map +1 -0
  60. package/dist-esm/src/operations/operations.d.ts +18 -0
  61. package/dist-esm/src/operations/operations.d.ts.map +1 -0
  62. package/dist-esm/src/operations/operations.js +46 -0
  63. package/dist-esm/src/operations/operations.js.map +1 -0
  64. package/dist-esm/src/operations/storageAccounts.d.ts +153 -0
  65. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
  66. package/dist-esm/src/operations/storageAccounts.js +594 -0
  67. package/dist-esm/src/operations/storageAccounts.js.map +1 -0
  68. package/dist-esm/src/operationsInterfaces/accounts.d.ts +82 -0
  69. package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
  70. package/{esm/models/index.js → dist-esm/src/operationsInterfaces/accounts.js} +2 -1
  71. package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/computePolicies.d.ts +50 -0
  73. package/dist-esm/src/operationsInterfaces/computePolicies.d.ts.map +1 -0
  74. package/{src/models/locationsMappers.ts → dist-esm/src/operationsInterfaces/computePolicies.js} +2 -7
  75. package/dist-esm/src/operationsInterfaces/computePolicies.js.map +1 -0
  76. package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.d.ts +38 -0
  77. package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.d.ts.map +1 -0
  78. package/{esm/models/locationsMappers.js → dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.js} +2 -2
  79. package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.js.map +1 -0
  80. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +47 -0
  81. package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
  82. package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
  83. package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
  84. package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
  85. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  86. package/dist-esm/src/operationsInterfaces/index.js +15 -0
  87. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  88. package/dist-esm/src/operationsInterfaces/locations.d.ts +12 -0
  89. package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
  90. package/dist-esm/src/operationsInterfaces/locations.js +9 -0
  91. package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
  92. package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
  93. package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
  94. package/dist-esm/src/operationsInterfaces/operations.js +9 -0
  95. package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
  96. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +81 -0
  97. package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
  98. package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
  100. package/dist-esm/test/sampleTest.d.ts +4 -0
  101. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  102. package/dist-esm/test/sampleTest.js +89 -0
  103. package/dist-esm/test/sampleTest.js.map +1 -0
  104. package/package.json +65 -21
  105. package/review/arm-datalake-analytics.api.md +935 -0
  106. package/rollup.config.js +181 -30
  107. package/src/dataLakeAnalyticsAccountManagementClient.ts +45 -38
  108. package/src/dataLakeAnalyticsAccountManagementClientContext.ts +46 -37
  109. package/src/index.ts +13 -0
  110. package/src/lroImpl.ts +34 -0
  111. package/src/models/index.ts +1160 -1948
  112. package/src/models/mappers.ts +1446 -1179
  113. package/src/models/parameters.ts +183 -93
  114. package/src/operations/accounts.ts +540 -372
  115. package/src/operations/computePolicies.ts +225 -254
  116. package/src/operations/dataLakeStoreAccounts.ts +213 -220
  117. package/src/operations/firewallRules.ts +222 -255
  118. package/src/operations/index.ts +1 -2
  119. package/src/operations/locations.ts +32 -44
  120. package/src/operations/operations.ts +24 -38
  121. package/src/operations/storageAccounts.ts +562 -476
  122. package/src/operationsInterfaces/accounts.ts +155 -0
  123. package/src/operationsInterfaces/computePolicies.ts +95 -0
  124. package/src/operationsInterfaces/dataLakeStoreAccounts.ts +73 -0
  125. package/src/operationsInterfaces/firewallRules.ts +92 -0
  126. package/src/operationsInterfaces/index.ts +15 -0
  127. package/src/operationsInterfaces/locations.ts +26 -0
  128. package/src/operationsInterfaces/operations.ts +21 -0
  129. package/src/operationsInterfaces/storageAccounts.ts +147 -0
  130. package/tsconfig.json +3 -3
  131. package/types/arm-datalake-analytics.d.ts +1829 -0
  132. package/types/tsdoc-metadata.json +11 -0
  133. package/dist/arm-datalake-analytics.js +0 -4229
  134. package/dist/arm-datalake-analytics.js.map +0 -1
  135. package/dist/arm-datalake-analytics.min.js +0 -1
  136. package/dist/arm-datalake-analytics.min.js.map +0 -1
  137. package/esm/dataLakeAnalyticsAccountManagementClient.d.ts +0 -25
  138. package/esm/dataLakeAnalyticsAccountManagementClient.d.ts.map +0 -1
  139. package/esm/dataLakeAnalyticsAccountManagementClient.js +0 -39
  140. package/esm/dataLakeAnalyticsAccountManagementClient.js.map +0 -1
  141. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts +0 -17
  142. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +0 -1
  143. package/esm/dataLakeAnalyticsAccountManagementClientContext.js +0 -56
  144. package/esm/dataLakeAnalyticsAccountManagementClientContext.js.map +0 -1
  145. package/esm/models/accountsMappers.d.ts +0 -2
  146. package/esm/models/accountsMappers.d.ts.map +0 -1
  147. package/esm/models/accountsMappers.js +0 -9
  148. package/esm/models/accountsMappers.js.map +0 -1
  149. package/esm/models/computePoliciesMappers.d.ts +0 -2
  150. package/esm/models/computePoliciesMappers.d.ts.map +0 -1
  151. package/esm/models/computePoliciesMappers.js +0 -9
  152. package/esm/models/computePoliciesMappers.js.map +0 -1
  153. package/esm/models/dataLakeStoreAccountsMappers.d.ts +0 -2
  154. package/esm/models/dataLakeStoreAccountsMappers.d.ts.map +0 -1
  155. package/esm/models/dataLakeStoreAccountsMappers.js +0 -9
  156. package/esm/models/dataLakeStoreAccountsMappers.js.map +0 -1
  157. package/esm/models/firewallRulesMappers.d.ts +0 -2
  158. package/esm/models/firewallRulesMappers.d.ts.map +0 -1
  159. package/esm/models/firewallRulesMappers.js +0 -9
  160. package/esm/models/firewallRulesMappers.js.map +0 -1
  161. package/esm/models/index.d.ts +0 -2162
  162. package/esm/models/index.d.ts.map +0 -1
  163. package/esm/models/index.js.map +0 -1
  164. package/esm/models/locationsMappers.d.ts +0 -2
  165. package/esm/models/locationsMappers.d.ts.map +0 -1
  166. package/esm/models/locationsMappers.js.map +0 -1
  167. package/esm/models/mappers.d.ts +0 -56
  168. package/esm/models/mappers.d.ts.map +0 -1
  169. package/esm/models/mappers.js.map +0 -1
  170. package/esm/models/operationsMappers.d.ts +0 -2
  171. package/esm/models/operationsMappers.d.ts.map +0 -1
  172. package/esm/models/operationsMappers.js +0 -9
  173. package/esm/models/operationsMappers.js.map +0 -1
  174. package/esm/models/parameters.d.ts +0 -20
  175. package/esm/models/parameters.d.ts.map +0 -1
  176. package/esm/models/parameters.js +0 -208
  177. package/esm/models/parameters.js.map +0 -1
  178. package/esm/models/storageAccountsMappers.d.ts +0 -2
  179. package/esm/models/storageAccountsMappers.d.ts.map +0 -1
  180. package/esm/models/storageAccountsMappers.js +0 -9
  181. package/esm/models/storageAccountsMappers.js.map +0 -1
  182. package/esm/operations/accounts.d.ts +0 -188
  183. package/esm/operations/accounts.d.ts.map +0 -1
  184. package/esm/operations/accounts.js +0 -406
  185. package/esm/operations/accounts.js.map +0 -1
  186. package/esm/operations/computePolicies.d.ts +0 -158
  187. package/esm/operations/computePolicies.d.ts.map +0 -1
  188. package/esm/operations/computePolicies.js +0 -230
  189. package/esm/operations/computePolicies.js.map +0 -1
  190. package/esm/operations/dataLakeStoreAccounts.d.ts +0 -128
  191. package/esm/operations/dataLakeStoreAccounts.d.ts.map +0 -1
  192. package/esm/operations/dataLakeStoreAccounts.js +0 -200
  193. package/esm/operations/dataLakeStoreAccounts.js.map +0 -1
  194. package/esm/operations/firewallRules.d.ts +0 -152
  195. package/esm/operations/firewallRules.d.ts.map +0 -1
  196. package/esm/operations/firewallRules.js +0 -230
  197. package/esm/operations/firewallRules.js.map +0 -1
  198. package/esm/operations/index.d.ts.map +0 -1
  199. package/esm/operations/index.js.map +0 -1
  200. package/esm/operations/locations.d.ts +0 -32
  201. package/esm/operations/locations.d.ts.map +0 -1
  202. package/esm/operations/locations.js +0 -56
  203. package/esm/operations/locations.js.map +0 -1
  204. package/esm/operations/operations.d.ts +0 -28
  205. package/esm/operations/operations.d.ts.map +0 -1
  206. package/esm/operations/operations.js +0 -50
  207. package/esm/operations/operations.js.map +0 -1
  208. package/esm/operations/storageAccounts.d.ts +0 -293
  209. package/esm/operations/storageAccounts.d.ts.map +0 -1
  210. package/esm/operations/storageAccounts.js +0 -398
  211. package/esm/operations/storageAccounts.js.map +0 -1
  212. package/src/models/accountsMappers.ts +0 -38
  213. package/src/models/computePoliciesMappers.ts +0 -28
  214. package/src/models/dataLakeStoreAccountsMappers.ts +0 -27
  215. package/src/models/firewallRulesMappers.ts +0 -28
  216. package/src/models/operationsMappers.ts +0 -21
  217. package/src/models/storageAccountsMappers.ts +0 -31
package/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ ## Release History
2
+
3
+ ### 2.0.0-beta.2 (Unreleased)
4
+
5
+ #### Features Added
6
+
7
+ #### Breaking Changes
8
+
9
+ #### Bugs Fixed
10
+
11
+ #### Other Changes
12
+
13
+ ### 2.0.0-beta.1 (2021-11-17)
14
+
15
+ 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.
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.
@@ -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,110 +1,98 @@
1
- ## Azure DataLakeAnalyticsAccountManagementClient SDK for JavaScript
1
+ # Azure DataLakeAnalyticsAccountManagement client library for JavaScript
2
2
 
3
- This package contains an isomorphic SDK for DataLakeAnalyticsAccountManagementClient.
3
+ This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure DataLakeAnalyticsAccountManagement client.
4
+
5
+ Creates an Azure Data Lake Analytics account management client.
6
+
7
+ [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datalake-analytics/arm-datalake-analytics) |
8
+ [Package (NPM)](https://www.npmjs.com/package/@azure/arm-datalake-analytics) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-datalake-analytics?view=azure-node-preview) |
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.
18
+
19
+ ### Prerequisites
20
+
21
+ - An [Azure subscription][azure_sub].
22
+
23
+ ### Install the `@azure/arm-datalake-analytics` package
9
24
 
10
- ### How to Install
25
+ Install the Azure DataLakeAnalyticsAccountManagement client library for JavaScript with `npm`:
11
26
 
12
27
  ```bash
13
28
  npm install @azure/arm-datalake-analytics
14
29
  ```
15
30
 
16
- ### How to use
31
+ ### Create and authenticate a `DataLakeAnalyticsAccountManagementClient`
17
32
 
18
- #### nodejs - client creation and list accounts as an example written in TypeScript.
33
+ To create a client object to access the Azure DataLakeAnalyticsAccountManagement API, you will need the `endpoint` of your Azure DataLakeAnalyticsAccountManagement resource and a `credential`. The Azure DataLakeAnalyticsAccountManagement client can use Azure Active Directory credentials to authenticate.
34
+ You can find the endpoint for your Azure DataLakeAnalyticsAccountManagement 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).
37
+
38
+ To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
21
39
 
22
- - Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
23
40
  ```bash
24
- npm install @azure/ms-rest-nodeauth@"^3.0.0"
41
+ npm install @azure/identity
25
42
  ```
26
43
 
27
- ##### Sample code
44
+ You will also need to **register a new AAD application and grant access to Azure DataLakeAnalyticsAccountManagement** 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`.
46
+
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).
28
48
 
29
- While the below sample uses the interactive login, other authentication options can be found in the [README.md file of @azure/ms-rest-nodeauth](https://www.npmjs.com/package/@azure/ms-rest-nodeauth) package
30
- ```typescript
31
- const msRestNodeAuth = require("@azure/ms-rest-nodeauth");
49
+ ```javascript
32
50
  const { DataLakeAnalyticsAccountManagementClient } = require("@azure/arm-datalake-analytics");
33
- const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
34
-
35
- msRestNodeAuth.interactiveLogin().then((creds) => {
36
- const client = new DataLakeAnalyticsAccountManagementClient(creds, subscriptionId);
37
- const filter = "testfilter";
38
- const top = 1;
39
- const skip = 1;
40
- const select = "testselect";
41
- const orderby = "testorderby";
42
- const count = true;
43
- client.accounts.list(filter, top, skip, select, orderby, count).then((result) => {
44
- console.log("The result is:");
45
- console.log(result);
46
- });
47
- }).catch((err) => {
48
- console.error(err);
49
- });
51
+ const { DefaultAzureCredential } = require("@azure/identity");
52
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
+ const client = new DataLakeAnalyticsAccountManagementClient(new DefaultAzureCredential(), subscriptionId);
50
54
  ```
51
55
 
52
- #### browser - Authentication, client creation and list accounts as an example written in JavaScript.
53
56
 
54
- ##### Install @azure/ms-rest-browserauth
57
+ ### JavaScript Bundle
58
+ To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
55
59
 
56
- ```bash
57
- npm install @azure/ms-rest-browserauth
58
- ```
60
+ ## Key concepts
61
+
62
+ ### DataLakeAnalyticsAccountManagementClient
59
63
 
60
- ##### Sample code
61
-
62
- See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
63
-
64
- - index.html
65
- ```html
66
- <!DOCTYPE html>
67
- <html lang="en">
68
- <head>
69
- <title>@azure/arm-datalake-analytics sample</title>
70
- <script src="node_modules/@azure/ms-rest-js/dist/msRest.browser.js"></script>
71
- <script src="node_modules/@azure/ms-rest-azure-js/dist/msRestAzure.js"></script>
72
- <script src="node_modules/@azure/ms-rest-browserauth/dist/msAuth.js"></script>
73
- <script src="node_modules/@azure/arm-datalake-analytics/dist/arm-datalake-analytics.js"></script>
74
- <script type="text/javascript">
75
- const subscriptionId = "<Subscription_Id>";
76
- const authManager = new msAuth.AuthManager({
77
- clientId: "<client id for your Azure AD app>",
78
- tenant: "<optional tenant for your organization>"
79
- });
80
- authManager.finalizeLogin().then((res) => {
81
- if (!res.isLoggedIn) {
82
- // may cause redirects
83
- authManager.login();
84
- }
85
- const client = new Azure.ArmDatalakeAnalytics.DataLakeAnalyticsAccountManagementClient(res.creds, subscriptionId);
86
- const filter = "testfilter";
87
- const top = 1;
88
- const skip = 1;
89
- const select = "testselect";
90
- const orderby = "testorderby";
91
- const count = true;
92
- client.accounts.list(filter, top, skip, select, orderby, count).then((result) => {
93
- console.log("The result is:");
94
- console.log(result);
95
- }).catch((err) => {
96
- console.log("An error occurred:");
97
- console.error(err);
98
- });
99
- });
100
- </script>
101
- </head>
102
- <body></body>
103
- </html>
64
+ `DataLakeAnalyticsAccountManagementClient` is the primary interface for developers using the Azure DataLakeAnalyticsAccountManagement client library. Explore the methods on this client object to understand the different features of the Azure DataLakeAnalyticsAccountManagement service that you can access.
65
+
66
+ ## Troubleshooting
67
+
68
+ ### Logging
69
+
70
+ 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`:
71
+
72
+ ```javascript
73
+ const { setLogLevel } = require("@azure/logger");
74
+ setLogLevel("info");
104
75
  ```
105
76
 
77
+ 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).
78
+
79
+ ## Next steps
80
+
81
+ 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.
82
+
83
+ ## Contributing
84
+
85
+ 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.
86
+
106
87
  ## Related projects
107
88
 
108
- - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
89
+ - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
90
+
91
+ ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fdatalake-analytics%2Farm-datalake-analytics%2FREADME.png)
109
92
 
110
- ![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/datalake-analytics/arm-datalake-analytics/README.png)
93
+ [azure_cli]: https://docs.microsoft.com/cli/azure
94
+ [azure_sub]: https://azure.microsoft.com/free/
95
+ [azure_sub]: https://azure.microsoft.com/free/
96
+ [azure_portal]: https://portal.azure.com
97
+ [azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
98
+ [defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential