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

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 (57) hide show
  1. package/CHANGELOG.md +2 -2
  2. package/README.md +1 -1
  3. package/dist/index.js +237 -75
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts +2 -0
  8. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts.map +1 -1
  9. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js +49 -18
  10. package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js.map +1 -1
  11. package/dist-esm/src/index.d.ts +1 -0
  12. package/dist-esm/src/index.d.ts.map +1 -1
  13. package/dist-esm/src/index.js +1 -0
  14. package/dist-esm/src/index.js.map +1 -1
  15. package/dist-esm/src/models/index.d.ts +31 -20
  16. package/dist-esm/src/models/index.d.ts.map +1 -1
  17. package/dist-esm/src/models/index.js +11 -0
  18. package/dist-esm/src/models/index.js.map +1 -1
  19. package/dist-esm/src/operations/accounts.d.ts.map +1 -1
  20. package/dist-esm/src/operations/accounts.js +37 -14
  21. package/dist-esm/src/operations/accounts.js.map +1 -1
  22. package/dist-esm/src/operations/computePolicies.d.ts.map +1 -1
  23. package/dist-esm/src/operations/computePolicies.js +19 -7
  24. package/dist-esm/src/operations/computePolicies.js.map +1 -1
  25. package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts.map +1 -1
  26. package/dist-esm/src/operations/dataLakeStoreAccounts.js +19 -7
  27. package/dist-esm/src/operations/dataLakeStoreAccounts.js.map +1 -1
  28. package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
  29. package/dist-esm/src/operations/firewallRules.js +19 -7
  30. package/dist-esm/src/operations/firewallRules.js.map +1 -1
  31. package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -1
  32. package/dist-esm/src/operations/storageAccounts.js +55 -21
  33. package/dist-esm/src/operations/storageAccounts.js.map +1 -1
  34. package/dist-esm/src/pagingHelper.d.ts +13 -0
  35. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  36. package/dist-esm/src/pagingHelper.js +32 -0
  37. package/dist-esm/src/pagingHelper.js.map +1 -0
  38. package/dist-esm/test/{sampleTest.d.ts → datalake-analytics_examples.spec.d.ts} +1 -1
  39. package/dist-esm/test/datalake-analytics_examples.spec.d.ts.map +1 -0
  40. package/dist-esm/test/datalake-analytics_examples.spec.js +55 -0
  41. package/dist-esm/test/datalake-analytics_examples.spec.js.map +1 -0
  42. package/package.json +14 -10
  43. package/review/arm-datalake-analytics.api.md +68 -76
  44. package/src/dataLakeAnalyticsAccountManagementClient.ts +60 -20
  45. package/src/index.ts +1 -0
  46. package/src/models/index.ts +32 -20
  47. package/src/operations/accounts.ts +45 -16
  48. package/src/operations/computePolicies.ts +26 -12
  49. package/src/operations/dataLakeStoreAccounts.ts +26 -12
  50. package/src/operations/firewallRules.ts +26 -12
  51. package/src/operations/storageAccounts.ts +80 -40
  52. package/src/pagingHelper.ts +39 -0
  53. package/types/arm-datalake-analytics.d.ts +42 -20
  54. package/types/tsdoc-metadata.json +1 -1
  55. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  56. package/dist-esm/test/sampleTest.js +0 -89
  57. package/dist-esm/test/sampleTest.js.map +0 -1
@@ -6,7 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
9
+ import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
10
+ import { setContinuationToken } from "../pagingHelper";
10
11
  import { StorageAccounts } from "../operationsInterfaces";
11
12
  import * as coreClient from "@azure/core-client";
12
13
  import * as Mappers from "../models/mappers";
