@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.
- package/CHANGELOG.md +26 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +69 -91
- package/dist/index.js +4780 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts +22 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.d.ts.map +1 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js +29 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClient.js.map +1 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.d.ts +17 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.js +50 -0
- package/dist-esm/src/dataLakeAnalyticsAccountManagementClientContext.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1346 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +31 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +56 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1439 -1205
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +32 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +254 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +120 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +569 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/computePolicies.d.ts +76 -0
- package/dist-esm/src/operations/computePolicies.d.ts.map +1 -0
- package/dist-esm/src/operations/computePolicies.js +280 -0
- package/dist-esm/src/operations/computePolicies.js.map +1 -0
- package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts +64 -0
- package/dist-esm/src/operations/dataLakeStoreAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/dataLakeStoreAccounts.js +250 -0
- package/dist-esm/src/operations/dataLakeStoreAccounts.js.map +1 -0
- package/dist-esm/src/operations/firewallRules.d.ts +72 -0
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operations/firewallRules.js +270 -0
- package/dist-esm/src/operations/firewallRules.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/locations.d.ts +20 -0
- package/dist-esm/src/operations/locations.d.ts.map +1 -0
- package/dist-esm/src/operations/locations.js +53 -0
- package/dist-esm/src/operations/locations.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +18 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +46 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/storageAccounts.d.ts +153 -0
- package/dist-esm/src/operations/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operations/storageAccounts.js +594 -0
- package/dist-esm/src/operations/storageAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +82 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/accounts.js} +2 -1
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/computePolicies.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/computePolicies.d.ts.map +1 -0
- package/{src/models/locationsMappers.ts → dist-esm/src/operationsInterfaces/computePolicies.js} +2 -7
- package/dist-esm/src/operationsInterfaces/computePolicies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.d.ts +38 -0
- package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.d.ts.map +1 -0
- package/{esm/models/locationsMappers.js → dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.js} +2 -2
- package/dist-esm/src/operationsInterfaces/dataLakeStoreAccounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts +47 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js +9 -0
- package/dist-esm/src/operationsInterfaces/firewallRules.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/locations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/locations.js +9 -0
- package/dist-esm/src/operationsInterfaces/locations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageAccounts.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +89 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -22
- package/review/arm-datalake-analytics.api.md +935 -0
- package/rollup.config.js +181 -30
- package/src/dataLakeAnalyticsAccountManagementClient.ts +45 -44
- package/src/dataLakeAnalyticsAccountManagementClientContext.ts +46 -43
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1160 -1948
- package/src/models/mappers.ts +1446 -1179
- package/src/models/parameters.ts +183 -93
- package/src/operations/accounts.ts +540 -372
- package/src/operations/computePolicies.ts +225 -254
- package/src/operations/dataLakeStoreAccounts.ts +213 -220
- package/src/operations/firewallRules.ts +222 -255
- package/src/operations/index.ts +1 -2
- package/src/operations/locations.ts +32 -44
- package/src/operations/operations.ts +24 -38
- package/src/operations/storageAccounts.ts +562 -476
- package/src/operationsInterfaces/accounts.ts +155 -0
- package/src/operationsInterfaces/computePolicies.ts +95 -0
- package/src/operationsInterfaces/dataLakeStoreAccounts.ts +73 -0
- package/src/operationsInterfaces/firewallRules.ts +92 -0
- package/src/operationsInterfaces/index.ts +15 -0
- package/src/operationsInterfaces/locations.ts +26 -0
- package/src/operationsInterfaces/operations.ts +21 -0
- package/src/operationsInterfaces/storageAccounts.ts +147 -0
- package/tsconfig.json +3 -3
- package/types/arm-datalake-analytics.d.ts +1829 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-datalake-analytics.js +0 -4239
- package/dist/arm-datalake-analytics.js.map +0 -1
- package/dist/arm-datalake-analytics.min.js +0 -1
- package/dist/arm-datalake-analytics.min.js.map +0 -1
- package/esm/dataLakeAnalyticsAccountManagementClient.d.ts +0 -31
- package/esm/dataLakeAnalyticsAccountManagementClient.d.ts.map +0 -1
- package/esm/dataLakeAnalyticsAccountManagementClient.js +0 -44
- package/esm/dataLakeAnalyticsAccountManagementClient.js.map +0 -1
- package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts +0 -23
- package/esm/dataLakeAnalyticsAccountManagementClientContext.d.ts.map +0 -1
- package/esm/dataLakeAnalyticsAccountManagementClientContext.js +0 -61
- package/esm/dataLakeAnalyticsAccountManagementClientContext.js.map +0 -1
- package/esm/models/accountsMappers.d.ts +0 -2
- package/esm/models/accountsMappers.d.ts.map +0 -1
- package/esm/models/accountsMappers.js +0 -9
- package/esm/models/accountsMappers.js.map +0 -1
- package/esm/models/computePoliciesMappers.d.ts +0 -2
- package/esm/models/computePoliciesMappers.d.ts.map +0 -1
- package/esm/models/computePoliciesMappers.js +0 -9
- package/esm/models/computePoliciesMappers.js.map +0 -1
- package/esm/models/dataLakeStoreAccountsMappers.d.ts +0 -2
- package/esm/models/dataLakeStoreAccountsMappers.d.ts.map +0 -1
- package/esm/models/dataLakeStoreAccountsMappers.js +0 -9
- package/esm/models/dataLakeStoreAccountsMappers.js.map +0 -1
- package/esm/models/firewallRulesMappers.d.ts +0 -2
- package/esm/models/firewallRulesMappers.d.ts.map +0 -1
- package/esm/models/firewallRulesMappers.js +0 -9
- package/esm/models/firewallRulesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2162
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationsMappers.d.ts +0 -2
- package/esm/models/locationsMappers.d.ts.map +0 -1
- package/esm/models/locationsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -56
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -20
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -208
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/storageAccountsMappers.d.ts +0 -2
- package/esm/models/storageAccountsMappers.d.ts.map +0 -1
- package/esm/models/storageAccountsMappers.js +0 -9
- package/esm/models/storageAccountsMappers.js.map +0 -1
- package/esm/operations/accounts.d.ts +0 -188
- package/esm/operations/accounts.d.ts.map +0 -1
- package/esm/operations/accounts.js +0 -406
- package/esm/operations/accounts.js.map +0 -1
- package/esm/operations/computePolicies.d.ts +0 -158
- package/esm/operations/computePolicies.d.ts.map +0 -1
- package/esm/operations/computePolicies.js +0 -230
- package/esm/operations/computePolicies.js.map +0 -1
- package/esm/operations/dataLakeStoreAccounts.d.ts +0 -128
- package/esm/operations/dataLakeStoreAccounts.d.ts.map +0 -1
- package/esm/operations/dataLakeStoreAccounts.js +0 -200
- package/esm/operations/dataLakeStoreAccounts.js.map +0 -1
- package/esm/operations/firewallRules.d.ts +0 -152
- package/esm/operations/firewallRules.d.ts.map +0 -1
- package/esm/operations/firewallRules.js +0 -230
- package/esm/operations/firewallRules.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/locations.d.ts +0 -32
- package/esm/operations/locations.d.ts.map +0 -1
- package/esm/operations/locations.js +0 -56
- package/esm/operations/locations.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -28
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -50
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/storageAccounts.d.ts +0 -293
- package/esm/operations/storageAccounts.d.ts.map +0 -1
- package/esm/operations/storageAccounts.js +0 -398
- package/esm/operations/storageAccounts.js.map +0 -1
- package/src/models/accountsMappers.ts +0 -38
- package/src/models/computePoliciesMappers.ts +0 -28
- package/src/models/dataLakeStoreAccountsMappers.ts +0 -27
- package/src/models/firewallRulesMappers.ts +0 -28
- package/src/models/operationsMappers.ts +0 -21
- 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
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
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
|
-
|
|
18
|
-
|
|
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
|
-
*
|
|
23
|
-
* @param
|
|
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
|
-
*
|
|
32
|
-
* @param
|
|
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(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
51
|
-
|
|
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
|
-
*
|
|
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
|
|
70
|
-
* @param callback The callback
|
|
100
|
+
* @param options The options parameters.
|
|
71
101
|
*/
|
|
72
|
-
listByResourceGroup(
|
|
73
|
-
|
|
74
|
-
|
|
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
|
-
|
|
80
|
-
|
|
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
|
-
*
|
|
85
|
-
*
|
|
86
|
-
* @param
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
155
|
+
private _list(
|
|
156
|
+
options?: AccountsListOptionalParams
|
|
157
|
+
): Promise<AccountsListResponse> {
|
|
158
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
95
159
|
}
|
|
96
160
|
|
|
97
161
|
/**
|
|
98
|
-
* Gets
|
|
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
|
|
101
|
-
* @param [options] The optional parameters
|
|
102
|
-
* @returns Promise<Models.AccountsGetResponse>
|
|
165
|
+
* @param options The options parameters.
|
|
103
166
|
*/
|
|
104
|
-
|
|
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
|
|
182
|
+
* @param parameters Parameters supplied to create a new Data Lake Analytics account.
|
|
183
|
+
* @param options The options parameters.
|
|
109
184
|
*/
|
|
110
|
-
|
|
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
|
|
115
|
-
* @param
|
|
251
|
+
* @param parameters Parameters supplied to create a new Data Lake Analytics account.
|
|
252
|
+
* @param options The options parameters.
|
|
116
253
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
*
|
|
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
|
|
135
|
-
* @returns Promise<Models.AccountsUpdateResponse>
|
|
273
|
+
* @param options The options parameters.
|
|
136
274
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
*
|
|
144
|
-
*
|
|
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
|
|
148
|
-
* @returns Promise<msRest.RestResponse>
|
|
291
|
+
* @param options The options parameters.
|
|
149
292
|
*/
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
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
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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
|
-
*
|
|
192
|
-
*
|
|
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
|
|
196
|
-
* @param [options] The optional parameters
|
|
197
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
358
|
+
* @param options The options parameters.
|
|
198
359
|
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
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
|
-
*
|
|
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
|
|
217
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
377
|
+
* @param options The options parameters.
|
|
218
378
|
*/
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
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
|
|
236
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
438
|
+
* @param options The options parameters.
|
|
237
439
|
*/
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
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
|
-
*
|
|
251
|
-
*
|
|
252
|
-
* @param
|
|
253
|
-
* @param
|
|
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
|
-
|
|
268
|
-
|
|
459
|
+
checkNameAvailability(
|
|
460
|
+
location: string,
|
|
461
|
+
parameters: CheckNameAvailabilityParameters,
|
|
462
|
+
options?: AccountsCheckNameAvailabilityOptionalParams
|
|
463
|
+
): Promise<AccountsCheckNameAvailabilityResponse> {
|
|
269
464
|
return this.client.sendOperationRequest(
|
|
270
|
-
{
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
},
|
|
274
|
-
listNextOperationSpec,
|
|
275
|
-
callback) as Promise<Models.AccountsListNextResponse>;
|
|
465
|
+
{ location, parameters, options },
|
|
466
|
+
checkNameAvailabilityOperationSpec
|
|
467
|
+
);
|
|
276
468
|
}
|
|
277
469
|
|
|
278
470
|
/**
|
|
279
|
-
*
|
|
280
|
-
*
|
|
281
|
-
* @param
|
|
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
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
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
|
-
*
|
|
293
|
-
* @param
|
|
294
|
-
* @param
|
|
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
|
-
|
|
297
|
-
|
|
491
|
+
private _listByResourceGroupNext(
|
|
492
|
+
resourceGroupName: string,
|
|
493
|
+
nextLink: string,
|
|
494
|
+
options?: AccountsListByResourceGroupNextOptionalParams
|
|
495
|
+
): Promise<AccountsListByResourceGroupNextResponse> {
|
|
298
496
|
return this.client.sendOperationRequest(
|
|
299
|
-
{
|
|
300
|
-
|
|
301
|
-
|
|
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 =
|
|
310
|
-
|
|
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
|
-
|
|
356
|
-
|
|
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
|
-
|
|
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.
|
|
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
|
-
|
|
405
|
-
Parameters
|
|
551
|
+
urlParameters: [
|
|
552
|
+
Parameters.$host,
|
|
553
|
+
Parameters.subscriptionId,
|
|
554
|
+
Parameters.resourceGroupName
|
|
406
555
|
],
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
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
|
-
|
|
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
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
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
|
-
|
|
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
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
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
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
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
|
|
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
|
-
|
|
540
|
-
Parameters
|
|
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
|
-
|
|
570
|
-
Parameters
|
|
741
|
+
urlParameters: [
|
|
742
|
+
Parameters.$host,
|
|
743
|
+
Parameters.subscriptionId,
|
|
744
|
+
Parameters.resourceGroupName,
|
|
745
|
+
Parameters.nextLink
|
|
571
746
|
],
|
|
572
|
-
|
|
573
|
-
200: {
|
|
574
|
-
bodyMapper: Mappers.DataLakeAnalyticsAccountListResult
|
|
575
|
-
},
|
|
576
|
-
default: {
|
|
577
|
-
bodyMapper: Mappers.ErrorResponse
|
|
578
|
-
}
|
|
579
|
-
},
|
|
747
|
+
headerParameters: [Parameters.accept],
|
|
580
748
|
serializer
|
|
581
749
|
};
|