@azure/arm-graphservices 1.0.0-beta.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +1313 -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/samples-dev/accountCreateAndUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountCreateAndUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountCreateAndUpdateSample.js +43 -0
- package/dist-esm/samples-dev/accountCreateAndUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountDeleteSample.js +39 -0
- package/dist-esm/samples-dev/accountDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/accountGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountGetSample.js +39 -0
- package/dist-esm/samples-dev/accountGetSample.js.map +1 -0
- package/dist-esm/samples-dev/accountUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountUpdateSample.js +42 -0
- package/dist-esm/samples-dev/accountUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js +52 -0
- package/dist-esm/samples-dev/accountsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js +51 -0
- package/dist-esm/samples-dev/accountsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/operationListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationListSample.js +51 -0
- package/dist-esm/samples-dev/operationListSample.js.map +1 -0
- package/dist-esm/src/graphServices.d.ts +22 -0
- package/dist-esm/src/graphServices.d.ts.map +1 -0
- package/dist-esm/src/graphServices.js +102 -0
- package/dist-esm/src/graphServices.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 +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +320 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +46 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +15 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +384 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +12 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +109 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/account.d.ts +52 -0
- package/dist-esm/src/operations/account.d.ts.map +1 -0
- package/dist-esm/src/operations/account.js +208 -0
- package/dist-esm/src/operations/account.js.map +1 -0
- package/dist-esm/src/operations/accounts.d.ts +53 -0
- package/dist-esm/src/operations/accounts.d.ts.map +1 -0
- package/dist-esm/src/operations/accounts.js +252 -0
- package/dist-esm/src/operations/accounts.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +4 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +11 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operationOperations.d.ts +32 -0
- package/dist-esm/src/operations/operationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/operationOperations.js +131 -0
- package/dist-esm/src/operations/operationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/account.d.ts +44 -0
- package/dist-esm/src/operationsInterfaces/account.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/account.js +9 -0
- package/dist-esm/src/operationsInterfaces/account.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts +17 -0
- package/dist-esm/src/operationsInterfaces/accounts.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/accounts.js +9 -0
- package/dist-esm/src/operationsInterfaces/accounts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +4 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +11 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationOperations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operationOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operationOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operationOperations.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/test/graphservices_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/graphservices_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/graphservices_operations_test.spec.js +55 -0
- package/dist-esm/test/graphservices_operations_test.spec.js.map +1 -0
- package/package.json +123 -0
- package/review/arm-graphservices.api.md +262 -0
- package/rollup.config.js +122 -0
- package/src/graphServices.ts +148 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +364 -0
- package/src/models/mappers.ts +408 -0
- package/src/models/parameters.ts +127 -0
- package/src/operations/account.ts +295 -0
- package/src/operations/accounts.ts +303 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/operationOperations.ts +149 -0
- package/src/operationsInterfaces/account.ts +90 -0
- package/src/operationsInterfaces/accounts.ts +35 -0
- package/src/operationsInterfaces/index.ts +11 -0
- package/src/operationsInterfaces/operationOperations.ts +22 -0
- package/src/pagingHelper.ts +39 -0
- package/tsconfig.json +33 -0
- package/types/arm-graphservices.d.ts +459 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,208 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { createHttpPoller } from "@azure/core-lro";
|
|
13
|
+
import { createLroSpec } from "../lroImpl";
|
|
14
|
+
/** Class containing Account operations. */
|
|
15
|
+
export class AccountImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Account class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns account resource for a given name.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param resourceName The name of the resource.
|
|
27
|
+
* @param options The options parameters.
|
|
28
|
+
*/
|
|
29
|
+
get(resourceGroupName, resourceName, options) {
|
|
30
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, getOperationSpec);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create or update account resource.
|
|
34
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
35
|
+
* @param resourceName The name of the resource.
|
|
36
|
+
* @param accountResource Account details.
|
|
37
|
+
* @param options The options parameters.
|
|
38
|
+
*/
|
|
39
|
+
beginCreateAndUpdate(resourceGroupName, resourceName, accountResource, options) {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
42
|
+
return this.client.sendOperationRequest(args, spec);
|
|
43
|
+
});
|
|
44
|
+
const sendOperationFn = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
45
|
+
var _a;
|
|
46
|
+
let currentRawResponse = undefined;
|
|
47
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
48
|
+
const callback = (rawResponse, flatResponse) => {
|
|
49
|
+
currentRawResponse = rawResponse;
|
|
50
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
51
|
+
};
|
|
52
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
53
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
54
|
+
return {
|
|
55
|
+
flatResponse,
|
|
56
|
+
rawResponse: {
|
|
57
|
+
statusCode: currentRawResponse.status,
|
|
58
|
+
body: currentRawResponse.parsedBody,
|
|
59
|
+
headers: currentRawResponse.headers.toJSON()
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
});
|
|
63
|
+
const lro = createLroSpec({
|
|
64
|
+
sendOperationFn,
|
|
65
|
+
args: { resourceGroupName, resourceName, accountResource, options },
|
|
66
|
+
spec: createAndUpdateOperationSpec
|
|
67
|
+
});
|
|
68
|
+
const poller = yield createHttpPoller(lro, {
|
|
69
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
70
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
71
|
+
resourceLocationConfig: "azure-async-operation"
|
|
72
|
+
});
|
|
73
|
+
yield poller.poll();
|
|
74
|
+
return poller;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Create or update account resource.
|
|
79
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
80
|
+
* @param resourceName The name of the resource.
|
|
81
|
+
* @param accountResource Account details.
|
|
82
|
+
* @param options The options parameters.
|
|
83
|
+
*/
|
|
84
|
+
beginCreateAndUpdateAndWait(resourceGroupName, resourceName, accountResource, options) {
|
|
85
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
86
|
+
const poller = yield this.beginCreateAndUpdate(resourceGroupName, resourceName, accountResource, options);
|
|
87
|
+
return poller.pollUntilDone();
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Update account details.
|
|
92
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
93
|
+
* @param resourceName The name of the resource.
|
|
94
|
+
* @param accountResource Account patch details.
|
|
95
|
+
* @param options The options parameters.
|
|
96
|
+
*/
|
|
97
|
+
update(resourceGroupName, resourceName, accountResource, options) {
|
|
98
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, accountResource, options }, updateOperationSpec);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Deletes a account resource.
|
|
102
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
103
|
+
* @param resourceName The name of the resource.
|
|
104
|
+
* @param options The options parameters.
|
|
105
|
+
*/
|
|
106
|
+
delete(resourceGroupName, resourceName, options) {
|
|
107
|
+
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, deleteOperationSpec);
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
// Operation Specifications
|
|
111
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
112
|
+
const getOperationSpec = {
|
|
113
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}",
|
|
114
|
+
httpMethod: "GET",
|
|
115
|
+
responses: {
|
|
116
|
+
200: {
|
|
117
|
+
bodyMapper: Mappers.AccountResource
|
|
118
|
+
},
|
|
119
|
+
default: {
|
|
120
|
+
bodyMapper: Mappers.ErrorResponse
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
queryParameters: [Parameters.apiVersion],
|
|
124
|
+
urlParameters: [
|
|
125
|
+
Parameters.$host,
|
|
126
|
+
Parameters.subscriptionId,
|
|
127
|
+
Parameters.resourceGroupName,
|
|
128
|
+
Parameters.resourceName
|
|
129
|
+
],
|
|
130
|
+
headerParameters: [Parameters.accept],
|
|
131
|
+
serializer
|
|
132
|
+
};
|
|
133
|
+
const createAndUpdateOperationSpec = {
|
|
134
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}",
|
|
135
|
+
httpMethod: "PUT",
|
|
136
|
+
responses: {
|
|
137
|
+
200: {
|
|
138
|
+
bodyMapper: Mappers.AccountResource
|
|
139
|
+
},
|
|
140
|
+
201: {
|
|
141
|
+
bodyMapper: Mappers.AccountResource
|
|
142
|
+
},
|
|
143
|
+
202: {
|
|
144
|
+
bodyMapper: Mappers.AccountResource
|
|
145
|
+
},
|
|
146
|
+
204: {
|
|
147
|
+
bodyMapper: Mappers.AccountResource
|
|
148
|
+
},
|
|
149
|
+
default: {
|
|
150
|
+
bodyMapper: Mappers.ErrorResponse
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
requestBody: Parameters.accountResource,
|
|
154
|
+
queryParameters: [Parameters.apiVersion],
|
|
155
|
+
urlParameters: [
|
|
156
|
+
Parameters.$host,
|
|
157
|
+
Parameters.subscriptionId,
|
|
158
|
+
Parameters.resourceGroupName,
|
|
159
|
+
Parameters.resourceName
|
|
160
|
+
],
|
|
161
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
162
|
+
mediaType: "json",
|
|
163
|
+
serializer
|
|
164
|
+
};
|
|
165
|
+
const updateOperationSpec = {
|
|
166
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}",
|
|
167
|
+
httpMethod: "PATCH",
|
|
168
|
+
responses: {
|
|
169
|
+
200: {
|
|
170
|
+
bodyMapper: Mappers.AccountResource
|
|
171
|
+
},
|
|
172
|
+
default: {
|
|
173
|
+
bodyMapper: Mappers.ErrorResponse
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
requestBody: Parameters.accountResource1,
|
|
177
|
+
queryParameters: [Parameters.apiVersion],
|
|
178
|
+
urlParameters: [
|
|
179
|
+
Parameters.$host,
|
|
180
|
+
Parameters.subscriptionId,
|
|
181
|
+
Parameters.resourceGroupName,
|
|
182
|
+
Parameters.resourceName
|
|
183
|
+
],
|
|
184
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
185
|
+
mediaType: "json",
|
|
186
|
+
serializer
|
|
187
|
+
};
|
|
188
|
+
const deleteOperationSpec = {
|
|
189
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts/{resourceName}",
|
|
190
|
+
httpMethod: "DELETE",
|
|
191
|
+
responses: {
|
|
192
|
+
200: {},
|
|
193
|
+
204: {},
|
|
194
|
+
default: {
|
|
195
|
+
bodyMapper: Mappers.ErrorResponse
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
queryParameters: [Parameters.apiVersion],
|
|
199
|
+
urlParameters: [
|
|
200
|
+
Parameters.$host,
|
|
201
|
+
Parameters.subscriptionId,
|
|
202
|
+
Parameters.resourceGroupName,
|
|
203
|
+
Parameters.resourceName
|
|
204
|
+
],
|
|
205
|
+
headerParameters: [Parameters.accept],
|
|
206
|
+
serializer
|
|
207
|
+
};
|
|
208
|
+
//# sourceMappingURL=account.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.js","sourceRoot":"","sources":["../../../src/operations/account.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAGL,gBAAgB,EACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAa3C,2CAA2C;AAC3C,MAAM,OAAO,WAAW;IAGtB;;;OAGG;IACH,YAAY,MAAqB;QAC/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,GAAG,CACD,iBAAyB,EACzB,YAAoB,EACpB,OAAkC;QAElC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,YAAY,EAAE,OAAO,EAAE,EAC5C,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACG,oBAAoB,CACxB,iBAAyB,EACzB,YAAoB,EACpB,eAAgC,EAChC,OAA8C;;YAO9C,MAAM,mBAAmB,GAAG,CAC1B,IAAmC,EACnC,IAA8B,EACW,EAAE;gBAC3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;YACtD,CAAC,CAAA,CAAC;YACF,MAAM,eAAe,GAAG,CACtB,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;gBACF,IAAI,kBAAkB,GAEN,SAAS,CAAC;gBAC1B,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAA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AAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Accounts } from "../operationsInterfaces";
|
|
3
|
+
import { GraphServices } from "../graphServices";
|
|
4
|
+
import { AccountResource, AccountsListByResourceGroupOptionalParams, AccountsListBySubscriptionOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Accounts operations. */
|
|
6
|
+
export declare class AccountsImpl implements Accounts {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Accounts class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: GraphServices);
|
|
13
|
+
/**
|
|
14
|
+
* Returns list of accounts apps.
|
|
15
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
16
|
+
* @param options The options parameters.
|
|
17
|
+
*/
|
|
18
|
+
listByResourceGroup(resourceGroupName: string, options?: AccountsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<AccountResource>;
|
|
19
|
+
private listByResourceGroupPagingPage;
|
|
20
|
+
private listByResourceGroupPagingAll;
|
|
21
|
+
/**
|
|
22
|
+
* Returns list of accounts belonging to a subscription.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
listBySubscription(options?: AccountsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<AccountResource>;
|
|
26
|
+
private listBySubscriptionPagingPage;
|
|
27
|
+
private listBySubscriptionPagingAll;
|
|
28
|
+
/**
|
|
29
|
+
* Returns list of accounts apps.
|
|
30
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
private _listByResourceGroup;
|
|
34
|
+
/**
|
|
35
|
+
* Returns list of accounts belonging to a subscription.
|
|
36
|
+
* @param options The options parameters.
|
|
37
|
+
*/
|
|
38
|
+
private _listBySubscription;
|
|
39
|
+
/**
|
|
40
|
+
* ListByResourceGroupNext
|
|
41
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
42
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
43
|
+
* @param options The options parameters.
|
|
44
|
+
*/
|
|
45
|
+
private _listByResourceGroupNext;
|
|
46
|
+
/**
|
|
47
|
+
* ListBySubscriptionNext
|
|
48
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
49
|
+
* @param options The options parameters.
|
|
50
|
+
*/
|
|
51
|
+
private _listBySubscriptionNext;
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"accounts.d.ts","sourceRoot":"","sources":["../../../src/operations/accounts.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAInD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,eAAe,EAEf,yCAAyC,EAGzC,wCAAwC,EAIzC,MAAM,WAAW,CAAC;AAGnB,4CAA4C;AAC5C,qBAAa,YAAa,YAAW,QAAQ;IAC3C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;;OAIG;IACI,mBAAmB,CACxB,iBAAiB,EAAE,MAAM,EACzB,OAAO,CAAC,EAAE,yCAAyC,GAClD,0BAA0B,CAAC,eAAe,CAAC;YAsB/B,6BAA6B;YA2B7B,4BAA4B;IAY3C;;;OAGG;IACI,kBAAkB,CACvB,OAAO,CAAC,EAAE,wCAAwC,GACjD,0BAA0B,CAAC,eAAe,CAAC;YAkB/B,4BAA4B;YAsB5B,2BAA2B;IAQ1C;;;;OAIG;IACH,OAAO,CAAC,oBAAoB;IAU5B;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;OAKG;IACH,OAAO,CAAC,wBAAwB;IAWhC;;;;OAIG;IACH,OAAO,CAAC,uBAAuB;CAShC"}
|
|
@@ -0,0 +1,252 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
/// <reference lib="esnext.asynciterable" />
|
|
14
|
+
/** Class containing Accounts operations. */
|
|
15
|
+
export class AccountsImpl {
|
|
16
|
+
/**
|
|
17
|
+
* Initialize a new instance of the class Accounts class.
|
|
18
|
+
* @param client Reference to the service client
|
|
19
|
+
*/
|
|
20
|
+
constructor(client) {
|
|
21
|
+
this.client = client;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Returns list of accounts apps.
|
|
25
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
29
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: (settings) => {
|
|
38
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
39
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
|
+
}
|
|
41
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
46
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield yield __await(page);
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield yield __await(page);
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
66
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
67
|
+
var e_1, _a;
|
|
68
|
+
try {
|
|
69
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
70
|
+
const page = _c.value;
|
|
71
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
75
|
+
finally {
|
|
76
|
+
try {
|
|
77
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
78
|
+
}
|
|
79
|
+
finally { if (e_1) throw e_1.error; }
|
|
80
|
+
}
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Returns list of accounts belonging to a subscription.
|
|
85
|
+
* @param options The options parameters.
|
|
86
|
+
*/
|
|
87
|
+
listBySubscription(options) {
|
|
88
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
89
|
+
return {
|
|
90
|
+
next() {
|
|
91
|
+
return iter.next();
|
|
92
|
+
},
|
|
93
|
+
[Symbol.asyncIterator]() {
|
|
94
|
+
return this;
|
|
95
|
+
},
|
|
96
|
+
byPage: (settings) => {
|
|
97
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
98
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
99
|
+
}
|
|
100
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
105
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
106
|
+
let result;
|
|
107
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
108
|
+
if (!continuationToken) {
|
|
109
|
+
result = yield __await(this._listBySubscription(options));
|
|
110
|
+
let page = result.value || [];
|
|
111
|
+
continuationToken = result.nextLink;
|
|
112
|
+
setContinuationToken(page, continuationToken);
|
|
113
|
+
yield yield __await(page);
|
|
114
|
+
}
|
|
115
|
+
while (continuationToken) {
|
|
116
|
+
result = yield __await(this._listBySubscriptionNext(continuationToken, options));
|
|
117
|
+
continuationToken = result.nextLink;
|
|
118
|
+
let page = result.value || [];
|
|
119
|
+
setContinuationToken(page, continuationToken);
|
|
120
|
+
yield yield __await(page);
|
|
121
|
+
}
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
listBySubscriptionPagingAll(options) {
|
|
125
|
+
return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
126
|
+
var e_2, _a;
|
|
127
|
+
try {
|
|
128
|
+
for (var _b = __asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
129
|
+
const page = _c.value;
|
|
130
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
134
|
+
finally {
|
|
135
|
+
try {
|
|
136
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
137
|
+
}
|
|
138
|
+
finally { if (e_2) throw e_2.error; }
|
|
139
|
+
}
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Returns list of accounts apps.
|
|
144
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
148
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Returns list of accounts belonging to a subscription.
|
|
152
|
+
* @param options The options parameters.
|
|
153
|
+
*/
|
|
154
|
+
_listBySubscription(options) {
|
|
155
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* ListByResourceGroupNext
|
|
159
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
160
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
161
|
+
* @param options The options parameters.
|
|
162
|
+
*/
|
|
163
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
164
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* ListBySubscriptionNext
|
|
168
|
+
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
169
|
+
* @param options The options parameters.
|
|
170
|
+
*/
|
|
171
|
+
_listBySubscriptionNext(nextLink, options) {
|
|
172
|
+
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
// Operation Specifications
|
|
176
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
177
|
+
const listByResourceGroupOperationSpec = {
|
|
178
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.GraphServices/accounts",
|
|
179
|
+
httpMethod: "GET",
|
|
180
|
+
responses: {
|
|
181
|
+
200: {
|
|
182
|
+
bodyMapper: Mappers.AccountResourceList
|
|
183
|
+
},
|
|
184
|
+
default: {
|
|
185
|
+
bodyMapper: Mappers.ErrorResponse
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
queryParameters: [Parameters.apiVersion],
|
|
189
|
+
urlParameters: [
|
|
190
|
+
Parameters.$host,
|
|
191
|
+
Parameters.subscriptionId,
|
|
192
|
+
Parameters.resourceGroupName
|
|
193
|
+
],
|
|
194
|
+
headerParameters: [Parameters.accept],
|
|
195
|
+
serializer
|
|
196
|
+
};
|
|
197
|
+
const listBySubscriptionOperationSpec = {
|
|
198
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.GraphServices/accounts",
|
|
199
|
+
httpMethod: "GET",
|
|
200
|
+
responses: {
|
|
201
|
+
200: {
|
|
202
|
+
bodyMapper: Mappers.AccountResourceList
|
|
203
|
+
},
|
|
204
|
+
default: {
|
|
205
|
+
bodyMapper: Mappers.ErrorResponse
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
queryParameters: [Parameters.apiVersion],
|
|
209
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
210
|
+
headerParameters: [Parameters.accept],
|
|
211
|
+
serializer
|
|
212
|
+
};
|
|
213
|
+
const listByResourceGroupNextOperationSpec = {
|
|
214
|
+
path: "{nextLink}",
|
|
215
|
+
httpMethod: "GET",
|
|
216
|
+
responses: {
|
|
217
|
+
200: {
|
|
218
|
+
bodyMapper: Mappers.AccountResourceList
|
|
219
|
+
},
|
|
220
|
+
default: {
|
|
221
|
+
bodyMapper: Mappers.ErrorResponse
|
|
222
|
+
}
|
|
223
|
+
},
|
|
224
|
+
urlParameters: [
|
|
225
|
+
Parameters.$host,
|
|
226
|
+
Parameters.subscriptionId,
|
|
227
|
+
Parameters.resourceGroupName,
|
|
228
|
+
Parameters.nextLink
|
|
229
|
+
],
|
|
230
|
+
headerParameters: [Parameters.accept],
|
|
231
|
+
serializer
|
|
232
|
+
};
|
|
233
|
+
const listBySubscriptionNextOperationSpec = {
|
|
234
|
+
path: "{nextLink}",
|
|
235
|
+
httpMethod: "GET",
|
|
236
|
+
responses: {
|
|
237
|
+
200: {
|
|
238
|
+
bodyMapper: Mappers.AccountResourceList
|
|
239
|
+
},
|
|
240
|
+
default: {
|
|
241
|
+
bodyMapper: Mappers.ErrorResponse
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
urlParameters: [
|
|
245
|
+
Parameters.$host,
|
|
246
|
+
Parameters.subscriptionId,
|
|
247
|
+
Parameters.nextLink
|
|
248
|
+
],
|
|
249
|
+
headerParameters: [Parameters.accept],
|
|
250
|
+
serializer
|
|
251
|
+
};
|
|
252
|
+
//# sourceM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CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
export * from "./accounts";
|
|
9
|
+
export * from "./account";
|
|
10
|
+
export * from "./operationOperations";
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { OperationOperations } from "../operationsInterfaces";
|
|
3
|
+
import { GraphServices } from "../graphServices";
|
|
4
|
+
import { Operation, OperationListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing OperationOperations operations. */
|
|
6
|
+
export declare class OperationOperationsImpl implements OperationOperations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class OperationOperations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: GraphServices);
|
|
13
|
+
/**
|
|
14
|
+
* Returns list of operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Returns list of operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
/**
|
|
26
|
+
* ListNext
|
|
27
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
private _listNext;
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=operationOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationOperations.d.ts","sourceRoot":"","sources":["../../../src/operations/operationOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAI9D,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EACL,SAAS,EAET,2BAA2B,EAG5B,MAAM,WAAW,CAAC;AAGnB,uDAAuD;AACvD,qBAAa,uBAAwB,YAAW,mBAAmB;IACjE,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAgB;IAEvC;;;OAGG;gBACS,MAAM,EAAE,aAAa;IAIjC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,2BAA2B,GACpC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
|