@azure/arm-datalake-analytics 1.1.1 → 2.0.0-alpha.20211220.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 +69 -91
  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 -22
  105. package/review/arm-datalake-analytics.api.md +935 -0
  106. package/rollup.config.js +181 -30
  107. package/src/dataLakeAnalyticsAccountManagementClient.ts +45 -44
  108. package/src/dataLakeAnalyticsAccountManagementClientContext.ts +46 -43
  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 -4239
  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 -31
  138. package/esm/dataLakeAnalyticsAccountManagementClient.d.ts.map +0 -1
  139. package/esm/dataLakeAnalyticsAccountManagementClient.js +0 -44
  140. package/esm/dataLakeAnalyticsAccountManagementClient.js.map +0 -1
  141. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts +0 -23
  142. package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +0 -1
  143. package/esm/dataLakeAnalyticsAccountManagementClientContext.js +0 -61
  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
@@ -3,328 +3,509 @@
3
3
  * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
- * Changes may cause incorrect behavior and will be lost if the code is
7
- * regenerated.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
8
7
  */
9
8
 
10
- import * as msRest from "@azure/ms-rest-js";
11
- import * as msRestAzure from "@azure/ms-rest-azure-js";
12
- import * as Models from "../models";
13
- import * as Mappers from "../models/accountsMappers";
9
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
10
+ import { Accounts } from "../operationsInterfaces";
11
+ import * as coreClient from "@azure/core-client";
12
+ import * as Mappers from "../models/mappers";
14
13
  import * as Parameters from "../models/parameters";
15
14
  import { DataLakeAnalyticsAccountManagementClientContext } from "../dataLakeAnalyticsAccountManagementClientContext";
15
+ import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
16
+ import { LroImpl } from "../lroImpl";
17
+ import {
18
+ DataLakeAnalyticsAccountBasic,
19
+ AccountsListNextOptionalParams,
20
+ AccountsListOptionalParams,
21
+ AccountsListByResourceGroupNextOptionalParams,
22
+ AccountsListByResourceGroupOptionalParams,
23
+ AccountsListResponse,
24
+ AccountsListByResourceGroupResponse,
25
+ CreateDataLakeAnalyticsAccountParameters,
26
+ AccountsCreateOptionalParams,
27
+ AccountsCreateResponse,
28
+ AccountsGetOptionalParams,
29
+ AccountsGetResponse,
30
+ AccountsUpdateOptionalParams,
31
+ AccountsUpdateResponse,
32
+ AccountsDeleteOptionalParams,
33
+ CheckNameAvailabilityParameters,
34
+ AccountsCheckNameAvailabilityOptionalParams,
35
+ AccountsCheckNameAvailabilityResponse,
36
+ AccountsListNextResponse,
37
+ AccountsListByResourceGroupNextResponse
38
+ } from "../models";
16
39
 