@@ -16,23 +17,23 @@ import {
16
17
  StorageAccountInformation,
17
18
  StorageAccountsListByAccountNextOptionalParams,
18
19
  StorageAccountsListByAccountOptionalParams,
20
+ StorageAccountsListByAccountResponse,
19
21
  StorageContainer,
20
22
  StorageAccountsListStorageContainersNextOptionalParams,
21
23
  StorageAccountsListStorageContainersOptionalParams,
24
+ StorageAccountsListStorageContainersResponse,
22
25
  SasTokenInformation,
23
26
  StorageAccountsListSasTokensNextOptionalParams,
24
27
  StorageAccountsListSasTokensOptionalParams,
25
- StorageAccountsListByAccountResponse,
28
+ StorageAccountsListSasTokensResponse,
26
29
  AddStorageAccountParameters,
27
30
  StorageAccountsAddOptionalParams,
28
31
  StorageAccountsGetOptionalParams,
29
32
  StorageAccountsGetResponse,
30
33
  StorageAccountsUpdateOptionalParams,
31
34
  StorageAccountsDeleteOptionalParams,
32
- StorageAccountsListStorageContainersResponse,
33
35
  StorageAccountsGetStorageContainerOptionalParams,
34
36
  StorageAccountsGetStorageContainerResponse,
35
- StorageAccountsListSasTokensResponse,
36
37
  StorageAccountsListByAccountNextResponse,
37
38
  StorageAccountsListStorageContainersNextResponse,
38
39
  StorageAccountsListSasTokensNextResponse
@@ -75,11 +76,15 @@ export class StorageAccountsImpl implements StorageAccounts {
75
76
  [Symbol.asyncIterator]() {
76
77
  return this;
77
78
  },
78
- byPage: () => {
79
+ byPage: (settings?: PageSettings) => {
80
+ if (settings?.maxPageSize) {
81
+ throw new Error("maxPageSize is not supported by this operation.");
82
+ }
79
83
  return this.listByAccountPagingPage(
80
84
  resourceGroupName,
81
85
  accountName,
82
- options
86
+ options,
87
+ settings
83
88
  );
84
89
  }
85
90
  };
@@ -88,15 +93,22 @@ export class StorageAccountsImpl implements StorageAccounts {
88
93
  private async *listByAccountPagingPage(
89
94
  resourceGroupName: string,
90
95
  accountName: string,
91
- options?: StorageAccountsListByAccountOptionalParams
96
+ options?: StorageAccountsListByAccountOptionalParams,
97
+ settings?: PageSettings
92
98
  ): AsyncIterableIterator<StorageAccountInformation[]> {
93
- let result = await this._listByAccount(
94
- resourceGroupName,
95
- accountName,
96
- options
97
- );
98
- yield result.value || [];
99
- let continuationToken = result.nextLink;
99
+ let result: StorageAccountsListByAccountResponse;
100
+ let continuationToken = settings?.continuationToken;
101
+ if (!continuationToken) {
102
+ result = await this._listByAccount(
103
+ resourceGroupName,
104
+ accountName,
105
+ options
106
+ );
107
+ let page = result.value || [];
108
+ continuationToken = result.nextLink;
109
+ setContinuationToken(page, continuationToken);
110
+ yield page;
111
+ }
100
112
  while (continuationToken) {
101
113
  result = await this._listByAccountNext(
102
114
  resourceGroupName,
@@ -105,7 +117,9 @@ export class StorageAccountsImpl implements StorageAccounts {
105
117
  options
106
118
  );
107
119
  continuationToken = result.nextLink;
108
- yield result.value || [];
120
+ let page = result.value || [];
121
+ setContinuationToken(page, continuationToken);
122
+ yield page;
109
123
  }
110
124
  }
111
125
 
@@ -150,12 +164,16 @@ export class StorageAccountsImpl implements StorageAccounts {
150
164
  [Symbol.asyncIterator]() {
151
165
  return this;
152
166
  },
153
- byPage: () => {
167
+ byPage: (settings?: PageSettings) => {
168
+ if (settings?.maxPageSize) {
169
+ throw new Error("maxPageSize is not supported by this operation.");
170
+ }
154
171
  return this.listStorageContainersPagingPage(
155
172
  resourceGroupName,
156
173
  accountName,
157
174
  storageAccountName,
158
- options
175
+ options,
176
+ settings
159
177
  );
160
178
  }
161
179
  };
@@ -165,16 +183,23 @@ export class StorageAccountsImpl implements StorageAccounts {
165
183
  resourceGroupName: string,
166
184
  accountName: string,
167
185
  storageAccountName: string,
168
- options?: StorageAccountsListStorageContainersOptionalParams
186
+ options?: StorageAccountsListStorageContainersOptionalParams,
187
+ settings?: PageSettings
169
188
  ): AsyncIterableIterator<StorageContainer[]> {
170
- let result = await this._listStorageContainers(
171
- resourceGroupName,
172
- accountName,
173
- storageAccountName,
174
- options
175
- );
176
- yield result.value || [];
177
- let continuationToken = result.nextLink;
189
+ let result: StorageAccountsListStorageContainersResponse;
190
+ let continuationToken = settings?.continuationToken;
191
+ if (!continuationToken) {
192
+ result = await this._listStorageContainers(
193
+ resourceGroupName,
194
+ accountName,
195
+ storageAccountName,
196
+ options
197
+ );
198
+ let page = result.value || [];
199
+ continuationToken = result.nextLink;
200
+ setContinuationToken(page, continuationToken);
201
+ yield page;
202
+ }
178
203
  while (continuationToken) {
179
204
  result = await this._listStorageContainersNext(
180
205
  resourceGroupName,
@@ -184,7 +209,9 @@ export class StorageAccountsImpl implements StorageAccounts {
184
209
  options
185
210
  );
186
211
  continuationToken = result.nextLink;
187
- yield result.value || [];
212
+ let page = result.value || [];
213
+ setContinuationToken(page, continuationToken);
214
+ yield page;
188
215
  }
189
216
  }
190
217
 
@@ -236,13 +263,17 @@ export class StorageAccountsImpl implements StorageAccounts {
236
263
  [Symbol.asyncIterator]() {
237
264
  return this;
238
265
  },
239
- byPage: () => {
266
+ byPage: (settings?: PageSettings) => {
267
+ if (settings?.maxPageSize) {
268
+ throw new Error("maxPageSize is not supported by this operation.");
269
+ }
240
270
  return this.listSasTokensPagingPage(
241
271
  resourceGroupName,
242
272
  accountName,
243
273
  storageAccountName,
244
274
  containerName,
245
- options
275
+ options,
276
+ settings
246
277
  );
247
278
  }
248
279
  };
@@ -253,17 +284,24 @@ export class StorageAccountsImpl implements StorageAccounts {
253
284
  accountName: string,
254
285
  storageAccountName: string,
255
286
  containerName: string,
256
- options?: StorageAccountsListSasTokensOptionalParams
287
+ options?: StorageAccountsListSasTokensOptionalParams,
288
+ settings?: PageSettings
257
289
  ): AsyncIterableIterator<SasTokenInformation[]> {
258
- let result = await this._listSasTokens(
259
- resourceGroupName,
260
- accountName,
261
- storageAccountName,
262
- containerName,
263
- options
264
- );
265
- yield result.value || [];
266
- let continuationToken = result.nextLink;
290
+ let result: StorageAccountsListSasTokensResponse;
291
+ let continuationToken = settings?.continuationToken;
292
+ if (!continuationToken) {
293
+ result = await this._listSasTokens(
294
+ resourceGroupName,
295
+ accountName,
296
+ storageAccountName,
297
+ containerName,
298
+ options
299
+ );
300
+ let page = result.value || [];
301
+ continuationToken = result.nextLink;
302
+ setContinuationToken(page, continuationToken);
303
+ yield page;
304
+ }
267
305
  while (continuationToken) {
268
306
  result = await this._listSasTokensNext(
269
307
  resourceGroupName,
@@ -274,7 +312,9 @@ export class StorageAccountsImpl implements StorageAccounts {
274
312
  options
275
313
  );
276
314
  continuationToken = result.nextLink;
277
- yield result.value || [];
315
+ let page = result.value || [];
316
+ setContinuationToken(page, continuationToken);
317
+ yield page;
278
318
  }
279
319
  }
280
320
 
@@ -0,0 +1,39 @@
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
+
9
+ export interface PageInfo {
10
+ continuationToken?: string;
11
+ }
12
+
13
+ const pageMap = new WeakMap<object, PageInfo>();
14
+
15
+ /**
16
+ * Given a result page from a pageable operation, returns a
17
+ * continuation token that can be used to begin paging from
18
+ * that point later.
19
+ * @param page A result object from calling .byPage() on a paged operation.
20
+ * @returns The continuation token that can be passed into byPage().
21
+ */
22
+ export function getContinuationToken(page: unknown): string | undefined {
23
+ if (typeof page !== "object" || page === null) {
24
+ return undefined;
25
+ }
26
+ return pageMap.get(page)?.continuationToken;
27
+ }
28
+
29
+ export function setContinuationToken(
30
+ page: unknown,
31
+ continuationToken: string | undefined
32
+ ): void {
33
+ if (typeof page !== "object" || page === null || !continuationToken) {
34
+ return;
35
+ }
36
+ const pageInfo = pageMap.get(page) ?? {};
37
+ pageInfo.continuationToken = continuationToken;
38
+ pageMap.set(page, pageInfo);
39
+ }
@@ -375,7 +375,7 @@ export declare interface ComputePoliciesUpdateOptionalParams extends coreClient.
375
375
  export declare type ComputePoliciesUpdateResponse = ComputePolicy;
376
376
 
377
377
  /** Data Lake Analytics compute policy information. */
378
- export declare type ComputePolicy = SubResource & {
378
+ export declare interface ComputePolicy extends SubResource {
379
379
  /**
380
380
  * The AAD object identifier for the entity to create a policy for.
381
381
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -396,7 +396,7 @@ export declare type ComputePolicy = SubResource & {
396
396
  * NOTE: This property will not be serialized. It can only be populated by the server.
397
397
  */
398
398
  readonly minPriorityPerJob?: number;
399
- };
399
+ }
400
400
 
401
401
  /** The list of compute policies in the account. */
402
402
  export declare interface ComputePolicyListResult {
@@ -493,7 +493,7 @@ export declare interface CreateOrUpdateFirewallRuleParameters {
493
493
  }
494
494
 
495
495
  /** A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics account. */
496
- export declare type DataLakeAnalyticsAccount = Resource & {
496
+ export declare interface DataLakeAnalyticsAccount extends Resource {
497
497
  /**
498
498
  * The unique identifier associated with this Data Lake Analytics account.
499
499
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -620,10 +620,10 @@ export declare type DataLakeAnalyticsAccount = Resource & {
620
620
  * NOTE: This property will not be serialized. It can only be populated by the server.
621
621
  */
622
622
  readonly debugDataAccessLevel?: DebugDataAccessLevel;
623
- };
623
+ }
624
624
 
625
625
  /** A Data Lake Analytics account object, containing all information associated with the named Data Lake Analytics account. */
626
- export declare type DataLakeAnalyticsAccountBasic = Resource & {
626
+ export declare interface DataLakeAnalyticsAccountBasic extends Resource {
627
627
  /**
628
628
  * The unique identifier associated with this Data Lake Analytics account.
629
629
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -654,7 +654,7 @@ export declare type DataLakeAnalyticsAccountBasic = Resource & {
654
654
  * NOTE: This property will not be serialized. It can only be populated by the server.
655
655
  */
656
656
  readonly endpoint?: string;
657
- };
657
+ }
658
658
 
659
659
  /** Data Lake Analytics account list information. */
660
660
  export declare interface DataLakeAnalyticsAccountListResult {
@@ -687,6 +687,8 @@ export declare class DataLakeAnalyticsAccountManagementClient extends coreClient
687
687
  * @param options The parameter options
688
688
  */
689
689
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: DataLakeAnalyticsAccountManagementClientOptionalParams);
690
+ /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
691
+ private addCustomApiVersionPolicy;
690
692
  accounts: Accounts;
691
693
  dataLakeStoreAccounts: DataLakeStoreAccounts;
692
694
  storageAccounts: StorageAccounts;
@@ -707,7 +709,7 @@ export declare interface DataLakeAnalyticsAccountManagementClientOptionalParams
707
709
  }
708
710
 
709
711
  /** The account specific properties that are associated with an underlying Data Lake Analytics account. Returned only when retrieving a specific account. */
710
- export declare type DataLakeAnalyticsAccountProperties = DataLakeAnalyticsAccountPropertiesBasic & {
712
+ export declare interface DataLakeAnalyticsAccountProperties extends DataLakeAnalyticsAccountPropertiesBasic {
711
713
  /**
712
714
  * The type of the default Data Lake Store account associated with this account.
713
715
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -804,7 +806,7 @@ export declare type DataLakeAnalyticsAccountProperties = DataLakeAnalyticsAccoun
804
806
  * NOTE: This property will not be serialized. It can only be populated by the server.
805
807
  */
806
808
  readonly debugDataAccessLevel?: DebugDataAccessLevel;
807
- };
809
+ }
808
810
 
809
811
  /** The basic account specific properties that are associated with an underlying Data Lake Analytics account. */
810
812
  export declare interface DataLakeAnalyticsAccountPropertiesBasic {
@@ -847,13 +849,13 @@ export declare type DataLakeAnalyticsAccountState = "Active" | "Suspended";
847
849
  export declare type DataLakeAnalyticsAccountStatus = "Failed" | "Creating" | "Running" | "Succeeded" | "Patching" | "Suspending" | "Resuming" | "Deleting" | "Deleted" | "Undeleting" | "Canceled";
848
850
 
849
851
  /** Data Lake Store account information. */
850
- export declare type DataLakeStoreAccountInformation = SubResource & {
852
+ export declare interface DataLakeStoreAccountInformation extends SubResource {
851
853
  /**
852
854
  * The optional suffix for the Data Lake Store account.
853
855
  * NOTE: This property will not be serialized. It can only be populated by the server.
854
856
  */
855
857
  readonly suffix?: string;
856
- };
858
+ }
857
859
 
858
860
  /** Data Lake Store account list information. */
859
861
  export declare interface DataLakeStoreAccountInformationListResult {
@@ -1016,7 +1018,7 @@ export declare interface ErrorResponse {
1016
1018
  export declare type FirewallAllowAzureIpsState = "Enabled" | "Disabled";
1017
1019
 
1018
1020
  /** Data Lake Analytics firewall rule information. */
1019
- export declare type FirewallRule = SubResource & {
1021
+ export declare interface FirewallRule extends SubResource {
1020
1022
  /**
1021
1023
  * The start IP address for the firewall rule. This can be either ipv4 or ipv6. Start and End should be in the same protocol.
1022
1024
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1027,7 +1029,7 @@ export declare type FirewallRule = SubResource & {
1027
1029
  * NOTE: This property will not be serialized. It can only be populated by the server.
1028
1030
  */
1029
1031
  readonly endIpAddress?: string;
1030
- };
1032
+ }
1031
1033
 
1032
1034
  /** Data Lake Analytics firewall rule list information. */
1033
1035
  export declare interface FirewallRuleListResult {
@@ -1132,7 +1134,16 @@ export declare type FirewallRulesUpdateResponse = FirewallRule;
1132
1134
  /** Defines values for FirewallState. */
1133
1135
  export declare type FirewallState = "Enabled" | "Disabled";
1134
1136
 
1135
- export declare type HiveMetastore = SubResource & {
1137
+ /**
1138
+ * Given a result page from a pageable operation, returns a
1139
+ * continuation token that can be used to begin paging from
1140
+ * that point later.
1141
+ * @param page A result object from calling .byPage() on a paged operation.
1142
+ * @returns The continuation token that can be passed into byPage().
1143
+ */
1144
+ export declare function getContinuationToken(page: unknown): string | undefined;
1145
+
1146
+ export declare interface HiveMetastore extends SubResource {
1136
1147
  /**
1137
1148
  * The serverUri for the Hive MetaStore
1138
1149
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1163,7 +1174,7 @@ export declare type HiveMetastore = SubResource & {
1163
1174
  * NOTE: This property will not be serialized. It can only be populated by the server.
1164
1175
  */
1165
1176
  readonly nestedResourceProvisioningState?: NestedResourceProvisioningState;
1166
- };
1177
+ }
1167
1178
 
1168
1179
  /** Data Lake Analytics HiveMetastore list information. */
1169
1180
  export declare interface HiveMetastoreListResult {
@@ -1181,24 +1192,35 @@ export declare interface HiveMetastoreListResult {
1181
1192
 
1182
1193
  /** Known values of {@link AADObjectType} that the service accepts. */
1183
1194
  export declare enum KnownAADObjectType {
1195
+ /** User */
1184
1196
  User = "User",
1197
+ /** Group */
1185
1198
  Group = "Group",
1199
+ /** ServicePrincipal */
1186
1200
  ServicePrincipal = "ServicePrincipal"
1187
1201
  }
1188
1202
 
1189
1203
  /** Known values of {@link OperationOrigin} that the service accepts. */
1190
1204
  export declare enum KnownOperationOrigin {
1205
+ /** User */
1191
1206
  User = "user",
1207
+ /** System */
1192
1208
  System = "system",
1209
+ /** UserSystem */
1193
1210
  UserSystem = "user,system"
1194
1211
  }
1195
1212
 
1196
1213
  /** Known values of {@link SubscriptionState} that the service accepts. */
1197
1214
  export declare enum KnownSubscriptionState {
1215
+ /** Registered */
1198
1216
  Registered = "Registered",
1217
+ /** Suspended */
1199
1218
  Suspended = "Suspended",
1219
+ /** Deleted */
1200
1220
  Deleted = "Deleted",
1221
+ /** Unregistered */
1201
1222
  Unregistered = "Unregistered",
1223
+ /** Warned */
1202
1224
  Warned = "Warned"
1203
1225
  }
1204
1226
 
@@ -1429,13 +1451,13 @@ export declare interface SasTokenInformationListResult {
1429
1451
  }
1430
1452
 
1431
1453
  /** Azure Storage account information. */
1432
- export declare type StorageAccountInformation = SubResource & {
1454
+ export declare interface StorageAccountInformation extends SubResource {
1433
1455
  /**
1434
1456
  * The optional suffix for the storage account.
1435
1457
  * NOTE: This property will not be serialized. It can only be populated by the server.
1436
1458
  */
1437
1459
  readonly suffix?: string;
1438
- };
1460
+ }
1439
1461
 
1440
1462
  /** Azure Storage account list information. */
1441
1463
  export declare interface StorageAccountInformationListResult {
@@ -1625,13 +1647,13 @@ export declare interface StorageAccountsUpdateOptionalParams extends coreClient.
1625
1647
  }
1626
1648
 
1627
1649
  /** Azure Storage blob container information. */
1628
- export declare type StorageContainer = SubResource & {
1650
+ export declare interface StorageContainer extends SubResource {
1629
1651
  /**
1630
1652
  * The last modified time of the blob container.
1631
1653
  * NOTE: This property will not be serialized. It can only be populated by the server.
1632
1654
  */
1633
1655
  readonly lastModifiedTime?: Date;
1634
- };
1656
+ }
1635
1657
 
1636
1658
  /** The list of blob containers associated with the storage account attached to the Data Lake Analytics account. */
1637
1659
  export declare interface StorageContainerListResult {
@@ -1785,7 +1807,7 @@ export declare interface UpdateStorageAccountWithAccountParameters {
1785
1807
  }
1786
1808
 
1787
1809
  /** Data Lake Analytics VirtualNetwork Rule information. */
1788
- export declare type VirtualNetworkRule = SubResource & {
1810
+ export declare interface VirtualNetworkRule extends SubResource {
1789
1811
  /**
1790
1812
  * The resource identifier for the subnet
1791
1813
  * NOTE: This property will not be serialized. It can only be populated by the server.
@@ -1796,7 +1818,7 @@ export declare type VirtualNetworkRule = SubResource & {
1796
1818
  * NOTE: This property will not be serialized. It can only be populated by the server.
1797
1819
  */
1798
1820
  readonly virtualNetworkRuleState?: VirtualNetworkRuleState;
1799
- };
1821
+ }
1800
1822
 
1801
1823
  /** Data Lake Analytics VirtualNetwork rule list information. */
1802
1824
  export declare interface VirtualNetworkRuleListResult {
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.22.1"
8
+ "packageVersion": "7.33.6"
9
9
  }
10
10
  ]
11
11
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAqCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
@@ -1,89 +0,0 @@
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
- import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
10
- import { ClientSecretCredential } from "@azure/identity";
11
- import { DataLakeAnalyticsAccountManagementClient } from "../src/dataLakeAnalyticsAccountManagementClient";
12
- const recorderEnvSetup = {
13
- replaceableVariables: {
14
- AZURE_CLIENT_ID: "azure_client_id",
15
- AZURE_CLIENT_SECRET: "azure_client_secret",
16
- AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
17
- SUBSCRIPTION_ID: "azure_subscription_id"
18
- },
19
- customizationsOnRecordings: [
20
- (recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
21
- ],
22
- queryParametersToSkip: []
23
- };
24
- export const testPollingOptions = {
25
- updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
26
- };
27
- describe("DatalakeAnalytics test", () => {
28
- let recorder;
29
- let subscriptionId;
30
- let client;
31
- let location;
32
- let resourceGroup;
33
- let accountName;
34
- beforeEach(function () {
35
- return __awaiter(this, void 0, void 0, function* () {
36
- recorder = record(this, recorderEnvSetup);
37
- subscriptionId = env.SUBSCRIPTION_ID;
38
- // This is an example of how the environment variables are used
39
- const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
40
- client = new DataLakeAnalyticsAccountManagementClient(credential, subscriptionId);
41
- location = "eastus2";
42
- resourceGroup = "myjstest";
43
- accountName = "myaccountxxx";
44
- });
45
- });
46
- afterEach(function () {
47
- return __awaiter(this, void 0, void 0, function* () {
48
- yield recorder.stop();
49
- });
50
- });
51
- it("accounts create test", function () {
52
- return __awaiter(this, void 0, void 0, function* () {
53
- const res = yield client.accounts.beginCreateAndWait(resourceGroup, accountName, {
54
- location: location,
55
- tags: {
56
- key1: "value1"
57
- },
58
- defaultDataLakeStoreAccount: "mygen1",
59
- dataLakeStoreAccounts: [
60
- {
61
- name: "mygen1"
62
- }
63
- ],
64
- firewallState: "Enabled",
65
- firewallAllowAzureIps: "Enabled",
66
- newTier: "Consumption",
67
- maxJobCount: 3,
68
- maxDegreeOfParallelism: 30,
69
- maxDegreeOfParallelismPerJob: 1,
70
- minPriorityPerJob: 1,
71
- queryStoreRetention: 30
72
- }, testPollingOptions);
73
- console.log(res);
74
- });
75
- });
76
- it("accounts get test", function () {
77
- return __awaiter(this, void 0, void 0, function* () {
78
- const res = yield client.accounts.get(resourceGroup, accountName);
79
- console.log(res);
80
- });
81
- });
82
- it("accounts delete test", function () {
83
- return __awaiter(this, void 0, void 0, function* () {
84
- const res = yield client.accounts.beginDeleteAndWait(resourceGroup, accountName, testPollingOptions);
85
- console.log(res);
86
- });
87
- });
88
- });
89
- //# sourceMappingURL=sampleTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"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"}