@azure/arm-datalake-analytics 2.0.0-beta.2 → 2.0.0-beta.3

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 (143) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/LICENSE +1 -1
  3. package/README.md +11 -0
  4. package/dist/index.js +149 -98
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.d.ts +2 -0
  9. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.js +34 -0
  11. package/dist-esm/samples-dev/accountsCheckNameAvailabilitySample.js.map +1 -0
  12. package/dist-esm/samples-dev/accountsCreateSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/accountsCreateSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/accountsCreateSample.js +64 -0
  15. package/dist-esm/samples-dev/accountsCreateSample.js.map +1 -0
  16. package/dist-esm/samples-dev/accountsDeleteSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/accountsDeleteSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/accountsDeleteSample.js +31 -0
  19. package/dist-esm/samples-dev/accountsDeleteSample.js.map +1 -0
  20. package/dist-esm/samples-dev/accountsGetSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/accountsGetSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/accountsGetSample.js +31 -0
  23. package/dist-esm/samples-dev/accountsGetSample.js.map +1 -0
  24. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +58 -0
  27. package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
  28. package/dist-esm/samples-dev/accountsListSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/accountsListSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/accountsListSample.js +57 -0
  31. package/dist-esm/samples-dev/accountsListSample.js.map +1 -0
  32. package/dist-esm/samples-dev/accountsUpdateSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/accountsUpdateSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/accountsUpdateSample.js +55 -0
  35. package/dist-esm/samples-dev/accountsUpdateSample.js.map +1 -0
  36. package/dist-esm/samples-dev/computePoliciesCreateOrUpdateSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/computePoliciesCreateOrUpdateSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/computePoliciesCreateOrUpdateSample.js +38 -0
  39. package/dist-esm/samples-dev/computePoliciesCreateOrUpdateSample.js.map +1 -0
  40. package/dist-esm/samples-dev/computePoliciesDeleteSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/computePoliciesDeleteSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/computePoliciesDeleteSample.js +32 -0
  43. package/dist-esm/samples-dev/computePoliciesDeleteSample.js.map +1 -0
  44. package/dist-esm/samples-dev/computePoliciesGetSample.d.ts +2 -0
  45. package/dist-esm/samples-dev/computePoliciesGetSample.d.ts.map +1 -0
  46. package/dist-esm/samples-dev/computePoliciesGetSample.js +32 -0
  47. package/dist-esm/samples-dev/computePoliciesGetSample.js.map +1 -0
  48. package/dist-esm/samples-dev/computePoliciesListByAccountSample.d.ts +2 -0
  49. package/dist-esm/samples-dev/computePoliciesListByAccountSample.d.ts.map +1 -0
  50. package/dist-esm/samples-dev/computePoliciesListByAccountSample.js +45 -0
  51. package/dist-esm/samples-dev/computePoliciesListByAccountSample.js.map +1 -0
  52. package/dist-esm/samples-dev/computePoliciesUpdateSample.d.ts +2 -0
  53. package/dist-esm/samples-dev/computePoliciesUpdateSample.d.ts.map +1 -0
  54. package/dist-esm/samples-dev/computePoliciesUpdateSample.js +37 -0
  55. package/dist-esm/samples-dev/computePoliciesUpdateSample.js.map +1 -0
  56. package/dist-esm/samples-dev/dataLakeStoreAccountsAddSample.d.ts +2 -0
  57. package/dist-esm/samples-dev/dataLakeStoreAccountsAddSample.d.ts.map +1 -0
  58. package/dist-esm/samples-dev/dataLakeStoreAccountsAddSample.js +34 -0
  59. package/dist-esm/samples-dev/dataLakeStoreAccountsAddSample.js.map +1 -0
  60. package/dist-esm/samples-dev/dataLakeStoreAccountsDeleteSample.d.ts +2 -0
  61. package/dist-esm/samples-dev/dataLakeStoreAccountsDeleteSample.d.ts.map +1 -0
  62. package/dist-esm/samples-dev/dataLakeStoreAccountsDeleteSample.js +32 -0
  63. package/dist-esm/samples-dev/dataLakeStoreAccountsDeleteSample.js.map +1 -0
  64. package/dist-esm/samples-dev/dataLakeStoreAccountsGetSample.d.ts +2 -0
  65. package/dist-esm/samples-dev/dataLakeStoreAccountsGetSample.d.ts.map +1 -0
  66. package/dist-esm/samples-dev/dataLakeStoreAccountsGetSample.js +32 -0
  67. package/dist-esm/samples-dev/dataLakeStoreAccountsGetSample.js.map +1 -0
  68. package/dist-esm/samples-dev/dataLakeStoreAccountsListByAccountSample.d.ts +2 -0
  69. package/dist-esm/samples-dev/dataLakeStoreAccountsListByAccountSample.d.ts.map +1 -0
  70. package/dist-esm/samples-dev/dataLakeStoreAccountsListByAccountSample.js +59 -0
  71. package/dist-esm/samples-dev/dataLakeStoreAccountsListByAccountSample.js.map +1 -0
  72. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts +2 -0
  73. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.d.ts.map +1 -0
  74. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +36 -0
  75. package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -0
  76. package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts +2 -0
  77. package/dist-esm/samples-dev/firewallRulesDeleteSample.d.ts.map +1 -0
  78. package/dist-esm/samples-dev/firewallRulesDeleteSample.js +32 -0
  79. package/dist-esm/samples-dev/firewallRulesDeleteSample.js.map +1 -0
  80. package/dist-esm/samples-dev/firewallRulesGetSample.d.ts +2 -0
  81. package/dist-esm/samples-dev/firewallRulesGetSample.d.ts.map +1 -0
  82. package/dist-esm/samples-dev/firewallRulesGetSample.js +32 -0
  83. package/dist-esm/samples-dev/firewallRulesGetSample.js.map +1 -0
  84. package/dist-esm/samples-dev/firewallRulesListByAccountSample.d.ts +2 -0
  85. package/dist-esm/samples-dev/firewallRulesListByAccountSample.d.ts.map +1 -0
  86. package/dist-esm/samples-dev/firewallRulesListByAccountSample.js +45 -0
  87. package/dist-esm/samples-dev/firewallRulesListByAccountSample.js.map +1 -0
  88. package/dist-esm/samples-dev/firewallRulesUpdateSample.d.ts +2 -0
  89. package/dist-esm/samples-dev/firewallRulesUpdateSample.d.ts.map +1 -0
  90. package/dist-esm/samples-dev/firewallRulesUpdateSample.js +37 -0
  91. package/dist-esm/samples-dev/firewallRulesUpdateSample.js.map +1 -0
  92. package/dist-esm/samples-dev/locationsGetCapabilitySample.d.ts +2 -0
  93. package/dist-esm/samples-dev/locationsGetCapabilitySample.d.ts.map +1 -0
  94. package/dist-esm/samples-dev/locationsGetCapabilitySample.js +30 -0
  95. package/dist-esm/samples-dev/locationsGetCapabilitySample.js.map +1 -0
  96. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  97. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  98. package/dist-esm/samples-dev/operationsListSample.js +29 -0
  99. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  100. package/dist-esm/samples-dev/storageAccountsAddSample.d.ts +2 -0
  101. package/dist-esm/samples-dev/storageAccountsAddSample.d.ts.map +1 -0
  102. package/dist-esm/samples-dev/storageAccountsAddSample.js +36 -0
  103. package/dist-esm/samples-dev/storageAccountsAddSample.js.map +1 -0
  104. package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts +2 -0
  105. package/dist-esm/samples-dev/storageAccountsDeleteSample.d.ts.map +1 -0
  106. package/dist-esm/samples-dev/storageAccountsDeleteSample.js +32 -0
  107. package/dist-esm/samples-dev/storageAccountsDeleteSample.js.map +1 -0
  108. package/dist-esm/samples-dev/storageAccountsGetSample.d.ts +2 -0
  109. package/dist-esm/samples-dev/storageAccountsGetSample.d.ts.map +1 -0
  110. package/dist-esm/samples-dev/storageAccountsGetSample.js +32 -0
  111. package/dist-esm/samples-dev/storageAccountsGetSample.js.map +1 -0
  112. package/dist-esm/samples-dev/storageAccountsGetStorageContainerSample.d.ts +2 -0
  113. package/dist-esm/samples-dev/storageAccountsGetStorageContainerSample.d.ts.map +1 -0
  114. package/dist-esm/samples-dev/storageAccountsGetStorageContainerSample.js +33 -0
  115. package/dist-esm/samples-dev/storageAccountsGetStorageContainerSample.js.map +1 -0
  116. package/dist-esm/samples-dev/storageAccountsListByAccountSample.d.ts +2 -0
  117. package/dist-esm/samples-dev/storageAccountsListByAccountSample.d.ts.map +1 -0
  118. package/dist-esm/samples-dev/storageAccountsListByAccountSample.js +59 -0
  119. package/dist-esm/samples-dev/storageAccountsListByAccountSample.js.map +1 -0
  120. package/dist-esm/samples-dev/storageAccountsListSasTokensSample.d.ts +2 -0
  121. package/dist-esm/samples-dev/storageAccountsListSasTokensSample.d.ts.map +1 -0
  122. package/dist-esm/samples-dev/storageAccountsListSasTokensSample.js +47 -0
  123. package/dist-esm/samples-dev/storageAccountsListSasTokensSample.js.map +1 -0
  124. package/dist-esm/samples-dev/storageAccountsListStorageContainersSample.d.ts +2 -0
  125. package/dist-esm/samples-dev/storageAccountsListStorageContainersSample.d.ts.map +1 -0
  126. package/dist-esm/samples-dev/storageAccountsListStorageContainersSample.js +46 -0
  127. package/dist-esm/samples-dev/storageAccountsListStorageContainersSample.js.map +1 -0
  128. package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts +2 -0
  129. package/dist-esm/samples-dev/storageAccountsUpdateSample.d.ts.map +1 -0
  130. package/dist-esm/samples-dev/storageAccountsUpdateSample.js +37 -0
  131. package/dist-esm/samples-dev/storageAccountsUpdateSample.js.map +1 -0
  132. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts.map +1 -1
  133. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js +20 -2
  134. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js.map +1 -1
  135. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  136. package/dist-esm/src/operations/accounts.js +9 -3
  137. package/dist-esm/src/operations/accounts.js.map +1 -1
  138. package/package.json +40 -14
  139. package/rollup.config.js +6 -72
  140. package/src/dataLakeAnalyticsAccountManagementClient.ts +27 -2
  141. package/src/operations/accounts.ts +9 -3
  142. package/tsconfig.json +19 -5
  143. package/types/tsdoc-metadata.json +1 -1