17
- /** Class representing a Accounts. */
18
- export class Accounts {
40
+ /// <reference lib="esnext.asynciterable" />
41
+ /** Class containing Accounts operations. */
42
+ export class AccountsImpl implements Accounts {
19
43
  private readonly client: DataLakeAnalyticsAccountManagementClientContext;
20
44
 
21
45
  /**
22
- * Create a Accounts.
23
- * @param {DataLakeAnalyticsAccountManagementClientContext} client Reference to the service client.
46
+ * Initialize a new instance of the class Accounts class.
47
+ * @param client Reference to the service client
24
48
  */
25
49
  constructor(client: DataLakeAnalyticsAccountManagementClientContext) {
26
50
  this.client = client;
27
51
  }
28
52
 
29
53
  /**
30
- * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
31
- * This includes a link to the next page, if any.
32
- * @param [options] The optional parameters
33
- * @returns Promise<Models.AccountsListResponse>
54
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This
55
+ * includes a link to the next page, if any.
56
+ * @param options The options parameters.
34
57
  */
35
- list(options?: Models.AccountsListOptionalParams): Promise<Models.AccountsListResponse>;
36
- /**
37
- * @param callback The callback
38
- */
39
- list(callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
40
- /**
41
- * @param options The optional parameters
42
- * @param callback The callback
43
- */
44
- list(options: Models.AccountsListOptionalParams, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
45
- list(options?: Models.AccountsListOptionalParams | msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>, callback?: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): Promise<Models.AccountsListResponse> {
46
- return this.client.sendOperationRequest(
47
- {
48
- options
58
+ public list(
59
+ options?: AccountsListOptionalParams
60
+ ): PagedAsyncIterableIterator<DataLakeAnalyticsAccountBasic> {
61
+ const iter = this.listPagingAll(options);
62
+ return {
63
+ next() {
64
+ return iter.next();
65
+ },
66
+ [Symbol.asyncIterator]() {
67
+ return this;
49
68
  },
50
- listOperationSpec,
51
- callback) as Promise<Models.AccountsListResponse>;
69
+ byPage: () => {
70
+ return this.listPagingPage(options);
71
+ }
72
+ };
73
+ }
74
+
75
+ private async *listPagingPage(
76
+ options?: AccountsListOptionalParams
77
+ ): AsyncIterableIterator<DataLakeAnalyticsAccountBasic[]> {
78
+ let result = await this._list(options);
79
+ yield result.value || [];
80
+ let continuationToken = result.nextLink;
81
+ while (continuationToken) {
82
+ result = await this._listNext(continuationToken, options);
83
+ continuationToken = result.nextLink;
84
+ yield result.value || [];
85
+ }
86
+ }
87
+
88
+ private async *listPagingAll(
89
+ options?: AccountsListOptionalParams
90
+ ): AsyncIterableIterator<DataLakeAnalyticsAccountBasic> {
91
+ for await (const page of this.listPagingPage(options)) {
92
+ yield* page;
93
+ }
52
94
  }
53
95
 
54
96
  /**
55
- * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
56
- * This includes a link to the next page, if any.
57
- * @param resourceGroupName The name of the Azure resource group.
58
- * @param [options] The optional parameters
59
- * @returns Promise<Models.AccountsListByResourceGroupResponse>
60
- */
61
- listByResourceGroup(resourceGroupName: string, options?: Models.AccountsListByResourceGroupOptionalParams): Promise<Models.AccountsListByResourceGroupResponse>;
62
- /**
63
- * @param resourceGroupName The name of the Azure resource group.
64
- * @param callback The callback
65
- */
66
- listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
67
- /**
97
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This
98
+ * includes a link to the next page, if any.
68
99
  * @param resourceGroupName The name of the Azure resource group.
69
- * @param options The optional parameters
70
- * @param callback The callback
100
+ * @param options The options parameters.
71
101
  */
72
- listByResourceGroup(resourceGroupName: string, options: Models.AccountsListByResourceGroupOptionalParams, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
73
- listByResourceGroup(resourceGroupName: string, options?: Models.AccountsListByResourceGroupOptionalParams | msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>, callback?: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): Promise<Models.AccountsListByResourceGroupResponse> {
74
- return this.client.sendOperationRequest(
75
- {
102
+ public listByResourceGroup(
103
+ resourceGroupName: string,
104
+ options?: AccountsListByResourceGroupOptionalParams
105
+ ): PagedAsyncIterableIterator<DataLakeAnalyticsAccountBasic> {
106
+ const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
107
+ return {
108
+ next() {
109
+ return iter.next();
110
+ },
111
+ [Symbol.asyncIterator]() {
112
+ return this;
113
+ },
114
+ byPage: () => {
115
+ return this.listByResourceGroupPagingPage(resourceGroupName, options);
116
+ }
117
+ };
118
+ }
119
+
120
+ private async *listByResourceGroupPagingPage(
121
+ resourceGroupName: string,
122
+ options?: AccountsListByResourceGroupOptionalParams
123
+ ): AsyncIterableIterator<DataLakeAnalyticsAccountBasic[]> {
124
+ let result = await this._listByResourceGroup(resourceGroupName, options);
125
+ yield result.value || [];
126
+ let continuationToken = result.nextLink;
127
+ while (continuationToken) {
128
+ result = await this._listByResourceGroupNext(
76
129
  resourceGroupName,
130
+ continuationToken,
77
131
  options
78
- },
79
- listByResourceGroupOperationSpec,
80
- callback) as Promise<Models.AccountsListByResourceGroupResponse>;
132
+ );
133
+ continuationToken = result.nextLink;
134
+ yield result.value || [];
135
+ }
136
+ }
137
+
138
+ private async *listByResourceGroupPagingAll(
139
+ resourceGroupName: string,
140
+ options?: AccountsListByResourceGroupOptionalParams
141
+ ): AsyncIterableIterator<DataLakeAnalyticsAccountBasic> {
142
+ for await (const page of this.listByResourceGroupPagingPage(
143
+ resourceGroupName,
144
+ options
145
+ )) {
146
+ yield* page;
147
+ }
81
148
  }
82
149
 
83
150
  /**
84
- * Creates the specified Data Lake Analytics account. This supplies the user with computation
85
- * services for Data Lake Analytics workloads.
86
- * @param resourceGroupName The name of the Azure resource group.
87
- * @param accountName The name of the Data Lake Analytics account.
88
- * @param parameters Parameters supplied to create a new Data Lake Analytics account.
89
- * @param [options] The optional parameters
90
- * @returns Promise<Models.AccountsCreateResponse>
151
+ * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription. This
152
+ * includes a link to the next page, if any.
153
+ * @param options The options parameters.
91
154
  */
92
- create(resourceGroupName: string, accountName: string, parameters: Models.CreateDataLakeAnalyticsAccountParameters, options?: msRest.RequestOptionsBase): Promise<Models.AccountsCreateResponse> {
93
- return this.beginCreate(resourceGroupName,accountName,parameters,options)
94
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AccountsCreateResponse>;
155
+ private _list(
156
+ options?: AccountsListOptionalParams
157
+ ): Promise<AccountsListResponse> {
158
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
95
159
  }
96
160
 
97
161
  /**
98
- * Gets details of the specified Data Lake Analytics account.
162
+ * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group. This
163
+ * includes a link to the next page, if any.
99
164
  * @param resourceGroupName The name of the Azure resource group.
100
- * @param accountName The name of the Data Lake Analytics account.
101
- * @param [options] The optional parameters
102
- * @returns Promise<Models.AccountsGetResponse>
165
+ * @param options The options parameters.
103
166
  */
104
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<Models.AccountsGetResponse>;
167
+ private _listByResourceGroup(
168
+ resourceGroupName: string,
169
+ options?: AccountsListByResourceGroupOptionalParams
170
+ ): Promise<AccountsListByResourceGroupResponse> {
171
+ return this.client.sendOperationRequest(
172
+ { resourceGroupName, options },
173
+ listByResourceGroupOperationSpec
174
+ );
175
+ }
176
+
105
177
  /**
178
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services
179
+ * for Data Lake Analytics workloads.
106
180
  * @param resourceGroupName The name of the Azure resource group.
107
181
  * @param accountName The name of the Data Lake Analytics account.
108
- * @param callback The callback
182
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
183
+ * @param options The options parameters.
109
184
  */
110
- get(resourceGroupName: string, accountName: string, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccount>): void;
185
+ async beginCreate(
186
+ resourceGroupName: string,
187
+ accountName: string,
188
+ parameters: CreateDataLakeAnalyticsAccountParameters,
189
+ options?: AccountsCreateOptionalParams
190
+ ): Promise<
191
+ PollerLike<
192
+ PollOperationState<AccountsCreateResponse>,
193
+ AccountsCreateResponse
194
+ >
195
+ > {
196
+ const directSendOperation = async (
197
+ args: coreClient.OperationArguments,
198
+ spec: coreClient.OperationSpec
199
+ ): Promise<AccountsCreateResponse> => {
200
+ return this.client.sendOperationRequest(args, spec);
201
+ };
202
+ const sendOperation = async (
203
+ args: coreClient.OperationArguments,
204
+ spec: coreClient.OperationSpec
205
+ ) => {
206
+ let currentRawResponse:
207
+ | coreClient.FullOperationResponse
208
+ | undefined = undefined;
209
+ const providedCallback = args.options?.onResponse;
210
+ const callback: coreClient.RawResponseCallback = (
211
+ rawResponse: coreClient.FullOperationResponse,
212
+ flatResponse: unknown
213
+ ) => {
214
+ currentRawResponse = rawResponse;
215
+ providedCallback?.(rawResponse, flatResponse);
216
+ };
217
+ const updatedArgs = {
218
+ ...args,
219
+ options: {
220
+ ...args.options,
221
+ onResponse: callback
222
+ }
223
+ };
224
+ const flatResponse = await directSendOperation(updatedArgs, spec);
225
+ return {
226
+ flatResponse,
227
+ rawResponse: {
228
+ statusCode: currentRawResponse!.status,
229
+ body: currentRawResponse!.parsedBody,
230
+ headers: currentRawResponse!.headers.toJSON()
231
+ }
232
+ };
233
+ };
234
+
235
+ const lro = new LroImpl(
236
+ sendOperation,
237
+ { resourceGroupName, accountName, parameters, options },
238
+ createOperationSpec
239
+ );
240
+ return new LroEngine(lro, {
241
+ resumeFrom: options?.resumeFrom,
242
+ intervalInMs: options?.updateIntervalInMs
243
+ });
244
+ }
245
+
111
246
  /**
247
+ * Creates the specified Data Lake Analytics account. This supplies the user with computation services
248
+ * for Data Lake Analytics workloads.
112
249
  * @param resourceGroupName The name of the Azure resource group.
113
250
  * @param accountName The name of the Data Lake Analytics account.
114
- * @param options The optional parameters
115
- * @param callback The callback
251
+ * @param parameters Parameters supplied to create a new Data Lake Analytics account.
252
+ * @param options The options parameters.
116
253
  */
117
- get(resourceGroupName: string, accountName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccount>): void;
118
- get(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.DataLakeAnalyticsAccount>, callback?: msRest.ServiceCallback<Models.DataLakeAnalyticsAccount>): Promise<Models.AccountsGetResponse> {
119
- return this.client.sendOperationRequest(
120
- {
121
- resourceGroupName,
122
- accountName,
123
- options
124
- },
125
- getOperationSpec,
126
- callback) as Promise<Models.AccountsGetResponse>;
254
+ async beginCreateAndWait(
255
+ resourceGroupName: string,
256
+ accountName: string,
257
+ parameters: CreateDataLakeAnalyticsAccountParameters,
258
+ options?: AccountsCreateOptionalParams
259
+ ): Promise<AccountsCreateResponse> {
260
+ const poller = await this.beginCreate(
261
+ resourceGroupName,
262
+ accountName,
263
+ parameters,
264
+ options
265
+ );
266
+ return poller.pollUntilDone();
127
267
  }
128
268
 
129
269
  /**
130
- * Updates the Data Lake Analytics account object specified by the accountName with the contents of
131
- * the account object.
270
+ * Gets details of the specified Data Lake Analytics account.
132
271
  * @param resourceGroupName The name of the Azure resource group.
133
272
  * @param accountName The name of the Data Lake Analytics account.
134
- * @param [options] The optional parameters
135
- * @returns Promise<Models.AccountsUpdateResponse>
273
+ * @param options The options parameters.
136
274
  */
137
- update(resourceGroupName: string, accountName: string, options?: Models.AccountsUpdateOptionalParams): Promise<Models.AccountsUpdateResponse> {
138
- return this.beginUpdate(resourceGroupName,accountName,options)
139
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise<Models.AccountsUpdateResponse>;
275
+ get(
276
+ resourceGroupName: string,
277
+ accountName: string,
278
+ options?: AccountsGetOptionalParams
279
+ ): Promise<AccountsGetResponse> {
280
+ return this.client.sendOperationRequest(
281
+ { resourceGroupName, accountName, options },
282
+ getOperationSpec
283
+ );
140
284
  }
141
285
 
142
286
  /**
143
- * Begins the delete process for the Data Lake Analytics account object specified by the account
144
- * name.
287
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the
288
+ * account object.
145
289
  * @param resourceGroupName The name of the Azure resource group.
146
290
  * @param accountName The name of the Data Lake Analytics account.
147
- * @param [options] The optional parameters
148
- * @returns Promise<msRest.RestResponse>
291
+ * @param options The options parameters.
149
292
  */
150
- deleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRest.RestResponse> {
151
- return this.beginDeleteMethod(resourceGroupName,accountName,options)
152
- .then(lroPoller => lroPoller.pollUntilFinished());
153
- }
293
+ async beginUpdate(
294
+ resourceGroupName: string,
295
+ accountName: string,
296
+ options?: AccountsUpdateOptionalParams
297
+ ): Promise<
298
+ PollerLike<
299
+ PollOperationState<AccountsUpdateResponse>,
300
+ AccountsUpdateResponse
301
+ >
302
+ > {
303
+ const directSendOperation = async (
304
+ args: coreClient.OperationArguments,
305
+ spec: coreClient.OperationSpec
306
+ ): Promise<AccountsUpdateResponse> => {
307
+ return this.client.sendOperationRequest(args, spec);
308
+ };
309
+ const sendOperation = async (
310
+ args: coreClient.OperationArguments,
311
+ spec: coreClient.OperationSpec
312
+ ) => {
313
+ let currentRawResponse:
314
+ | coreClient.FullOperationResponse
315
+ | undefined = undefined;
316
+ const providedCallback = args.options?.onResponse;
317
+ const callback: coreClient.RawResponseCallback = (
318
+ rawResponse: coreClient.FullOperationResponse,
319
+ flatResponse: unknown
320
+ ) => {
321
+ currentRawResponse = rawResponse;
322
+ providedCallback?.(rawResponse, flatResponse);
323
+ };
324
+ const updatedArgs = {
325
+ ...args,
326
+ options: {
327
+ ...args.options,
328
+ onResponse: callback
329
+ }
330
+ };
331
+ const flatResponse = await directSendOperation(updatedArgs, spec);
332
+ return {
333
+ flatResponse,
334
+ rawResponse: {
335
+ statusCode: currentRawResponse!.status,
336
+ body: currentRawResponse!.parsedBody,
337
+ headers: currentRawResponse!.headers.toJSON()
338
+ }
339
+ };
340
+ };
154
341
 
155
- /**
156
- * Checks whether the specified account name is available or taken.
157
- * @param location The resource location without whitespace.
158
- * @param parameters Parameters supplied to check the Data Lake Analytics account name
159
- * availability.
160
- * @param [options] The optional parameters
161
- * @returns Promise<Models.AccountsCheckNameAvailabilityResponse>
162
- */
163
- checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase): Promise<Models.AccountsCheckNameAvailabilityResponse>;
164
- /**
165
- * @param location The resource location without whitespace.
166
- * @param parameters Parameters supplied to check the Data Lake Analytics account name
167
- * availability.
168
- * @param callback The callback
169
- */
170
- checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, callback: msRest.ServiceCallback<Models.NameAvailabilityInformation>): void;
171
- /**
172
- * @param location The resource location without whitespace.
173
- * @param parameters Parameters supplied to check the Data Lake Analytics account name
174
- * availability.
175
- * @param options The optional parameters
176
- * @param callback The callback
177
- */
178
- checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.NameAvailabilityInformation>): void;
179
- checkNameAvailability(location: string, parameters: Models.CheckNameAvailabilityParameters, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.NameAvailabilityInformation>, callback?: msRest.ServiceCallback<Models.NameAvailabilityInformation>): Promise<Models.AccountsCheckNameAvailabilityResponse> {
180
- return this.client.sendOperationRequest(
181
- {
182
- location,
183
- parameters,
184
- options
185
- },
186
- checkNameAvailabilityOperationSpec,
187
- callback) as Promise<Models.AccountsCheckNameAvailabilityResponse>;
342
+ const lro = new LroImpl(
343
+ sendOperation,
344
+ { resourceGroupName, accountName, options },
345
+ updateOperationSpec
346
+ );
347
+ return new LroEngine(lro, {
348
+ resumeFrom: options?.resumeFrom,
349
+ intervalInMs: options?.updateIntervalInMs
350
+ });
188
351
  }
189
352
 
190
353
  /**
191
- * Creates the specified Data Lake Analytics account. This supplies the user with computation
192
- * services for Data Lake Analytics workloads.
354
+ * Updates the Data Lake Analytics account object specified by the accountName with the contents of the
355
+ * account object.
193
356
  * @param resourceGroupName The name of the Azure resource group.
194
357
  * @param accountName The name of the Data Lake Analytics account.
195
- * @param parameters Parameters supplied to create a new Data Lake Analytics account.
196
- * @param [options] The optional parameters
197
- * @returns Promise<msRestAzure.LROPoller>
358
+ * @param options The options parameters.
198
359
  */
199
- beginCreate(resourceGroupName: string, accountName: string, parameters: Models.CreateDataLakeAnalyticsAccountParameters, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
200
- return this.client.sendLRORequest(
201
- {
202
- resourceGroupName,
203
- accountName,
204
- parameters,
205
- options
206
- },
207
- beginCreateOperationSpec,
208
- options);
360
+ async beginUpdateAndWait(
361
+ resourceGroupName: string,
362
+ accountName: string,
363
+ options?: AccountsUpdateOptionalParams
364
+ ): Promise<AccountsUpdateResponse> {
365
+ const poller = await this.beginUpdate(
366
+ resourceGroupName,
367
+ accountName,
368
+ options
369
+ );
370
+ return poller.pollUntilDone();
209
371
  }
210
372
 
211
373
  /**
212
- * Updates the Data Lake Analytics account object specified by the accountName with the contents of
213
- * the account object.
374
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
214
375
  * @param resourceGroupName The name of the Azure resource group.
215
376
  * @param accountName The name of the Data Lake Analytics account.
216
- * @param [options] The optional parameters
217
- * @returns Promise<msRestAzure.LROPoller>
377
+ * @param options The options parameters.
218
378
  */
219
- beginUpdate(resourceGroupName: string, accountName: string, options?: Models.AccountsBeginUpdateOptionalParams): Promise<msRestAzure.LROPoller> {
220
- return this.client.sendLRORequest(
221
- {
222
- resourceGroupName,
223
- accountName,
224
- options
225
- },
226
- beginUpdateOperationSpec,
227
- options);
379
+ async beginDelete(
380
+ resourceGroupName: string,
381
+ accountName: string,
382
+ options?: AccountsDeleteOptionalParams
383
+ ): Promise<PollerLike<PollOperationState<void>, void>> {
384
+ const directSendOperation = async (
385
+ args: coreClient.OperationArguments,
386
+ spec: coreClient.OperationSpec
387
+ ): Promise<void> => {
388
+ return this.client.sendOperationRequest(args, spec);
389
+ };
390
+ const sendOperation = async (
391
+ args: coreClient.OperationArguments,
392
+ spec: coreClient.OperationSpec
393
+ ) => {
394
+ let currentRawResponse:
395
+ | coreClient.FullOperationResponse
396
+ | undefined = undefined;
397
+ const providedCallback = args.options?.onResponse;
398
+ const callback: coreClient.RawResponseCallback = (
399
+ rawResponse: coreClient.FullOperationResponse,
400
+ flatResponse: unknown
401
+ ) => {
402
+ currentRawResponse = rawResponse;
403
+ providedCallback?.(rawResponse, flatResponse);
404
+ };
405
+ const updatedArgs = {
406
+ ...args,
407
+ options: {
408
+ ...args.options,
409
+ onResponse: callback
410
+ }
411
+ };
412
+ const flatResponse = await directSendOperation(updatedArgs, spec);
413
+ return {
414
+ flatResponse,
415
+ rawResponse: {
416
+ statusCode: currentRawResponse!.status,
417
+ body: currentRawResponse!.parsedBody,
418
+ headers: currentRawResponse!.headers.toJSON()
419
+ }
420
+ };
421
+ };
422
+
423
+ const lro = new LroImpl(
424
+ sendOperation,
425
+ { resourceGroupName, accountName, options },
426
+ deleteOperationSpec
427
+ );
428
+ return new LroEngine(lro, {
429
+ resumeFrom: options?.resumeFrom,
430
+ intervalInMs: options?.updateIntervalInMs
431
+ });
228
432
  }
229
433
 
230
434
  /**
231
- * Begins the delete process for the Data Lake Analytics account object specified by the account
232
- * name.
435
+ * Begins the delete process for the Data Lake Analytics account object specified by the account name.
233
436
  * @param resourceGroupName The name of the Azure resource group.
234
437
  * @param accountName The name of the Data Lake Analytics account.
235
- * @param [options] The optional parameters
236
- * @returns Promise<msRestAzure.LROPoller>
438
+ * @param options The options parameters.
237
439
  */
238
- beginDeleteMethod(resourceGroupName: string, accountName: string, options?: msRest.RequestOptionsBase): Promise<msRestAzure.LROPoller> {
239
- return this.client.sendLRORequest(
240
- {
241
- resourceGroupName,
242
- accountName,
243
- options
244
- },
245
- beginDeleteMethodOperationSpec,
246
- options);
440
+ async beginDeleteAndWait(
441
+ resourceGroupName: string,
442
+ accountName: string,
443
+ options?: AccountsDeleteOptionalParams
444
+ ): Promise<void> {
445
+ const poller = await this.beginDelete(
446
+ resourceGroupName,
447
+ accountName,
448
+ options
449
+ );
450
+ return poller.pollUntilDone();
247
451
  }
248
452
 
249
453
  /**
250
- * Gets the first page of Data Lake Analytics accounts, if any, within the current subscription.
251
- * This includes a link to the next page, if any.
252
- * @param nextPageLink The NextLink from the previous successful call to List operation.
253
- * @param [options] The optional parameters
254
- * @returns Promise<Models.AccountsListNextResponse>
255
- */
256
- listNext(nextPageLink: string, options?: Models.AccountsListNextOptionalParams): Promise<Models.AccountsListNextResponse>;
257
- /**
258
- * @param nextPageLink The NextLink from the previous successful call to List operation.
259
- * @param callback The callback
260
- */
261
- listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
262
- /**
263
- * @param nextPageLink The NextLink from the previous successful call to List operation.
264
- * @param options The optional parameters
265
- * @param callback The callback
454
+ * Checks whether the specified account name is available or taken.
455
+ * @param location The resource location without whitespace.
456
+ * @param parameters Parameters supplied to check the Data Lake Analytics account name availability.
457
+ * @param options The options parameters.
266
458
  */
267
- listNext(nextPageLink: string, options: Models.AccountsListNextOptionalParams, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
268
- listNext(nextPageLink: string, options?: Models.AccountsListNextOptionalParams | msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>, callback?: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): Promise<Models.AccountsListNextResponse> {
459
+ checkNameAvailability(
460
+ location: string,
461
+ parameters: CheckNameAvailabilityParameters,
462
+ options?: AccountsCheckNameAvailabilityOptionalParams
463
+ ): Promise<AccountsCheckNameAvailabilityResponse> {
269
464
  return this.client.sendOperationRequest(
270
- {
271
- nextPageLink,
272
- options
273
- },
274
- listNextOperationSpec,
275
- callback) as Promise<Models.AccountsListNextResponse>;
465
+ { location, parameters, options },
466
+ checkNameAvailabilityOperationSpec
467
+ );
276
468
  }
277
469
 
278
470
  /**
279
- * Gets the first page of Data Lake Analytics accounts, if any, within a specific resource group.
280
- * This includes a link to the next page, if any.
281
- * @param nextPageLink The NextLink from the previous successful call to List operation.
282
- * @param [options] The optional parameters
283
- * @returns Promise<Models.AccountsListByResourceGroupNextResponse>
471
+ * ListNext
472
+ * @param nextLink The nextLink from the previous successful call to the List method.
473
+ * @param options The options parameters.
284
474
  */
285
- listByResourceGroupNext(nextPageLink: string, options?: Models.AccountsListByResourceGroupNextOptionalParams): Promise<Models.AccountsListByResourceGroupNextResponse>;
286
- /**
287
- * @param nextPageLink The NextLink from the previous successful call to List operation.
288
- * @param callback The callback
289
- */
290
- listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
475
+ private _listNext(
476
+ nextLink: string,
477
+ options?: AccountsListNextOptionalParams
478
+ ): Promise<AccountsListNextResponse> {
479
+ return this.client.sendOperationRequest(
480
+ { nextLink, options },
481
+ listNextOperationSpec
482
+ );
483
+ }
484
+
291
485
  /**
292
- * @param nextPageLink The NextLink from the previous successful call to List operation.
293
- * @param options The optional parameters
294
- * @param callback The callback
486
+ * ListByResourceGroupNext
487
+ * @param resourceGroupName The name of the Azure resource group.
488
+ * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
489
+ * @param options The options parameters.
295
490
  */
296
- listByResourceGroupNext(nextPageLink: string, options: Models.AccountsListByResourceGroupNextOptionalParams, callback: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): void;
297
- listByResourceGroupNext(nextPageLink: string, options?: Models.AccountsListByResourceGroupNextOptionalParams | msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>, callback?: msRest.ServiceCallback<Models.DataLakeAnalyticsAccountListResult>): Promise<Models.AccountsListByResourceGroupNextResponse> {
491
+ private _listByResourceGroupNext(
492
+ resourceGroupName: string,
493
+ nextLink: string,
494
+ options?: AccountsListByResourceGroupNextOptionalParams
495
+ ): Promise<AccountsListByResourceGroupNextResponse> {
298
496
  return this.client.sendOperationRequest(
299
- {
300
- nextPageLink,
301
- options
302
- },
303
- listByResourceGroupNextOperationSpec,
304
- callback) as Promise<Models.AccountsListByResourceGroupNextResponse>;
497
+ { resourceGroupName, nextLink, options },
498
+ listByResourceGroupNextOperationSpec
499
+ );
305
500
  }
306
501
  }
307
-
308
502
  // Operation Specifications
309
- const serializer = new msRest.Serializer(Mappers);
310
- const listOperationSpec: msRest.OperationSpec = {
503
+ const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
504
+
505
+ const listOperationSpec: coreClient.OperationSpec = {
506
+ path:
507
+ "/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts",
311
508
  httpMethod: "GET",
312
- path: "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts",
313
- urlParameters: [
314
- Parameters.subscriptionId
315
- ],
316
- queryParameters: [
317
- Parameters.filter,
318
- Parameters.top,
319
- Parameters.skip,
320
- Parameters.select,
321
- Parameters.orderby,
322
- Parameters.count,
323
- Parameters.apiVersion
324
- ],
325
- headerParameters: [
326
- Parameters.acceptLanguage
327
- ],
328
509
  responses: {
329
510
  200: {
330
511
  bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
@@ -333,16 +514,6 @@ const listOperationSpec: msRest.OperationSpec = {
333
514
  bodyMapper: Mappers.ErrorResponse
334
515
  }
335
516
  },
336
- serializer
337
- };
338
-
339
- const listByResourceGroupOperationSpec: msRest.OperationSpec = {
340
- httpMethod: "GET",
341
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts",
342
- urlParameters: [
343
- Parameters.subscriptionId,
344
- Parameters.resourceGroupName
345
- ],
346
517
  queryParameters: [
347
518
  Parameters.filter,
348
519
  Parameters.top,
@@ -352,132 +523,98 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
352
523
  Parameters.count,
353
524
  Parameters.apiVersion
354
525
  ],
355
- headerParameters: [
356
- Parameters.acceptLanguage
357
- ],
358
- responses: {
359
- 200: {
360
- bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
361
- },
362
- default: {
363
- bodyMapper: Mappers.ErrorResponse
364
- }
365
- },
526
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
527
+ headerParameters: [Parameters.accept],
366
528
  serializer
367
529
  };
368
-
369
- const getOperationSpec: msRest.OperationSpec = {
530
+ const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
531
+ path:
532
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts",
370
533
  httpMethod: "GET",
371
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
372
- urlParameters: [
373
- Parameters.subscriptionId,
374
- Parameters.resourceGroupName,
375
- Parameters.accountName
376
- ],
377
- queryParameters: [
378
- Parameters.apiVersion
379
- ],
380
- headerParameters: [
381
- Parameters.acceptLanguage
382
- ],
383
534
  responses: {
384
535
  200: {
385
- bodyMapper: Mappers.DataLakeAnalyticsAccount
536
+ bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
386
537
  },
387
538
  default: {
388
539
  bodyMapper: Mappers.ErrorResponse
389
540
  }
390
541
  },
391
- serializer
392
- };
393
-
394
- const checkNameAvailabilityOperationSpec: msRest.OperationSpec = {
395
- httpMethod: "POST",
396
- path: "subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/checkNameAvailability",
397
- urlParameters: [
398
- Parameters.subscriptionId,
399
- Parameters.location
400
- ],
401
542
  queryParameters: [
543
+ Parameters.filter,
544
+ Parameters.top,
545
+ Parameters.skip,
546
+ Parameters.select,
547
+ Parameters.orderby,
548
+ Parameters.count,
402
549
  Parameters.apiVersion
403
550
  ],
404
- headerParameters: [
405
- Parameters.acceptLanguage
551
+ urlParameters: [
552
+ Parameters.$host,
553
+ Parameters.subscriptionId,
554
+ Parameters.resourceGroupName
406
555
  ],
407
- requestBody: {
408
- parameterPath: "parameters",
409
- mapper: {
410
- ...Mappers.CheckNameAvailabilityParameters,
411
- required: true
412
- }
413
- },
556
+ headerParameters: [Parameters.accept],
557
+ serializer
558
+ };
559
+ const createOperationSpec: coreClient.OperationSpec = {
560
+ path:
561
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
562
+ httpMethod: "PUT",
414
563
  responses: {
415
564
  200: {
416
- bodyMapper: Mappers.NameAvailabilityInformation
565
+ bodyMapper: Mappers.DataLakeAnalyticsAccount
566
+ },
567
+ 201: {
568
+ bodyMapper: Mappers.DataLakeAnalyticsAccount
569
+ },
570
+ 202: {
571
+ bodyMapper: Mappers.DataLakeAnalyticsAccount
572
+ },
573
+ 204: {
574
+ bodyMapper: Mappers.DataLakeAnalyticsAccount
417
575
  },
418
576
  default: {
419
577
  bodyMapper: Mappers.ErrorResponse
420
578
  }
421
579
  },
422
- serializer
423
- };
424
-
425
- const beginCreateOperationSpec: msRest.OperationSpec = {
426
- httpMethod: "PUT",
427
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
580
+ requestBody: Parameters.parameters,
581
+ queryParameters: [Parameters.apiVersion],
428
582
  urlParameters: [
583
+ Parameters.$host,
429
584
  Parameters.subscriptionId,
430
585
  Parameters.resourceGroupName,
431
586
  Parameters.accountName
432
587
  ],
433
- queryParameters: [
434
- Parameters.apiVersion
435
- ],
436
- headerParameters: [
437
- Parameters.acceptLanguage
438
- ],
439
- requestBody: {
440
- parameterPath: "parameters",
441
- mapper: {
442
- ...Mappers.CreateDataLakeAnalyticsAccountParameters,
443
- required: true
444
- }
445
- },
588
+ headerParameters: [Parameters.accept, Parameters.contentType],
589
+ mediaType: "json",
590
+ serializer
591
+ };
592
+ const getOperationSpec: coreClient.OperationSpec = {
593
+ path:
594
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
595
+ httpMethod: "GET",
446
596
  responses: {
447
597
  200: {
448
598
  bodyMapper: Mappers.DataLakeAnalyticsAccount
449
599
  },
450
- 201: {
451
- bodyMapper: Mappers.DataLakeAnalyticsAccount
452
- },
453
600
  default: {
454
601
  bodyMapper: Mappers.ErrorResponse
455
602
  }
456
603
  },
457
- serializer
458
- };
459
-
460
- const beginUpdateOperationSpec: msRest.OperationSpec = {
461
- httpMethod: "PATCH",
462
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
604
+ queryParameters: [Parameters.apiVersion],
463
605
  urlParameters: [
606
+ Parameters.$host,
464
607
  Parameters.subscriptionId,
465
608
  Parameters.resourceGroupName,
466
609
  Parameters.accountName
467
610
  ],
468
- queryParameters: [
469
- Parameters.apiVersion
470
- ],
471
- headerParameters: [
472
- Parameters.acceptLanguage
473
- ],
474
- requestBody: {
475
- parameterPath: [
476
- "options",
477
- "parameters"
478
- ],
479
- mapper: Mappers.UpdateDataLakeAnalyticsAccountParameters
480
- },
611
+ headerParameters: [Parameters.accept],
612
+ serializer
613
+ };
614
+ const updateOperationSpec: coreClient.OperationSpec = {
615
+ path:
616
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
617
+ httpMethod: "PATCH",
481
618
  responses: {
482
619
  200: {
483
620
  bodyMapper: Mappers.DataLakeAnalyticsAccount
@@ -488,45 +625,82 @@ const beginUpdateOperationSpec: msRest.OperationSpec = {
488
625
  202: {
489
626
  bodyMapper: Mappers.DataLakeAnalyticsAccount
490
627
  },
628
+ 204: {
629
+ bodyMapper: Mappers.DataLakeAnalyticsAccount
630
+ },
491
631
  default: {
492
632
  bodyMapper: Mappers.ErrorResponse
493
633
  }
494
634
  },
495
- serializer
496
- };
497
-
498
- const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
499
- httpMethod: "DELETE",
500
- path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
635
+ requestBody: Parameters.parameters1,
636
+ queryParameters: [Parameters.apiVersion],
501
637
  urlParameters: [
638
+ Parameters.$host,
502
639
  Parameters.subscriptionId,
503
640
  Parameters.resourceGroupName,
504
641
  Parameters.accountName
505
642
  ],
506
- queryParameters: [
507
- Parameters.apiVersion
508
- ],
509
- headerParameters: [
510
- Parameters.acceptLanguage
511
- ],
643
+ headerParameters: [Parameters.accept, Parameters.contentType],
644
+ mediaType: "json",
645
+ serializer
646
+ };
647
+ const deleteOperationSpec: coreClient.OperationSpec = {
648
+ path:
649
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}",
650
+ httpMethod: "DELETE",
512
651
  responses: {
513
652
  200: {},
653
+ 201: {},
514
654
  202: {},
515
655
  204: {},
516
656
  default: {
517
657
  bodyMapper: Mappers.ErrorResponse
518
658
  }
519
659
  },
660
+ queryParameters: [Parameters.apiVersion],
661
+ urlParameters: [
662
+ Parameters.$host,
663
+ Parameters.subscriptionId,
664
+ Parameters.resourceGroupName,
665
+ Parameters.accountName
666
+ ],
667
+ headerParameters: [Parameters.accept],
520
668
  serializer
521
669
  };
522
-
523
- const listNextOperationSpec: msRest.OperationSpec = {
524
- httpMethod: "GET",
525
- baseUrl: "https://management.azure.com",
526
- path: "{nextLink}",
670
+ const checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {
671
+ path:
672
+ "/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/locations/{location}/checkNameAvailability",
673
+ httpMethod: "POST",
674
+ responses: {
675
+ 200: {
676
+ bodyMapper: Mappers.NameAvailabilityInformation
677
+ },
678
+ default: {
679
+ bodyMapper: Mappers.ErrorResponse
680
+ }
681
+ },
682
+ requestBody: Parameters.parameters2,
683
+ queryParameters: [Parameters.apiVersion],
527
684
  urlParameters: [
528
- Parameters.nextPageLink
685
+ Parameters.$host,
686
+ Parameters.subscriptionId,
687
+ Parameters.location
529
688
  ],
689
+ headerParameters: [Parameters.accept, Parameters.contentType],
690
+ mediaType: "json",
691
+ serializer
692
+ };
693
+ const listNextOperationSpec: coreClient.OperationSpec = {
694
+ path: "{nextLink}",
695
+ httpMethod: "GET",
696
+ responses: {
697
+ 200: {
698
+ bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
699
+ },
700
+ default: {
701
+ bodyMapper: Mappers.ErrorResponse
702
+ }
703
+ },
530
704
  queryParameters: [
531
705
  Parameters.filter,
532
706
  Parameters.top,
@@ -536,9 +710,17 @@ const listNextOperationSpec: msRest.OperationSpec = {
536
710
  Parameters.count,
537
711
  Parameters.apiVersion
538
712
  ],
539
- headerParameters: [
540
- Parameters.acceptLanguage
713
+ urlParameters: [
714
+ Parameters.$host,
715
+ Parameters.subscriptionId,
716
+ Parameters.nextLink
541
717
  ],
718
+ headerParameters: [Parameters.accept],
719
+ serializer
720
+ };
721
+ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
722
+ path: "{nextLink}",
723
+ httpMethod: "GET",
542
724
  responses: {
543
725
  200: {
544
726
  bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
@@ -547,16 +729,6 @@ const listNextOperationSpec: msRest.OperationSpec = {
547
729
  bodyMapper: Mappers.ErrorResponse
548
730
  }
549
731
  },
550
- serializer
551
- };
552
-
553
- const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
554
- httpMethod: "GET",
555
- baseUrl: "https://management.azure.com",
556
- path: "{nextLink}",
557
- urlParameters: [
558
- Parameters.nextPageLink
559
- ],
560
732
  queryParameters: [
561
733
  Parameters.filter,
562
734
  Parameters.top,
@@ -566,16 +738,12 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
566
738
  Parameters.count,
567
739
  Parameters.apiVersion
568
740
  ],
569
- headerParameters: [
570
- Parameters.acceptLanguage
741
+ urlParameters: [
742
+ Parameters.$host,
743
+ Parameters.subscriptionId,
744
+ Parameters.resourceGroupName,
745
+ Parameters.nextLink
571
746
  ],
572
- responses: {
573
- 200: {
574
- bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
575
- },
576
- default: {
577
- bodyMapper: Mappers.ErrorResponse
578
- }
579
- },
747
+ headerParameters: [Parameters.accept],
580
748
  serializer
581
749
  };