@@ -0,0 +1,57 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
15
+ *
16
+ * @summary Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This includes a link to the next page, if any.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_List.json
18
+ */
19
+ function getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
23
+ const filter = "test_filter";
24
+ const top = 1;
25
+ const skip = 1;
26
+ const select = "test_select";
27
+ const orderby = "test_orderby";
28
+ const count = false;
29
+ const options = {
30
+ filter,
31
+ top,
32
+ skip,
33
+ select,
34
+ orderby,
35
+ count
36
+ };
37
+ const credential = new DefaultAzureCredential();
38
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
39
+ const resArray = new Array();
40
+ try {
41
+ for (var _b = __asyncValues(client.accounts.list(options)), _c; _c = yield _b.next(), !_c.done;) {
42
+ let item = _c.value;
43
+ resArray.push(item);
44
+ }
45
+ }
46
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
47
+ finally {
48
+ try {
49
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
50
+ }
51
+ finally { if (e_1) throw e_1.error; }
52
+ }
53
+ console.log(resArray);
54
+ });
55
+ }
56
+ getsTheFirstPageOfDataLakeAnalyticsAccountsIfAnyWithinTheCurrentSubscriptionThisIncludesALinkToTheNextPageIfAny().catch(console.error);
57
+ //# sourceMappingURL=accountsListSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountsListSample.js","sourceRoot":"","sources":["../../samples-dev/accountsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,+GAA+G;;;QAC5H,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,MAAM,GAAG,aAAa,CAAC;QAC7B,MAAM,GAAG,GAAG,CAAC,CAAC;QACd,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,MAAM,GAAG,aAAa,CAAC;QAC7B,MAAM,OAAO,GAAG,cAAc,CAAC;QAC/B,MAAM,KAAK,GAAG,KAAK,CAAC;QACpB,MAAM,OAAO,GAA+B;YAC1C,MAAM;YACN,GAAG;YACH,IAAI;YACJ,MAAM;YACN,OAAO;YACP,KAAK;SACN,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA,IAAA;gBAAzC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,+GAA+G,EAAE,CAAC,KAAK,CACrH,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=accountsUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/accountsUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,55 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
15
+ *
16
+ * @summary Updates the Data Lake Analytics account object specified by the accountName with the contents of the account object.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/Accounts_Update.json
18
+ */
19
+ function updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const parameters = {
25
+ computePolicies: [
26
+ {
27
+ name: "test_policy",
28
+ maxDegreeOfParallelismPerJob: 1,
29
+ minPriorityPerJob: 1,
30
+ objectId: "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345",
31
+ objectType: "User"
32
+ }
33
+ ],
34
+ firewallAllowAzureIps: "Enabled",
35
+ firewallRules: [
36
+ { name: "test_rule", endIpAddress: "2.2.2.2", startIpAddress: "1.1.1.1" }
37
+ ],
38
+ firewallState: "Enabled",
39
+ maxDegreeOfParallelism: 1,
40
+ maxDegreeOfParallelismPerJob: 1,
41
+ maxJobCount: 1,
42
+ minPriorityPerJob: 1,
43
+ newTier: "Consumption",
44
+ queryStoreRetention: 1,
45
+ tags: { testKey: "test_value" }
46
+ };
47
+ const options = { parameters };
48
+ const credential = new DefaultAzureCredential();
49
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
50
+ const result = yield client.accounts.beginUpdateAndWait(resourceGroupName, accountName, options);
51
+ console.log(result);
52
+ });
53
+ }
54
+ updatesTheDataLakeAnalyticsAccountObjectSpecifiedByTheAccountNameWithTheContentsOfTheAccountObject().catch(console.error);
55
+ //# sourceMappingURL=accountsUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accountsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/accountsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,wCAAwC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kGAAkG;;QAC/G,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAA6C;YAC3D,eAAe,EAAE;gBACf;oBACE,IAAI,EAAE,aAAa;oBACnB,4BAA4B,EAAE,CAAC;oBAC/B,iBAAiB,EAAE,CAAC;oBACpB,QAAQ,EAAE,sCAAsC;oBAChD,UAAU,EAAE,MAAM;iBACnB;aACF;YACD,qBAAqB,EAAE,SAAS;YAChC,aAAa,EAAE;gBACb,EAAE,IAAI,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,SAAS,EAAE;aAC1E;YACD,aAAa,EAAE,SAAS;YACxB,sBAAsB,EAAE,CAAC;YACzB,4BAA4B,EAAE,CAAC;YAC/B,WAAW,EAAE,CAAC;YACd,iBAAiB,EAAE,CAAC;YACpB,OAAO,EAAE,aAAa;YACtB,mBAAmB,EAAE,CAAC;YACtB,IAAI,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE;SAChC,CAAC;QACF,MAAM,OAAO,GAAiC,EAAE,UAAU,EAAE,CAAC;QAC7D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CACrD,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kGAAkG,EAAE,CAAC,KAAK,CACxG,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=computePoliciesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/computePoliciesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,38 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies
15
+ *
16
+ * @summary Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_CreateOrUpdate.json
18
+ */
19
+ function createsOrUpdatesTheSpecifiedComputePolicy() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const computePolicyName = "test_policy";
25
+ const parameters = {
26
+ maxDegreeOfParallelismPerJob: 10,
27
+ minPriorityPerJob: 30,
28
+ objectId: "776b9091-8916-4638-87f7-9c989a38da98",
29
+ objectType: "User"
30
+ };
31
+ const credential = new DefaultAzureCredential();
32
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
33
+ const result = yield client.computePolicies.createOrUpdate(resourceGroupName, accountName, computePolicyName, parameters);
34
+ console.log(result);
35
+ });
36
+ }
37
+ createsOrUpdatesTheSpecifiedComputePolicy().catch(console.error);
38
+ //# sourceMappingURL=computePoliciesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/computePoliciesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yCAAyC;;QACtD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,iBAAiB,GAAG,aAAa,CAAC;QACxC,MAAM,UAAU,GAA0C;YACxD,4BAA4B,EAAE,EAAE;YAChC,iBAAiB,EAAE,EAAE;YACrB,QAAQ,EAAE,sCAAsC;YAChD,UAAU,EAAE,MAAM;SACnB,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,cAAc,CACxD,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yCAAyC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=computePoliciesDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/computePoliciesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes the specified compute policy from the specified Data Lake Analytics account
15
+ *
16
+ * @summary Deletes the specified compute policy from the specified Data Lake Analytics account
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Delete.json
18
+ */
19
+ function deletesTheSpecifiedComputePolicyFromTheAdlaAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const computePolicyName = "test_policy";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
27
+ const result = yield client.computePolicies.delete(resourceGroupName, accountName, computePolicyName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ deletesTheSpecifiedComputePolicyFromTheAdlaAccount().catch(console.error);
32
+ //# sourceMappingURL=computePoliciesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/computePoliciesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kDAAkD;;QAC/D,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,iBAAiB,GAAG,aAAa,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,WAAW,EACX,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kDAAkD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=computePoliciesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/computePoliciesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the specified Data Lake Analytics compute policy.
15
+ *
16
+ * @summary Gets the specified Data Lake Analytics compute policy.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Get.json
18
+ */
19
+ function getsTheSpecifiedComputePolicy() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const computePolicyName = "test_policy";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
27
+ const result = yield client.computePolicies.get(resourceGroupName, accountName, computePolicyName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getsTheSpecifiedComputePolicy().catch(console.error);
32
+ //# sourceMappingURL=computePoliciesGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesGetSample.js","sourceRoot":"","sources":["../../samples-dev/computePoliciesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,iBAAiB,GAAG,aAAa,CAAC;QACxC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,GAAG,CAC7C,iBAAiB,EACjB,WAAW,EACX,iBAAiB,CAClB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=computePoliciesListByAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesListByAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/computePoliciesListByAccountSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,45 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies
15
+ *
16
+ * @summary Lists the Data Lake Analytics compute policies within the specified Data Lake Analytics account. An account supports, at most, 50 policies
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_ListByAccount.json
18
+ */
19
+ function listsTheComputePoliciesWithinTheAdlaAccount() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
23
+ const resourceGroupName = "contosorg";
24
+ const accountName = "contosoadla";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
27
+ const resArray = new Array();
28
+ try {
29
+ for (var _b = __asyncValues(client.computePolicies.listByAccount(resourceGroupName, accountName)), _c; _c = yield _b.next(), !_c.done;) {
30
+ let item = _c.value;
31
+ resArray.push(item);
32
+ }
33
+ }
34
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
35
+ finally {
36
+ try {
37
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
38
+ }
39
+ finally { if (e_1) throw e_1.error; }
40
+ }
41
+ console.log(resArray);
42
+ });
43
+ }
44
+ listsTheComputePoliciesWithinTheAdlaAccount().catch(console.error);
45
+ //# sourceMappingURL=computePoliciesListByAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesListByAccountSample.js","sourceRoot":"","sources":["../../samples-dev/computePoliciesListByAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2CAA2C;;;QACxD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,eAAe,CAAC,aAAa,CACzD,iBAAiB,EACjB,WAAW,CACZ,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=computePoliciesUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/computePoliciesUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,37 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the specified compute policy.
15
+ *
16
+ * @summary Updates the specified compute policy.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/ComputePolicies_Update.json
18
+ */
19
+ function updatesTheSpecifiedComputePolicy() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const computePolicyName = "test_policy";
25
+ const parameters = {
26
+ maxDegreeOfParallelismPerJob: 11,
27
+ minPriorityPerJob: 31
28
+ };
29
+ const options = { parameters };
30
+ const credential = new DefaultAzureCredential();
31
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
32
+ const result = yield client.computePolicies.update(resourceGroupName, accountName, computePolicyName, options);
33
+ console.log(result);
34
+ });
35
+ }
36
+ updatesTheSpecifiedComputePolicy().catch(console.error);
37
+ //# sourceMappingURL=computePoliciesUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"computePoliciesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/computePoliciesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,wCAAwC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,iBAAiB,GAAG,aAAa,CAAC;QACxC,MAAM,UAAU,GAAkC;YAChD,4BAA4B,EAAE,EAAE;YAChC,iBAAiB,EAAE,EAAE;SACtB,CAAC;QACF,MAAM,OAAO,GAAwC,EAAE,UAAU,EAAE,CAAC;QACpE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,eAAe,CAAC,MAAM,CAChD,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataLakeStoreAccountsAddSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsAddSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsAddSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,34 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
15
+ *
16
+ * @summary Updates the specified Data Lake Analytics account to include the additional Data Lake Store account.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Add.json
18
+ */
19
+ function addsADataLakeStoreAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const dataLakeStoreAccountName = "test_adls_account";
25
+ const parameters = { suffix: "test_suffix" };
26
+ const options = { parameters };
27
+ const credential = new DefaultAzureCredential();
28
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
29
+ const result = yield client.dataLakeStoreAccounts.add(resourceGroupName, accountName, dataLakeStoreAccountName, options);
30
+ console.log(result);
31
+ });
32
+ }
33
+ addsADataLakeStoreAccount().catch(console.error);
34
+ //# sourceMappingURL=dataLakeStoreAccountsAddSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsAddSample.js","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsAddSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAGL,wCAAwC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;QACrD,MAAM,UAAU,GAA+B,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC;QACzE,MAAM,OAAO,GAA2C,EAAE,UAAU,EAAE,CAAC;QACvE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,wBAAwB,EACxB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,yBAAyB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataLakeStoreAccountsDeleteSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
15
+ *
16
+ * @summary Updates the Data Lake Analytics account specified to remove the specified Data Lake Store account.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Delete.json
18
+ */
19
+ function removesTheSpecifiedDataLakeStoreAccount() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const dataLakeStoreAccountName = "test_adls_account";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
27
+ const result = yield client.dataLakeStoreAccounts.delete(resourceGroupName, accountName, dataLakeStoreAccountName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ removesTheSpecifiedDataLakeStoreAccount().catch(console.error);
32
+ //# sourceMappingURL=dataLakeStoreAccountsDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,MAAM,CACtD,iBAAiB,EACjB,WAAW,EACX,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataLakeStoreAccountsGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,32 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
15
+ *
16
+ * @summary Gets the specified Data Lake Store account details in the specified Data Lake Analytics account.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_Get.json
18
+ */
19
+ function getsTheSpecifiedDataLakeStoreAccountDetails() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1669ab345";
22
+ const resourceGroupName = "contosorg";
23
+ const accountName = "contosoadla";
24
+ const dataLakeStoreAccountName = "test_adls_account";
25
+ const credential = new DefaultAzureCredential();
26
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
27
+ const result = yield client.dataLakeStoreAccounts.get(resourceGroupName, accountName, dataLakeStoreAccountName);
28
+ console.log(result);
29
+ });
30
+ }
31
+ getsTheSpecifiedDataLakeStoreAccountDetails().catch(console.error);
32
+ //# sourceMappingURL=dataLakeStoreAccountsGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsGetSample.js","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,wCAAwC,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,wBAAwB,GAAG,mBAAmB,CAAC;QACrD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,GAAG,CACnD,iBAAiB,EACjB,WAAW,EACX,wBAAwB,CACzB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=dataLakeStoreAccountsListByAccountSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsListByAccountSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsListByAccountSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,59 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __asyncValues, __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { DataLakeAnalyticsAccountManagementClient } from "@azure/arm-datalake-analytics";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
15
+ *
16
+ * @summary Gets the first page of Data Lake Store accounts linked to the specified Data Lake Analytics account. The response includes a link to the next page, if any.
17
+ * x-ms-original-file: specification/datalake-analytics/resource-manager/Microsoft.DataLakeAnalytics/preview/2019-11-01-preview/examples/DataLakeStoreAccounts_ListByAccount.json
18
+ */
19
+ function getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount() {
20
+ var e_1, _a;
21
+ return __awaiter(this, void 0, void 0, function* () {
22
+ const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
23
+ const resourceGroupName = "contosorg";
24
+ const accountName = "contosoadla";
25
+ const filter = "test_filter";
26
+ const top = 1;
27
+ const skip = 1;
28
+ const select = "test_select";
29
+ const orderby = "test_orderby";
30
+ const count = false;
31
+ const options = {
32
+ filter,
33
+ top,
34
+ skip,
35
+ select,
36
+ orderby,
37
+ count
38
+ };
39
+ const credential = new DefaultAzureCredential();
40
+ const client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
41
+ const resArray = new Array();
42
+ try {
43
+ for (var _b = __asyncValues(client.dataLakeStoreAccounts.listByAccount(resourceGroupName, accountName, options)), _c; _c = yield _b.next(), !_c.done;) {
44
+ let item = _c.value;
45
+ resArray.push(item);
46
+ }
47
+ }
48
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
49
+ finally {
50
+ try {
51
+ if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
52
+ }
53
+ finally { if (e_1) throw e_1.error; }
54
+ }
55
+ console.log(resArray);
56
+ });
57
+ }
58
+ getsTheFirstPageOfDataLakeStoreAccountsLinkedToTheSpecifiedDataLakeAnalyticsAccount().catch(console.error);
59
+ //# sourceMappingURL=dataLakeStoreAccountsListByAccountSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataLakeStoreAccountsListByAccountSample.js","sourceRoot":"","sources":["../../samples-dev/dataLakeStoreAccountsListByAccountSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,wCAAwC,EACzC,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,mFAAmF;;;QAChG,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,MAAM,GAAG,aAAa,CAAC;QAC7B,MAAM,GAAG,GAAG,CAAC,CAAC;QACd,MAAM,IAAI,GAAG,CAAC,CAAC;QACf,MAAM,MAAM,GAAG,aAAa,CAAC;QAC7B,MAAM,OAAO,GAAG,cAAc,CAAC;QAC/B,MAAM,KAAK,GAAG,KAAK,CAAC;QACpB,MAAM,OAAO,GAAqD;YAChE,MAAM;YACN,GAAG;YACH,IAAI;YACJ,MAAM;YACN,OAAO;YACP,KAAK;SACN,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,wCAAwC,CACzD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,qBAAqB,CAAC,aAAa,CAC/D,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAA,IAAA;gBAJU,IAAI,IAAI,WAAA,CAAA;gBAKjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,mFAAmF,EAAE,CAAC,KAAK,CACzF,OAAO,CAAC,KAAK,CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=firewallRulesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firewallRulesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/firewallRulesCreateOrUpdateSample.ts"],"names":[],"mappings":""}