@azure/arm-labservices 3.1.1-alpha.20250718.1 → 3.1.1-alpha.20250721.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/dist/browser/labServicesClient.js +23 -5
- package/dist/browser/labServicesClient.js.map +1 -1
- package/dist/browser/lroImpl.js +11 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +257 -121
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/images.js +23 -40
- package/dist/browser/operations/images.js.map +1 -1
- package/dist/browser/operations/labPlans.js +89 -103
- package/dist/browser/operations/labPlans.js.map +1 -1
- package/dist/browser/operations/labs.js +100 -109
- package/dist/browser/operations/labs.js.map +1 -1
- package/dist/browser/operations/operationResults.js +1 -0
- package/dist/browser/operations/operationResults.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/schedules.js +34 -46
- package/dist/browser/operations/schedules.js.map +1 -1
- package/dist/browser/operations/skus.js +23 -40
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/usages.js +23 -40
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/operations/users.js +67 -64
- package/dist/browser/operations/users.js.map +1 -1
- package/dist/browser/operations/virtualMachines.js +78 -70
- package/dist/browser/operations/virtualMachines.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/labServicesClient.js +23 -5
- package/dist/commonjs/labServicesClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +11 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +257 -121
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/images.js +23 -39
- package/dist/commonjs/operations/images.js.map +1 -1
- package/dist/commonjs/operations/labPlans.js +89 -102
- package/dist/commonjs/operations/labPlans.js.map +1 -1
- package/dist/commonjs/operations/labs.js +100 -108
- package/dist/commonjs/operations/labs.js.map +1 -1
- package/dist/commonjs/operations/operationResults.js +1 -0
- package/dist/commonjs/operations/operationResults.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/schedules.js +34 -45
- package/dist/commonjs/operations/schedules.js.map +1 -1
- package/dist/commonjs/operations/skus.js +23 -39
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/usages.js +23 -39
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/operations/users.js +67 -63
- package/dist/commonjs/operations/users.js.map +1 -1
- package/dist/commonjs/operations/virtualMachines.js +78 -69
- package/dist/commonjs/operations/virtualMachines.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/labServicesClient.js +23 -5
- package/dist/esm/labServicesClient.js.map +1 -1
- package/dist/esm/lroImpl.js +11 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +257 -121
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/images.js +23 -40
- package/dist/esm/operations/images.js.map +1 -1
- package/dist/esm/operations/labPlans.js +89 -103
- package/dist/esm/operations/labPlans.js.map +1 -1
- package/dist/esm/operations/labs.js +100 -109
- package/dist/esm/operations/labs.js.map +1 -1
- package/dist/esm/operations/operationResults.js +1 -0
- package/dist/esm/operations/operationResults.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/schedules.js +34 -46
- package/dist/esm/operations/schedules.js.map +1 -1
- package/dist/esm/operations/skus.js +23 -40
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/usages.js +23 -40
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/operations/users.js +67 -64
- package/dist/esm/operations/users.js.map +1 -1
- package/dist/esm/operations/virtualMachines.js +78 -70
- package/dist/esm/operations/virtualMachines.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/labServicesClient.js +23 -5
- package/dist/react-native/labServicesClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +11 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +257 -121
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/images.js +23 -40
- package/dist/react-native/operations/images.js.map +1 -1
- package/dist/react-native/operations/labPlans.js +89 -103
- package/dist/react-native/operations/labPlans.js.map +1 -1
- package/dist/react-native/operations/labs.js +100 -109
- package/dist/react-native/operations/labs.js.map +1 -1
- package/dist/react-native/operations/operationResults.js +1 -0
- package/dist/react-native/operations/operationResults.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/schedules.js +34 -46
- package/dist/react-native/operations/schedules.js.map +1 -1
- package/dist/react-native/operations/skus.js +23 -40
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/usages.js +23 -40
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/operations/users.js +67 -64
- package/dist/react-native/operations/users.js.map +1 -1
- package/dist/react-native/operations/virtualMachines.js +78 -70
- package/dist/react-native/operations/virtualMachines.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-labservices-node.api.md +1198 -1198
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
14
13
|
/** Class containing Skus operations. */
|
15
14
|
export class SkusImpl {
|
15
|
+
client;
|
16
16
|
/**
|
17
17
|
* Initialize a new instance of the class Skus class.
|
18
18
|
* @param client Reference to the service client
|
@@ -34,52 +34,35 @@ export class SkusImpl {
|
|
34
34
|
return this;
|
35
35
|
},
|
36
36
|
byPage: (settings) => {
|
37
|
-
if (settings
|
37
|
+
if (settings?.maxPageSize) {
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
39
39
|
}
|
40
40
|
return this.listPagingPage(options, settings);
|
41
41
|
}
|
42
42
|
};
|
43
43
|
}
|
44
|
-
listPagingPage(options, settings) {
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
}
|
62
|
-
});
|
44
|
+
async *listPagingPage(options, settings) {
|
45
|
+
let result;
|
46
|
+
let continuationToken = settings?.continuationToken;
|
47
|
+
if (!continuationToken) {
|
48
|
+
result = await this._list(options);
|
49
|
+
let page = result.value || [];
|
50
|
+
continuationToken = result.nextLink;
|
51
|
+
setContinuationToken(page, continuationToken);
|
52
|
+
yield page;
|
53
|
+
}
|
54
|
+
while (continuationToken) {
|
55
|
+
result = await this._listNext(continuationToken, options);
|
56
|
+
continuationToken = result.nextLink;
|
57
|
+
let page = result.value || [];
|
58
|
+
setContinuationToken(page, continuationToken);
|
59
|
+
yield page;
|
60
|
+
}
|
63
61
|
}
|
64
|
-
listPagingAll(options) {
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
69
|
-
_c = _f.value;
|
70
|
-
_d = false;
|
71
|
-
const page = _c;
|
72
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
73
|
-
}
|
74
|
-
}
|
75
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
76
|
-
finally {
|
77
|
-
try {
|
78
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
79
|
-
}
|
80
|
-
finally { if (e_1) throw e_1.error; }
|
81
|
-
}
|
82
|
-
});
|
62
|
+
async *listPagingAll(options) {
|
63
|
+
for await (const page of this.listPagingPage(options)) {
|
64
|
+
yield* page;
|
65
|
+
}
|
83
66
|
}
|
84
67
|
/**
|
85
68
|
* Returns a list of Azure Lab Services resource SKUs.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
1
|
+
{"version":3,"file":"skus.js","sourceRoot":"","sources":["../../../src/operations/skus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IACF,MAAM,CAAoB;IAE3C;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAgC;QAEhC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;Y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;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Skus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { LabServicesClient } from \"../labServicesClient.js\";\nimport {\n LabServicesSku,\n SkusListNextOptionalParams,\n SkusListOptionalParams,\n SkusListResponse,\n SkusListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: LabServicesClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: LabServicesClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of Azure Lab Services resource SKUs.\n * @param options The options parameters.\n */\n public list(\n options?: SkusListOptionalParams\n ): PagedAsyncIterableIterator<LabServicesSku> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: SkusListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<LabServicesSku[]> {\n let result: SkusListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: SkusListOptionalParams\n ): AsyncIterableIterator<LabServicesSku> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of Azure Lab Services resource SKUs.\n * @param options The options parameters.\n */\n private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: SkusListNextOptionalParams\n ): Promise<SkusListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabServicesSkus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PagedLabServicesSkus\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
14
13
|
/** Class containing Usages operations. */
|
15
14
|
export class UsagesImpl {
|
15
|
+
client;
|
16
16
|
/**
|
17
17
|
* Initialize a new instance of the class Usages class.
|
18
18
|
* @param client Reference to the service client
|
@@ -35,52 +35,35 @@ export class UsagesImpl {
|
|
35
35
|
return this;
|
36
36
|
},
|
37
37
|
byPage: (settings) => {
|
38
|
-
if (settings
|
38
|
+
if (settings?.maxPageSize) {
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
40
40
|
}
|
41
41
|
return this.listByLocationPagingPage(location, options, settings);
|
42
42
|
}
|
43
43
|
};
|
44
44
|
}
|
45
|
-
listByLocationPagingPage(location, options, settings) {
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
}
|
63
|
-
});
|
45
|
+
async *listByLocationPagingPage(location, options, settings) {
|
46
|
+
let result;
|
47
|
+
let continuationToken = settings?.continuationToken;
|
48
|
+
if (!continuationToken) {
|
49
|
+
result = await this._listByLocation(location, options);
|
50
|
+
let page = result.value || [];
|
51
|
+
continuationToken = result.nextLink;
|
52
|
+
setContinuationToken(page, continuationToken);
|
53
|
+
yield page;
|
54
|
+
}
|
55
|
+
while (continuationToken) {
|
56
|
+
result = await this._listByLocationNext(location, continuationToken, options);
|
57
|
+
continuationToken = result.nextLink;
|
58
|
+
let page = result.value || [];
|
59
|
+
setContinuationToken(page, continuationToken);
|
60
|
+
yield page;
|
61
|
+
}
|
64
62
|
}
|
65
|
-
listByLocationPagingAll(location, options) {
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
for (var _d = true, _e = __asyncValues(this.listByLocationPagingPage(location, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
70
|
-
_c = _f.value;
|
71
|
-
_d = false;
|
72
|
-
const page = _c;
|
73
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
74
|
-
}
|
75
|
-
}
|
76
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
77
|
-
finally {
|
78
|
-
try {
|
79
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
80
|
-
}
|
81
|
-
finally { if (e_1) throw e_1.error; }
|
82
|
-
}
|
83
|
-
});
|
63
|
+
async *listByLocationPagingAll(location, options) {
|
64
|
+
for await (const page of this.listByLocationPagingPage(location, options)) {
|
65
|
+
yield* page;
|
66
|
+
}
|
84
67
|
}
|
85
68
|
/**
|
86
69
|
* Returns list of usage per SKU family for the specified subscription in the specified region.
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
1
|
+
{"version":3,"file":"usages.js","sourceRoot":"","sources":["../../../src/operations/usages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,0CAA0C;AAC1C,MAAM,OAAO,UAAU;IACJ,MAAM,CAAoB;IAE3C;;;OAGG;IACH,YAAY,MAAyB;QACnC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,cAAc,CACnB,QAAgB,EAChB,OAA4C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UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Usages } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { LabServicesClient } from \"../labServicesClient.js\";\nimport {\n Usage,\n UsagesListByLocationNextOptionalParams,\n UsagesListByLocationOptionalParams,\n UsagesListByLocationResponse,\n UsagesListByLocationNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Usages operations. */\nexport class UsagesImpl implements Usages {\n private readonly client: LabServicesClient;\n\n /**\n * Initialize a new instance of the class Usages class.\n * @param client Reference to the service client\n */\n constructor(client: LabServicesClient) {\n this.client = client;\n }\n\n /**\n * Returns list of usage per SKU family for the specified subscription in the specified region.\n * @param location The location name.\n * @param options The options parameters.\n */\n public listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams\n ): PagedAsyncIterableIterator<Usage> {\n const iter = this.listByLocationPagingAll(location, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByLocationPagingPage(location, options, settings);\n }\n };\n }\n\n private async *listByLocationPagingPage(\n location: string,\n options?: UsagesListByLocationOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Usage[]> {\n let result: UsagesListByLocationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByLocation(location, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByLocationNext(\n location,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByLocationPagingAll(\n location: string,\n options?: UsagesListByLocationOptionalParams\n ): AsyncIterableIterator<Usage> {\n for await (const page of this.listByLocationPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Returns list of usage per SKU family for the specified subscription in the specified region.\n * @param location The location name.\n * @param options The options parameters.\n */\n private _listByLocation(\n location: string,\n options?: UsagesListByLocationOptionalParams\n ): Promise<UsagesListByLocationResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listByLocationOperationSpec\n );\n }\n\n /**\n * ListByLocationNext\n * @param location The location name.\n * @param nextLink The nextLink from the previous successful call to the ListByLocation method.\n * @param options The options parameters.\n */\n private _listByLocationNext(\n location: string,\n nextLink: string,\n options?: UsagesListByLocationNextOptionalParams\n ): Promise<UsagesListByLocationNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listByLocationNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByLocationOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.LabServices/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByLocationNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListUsagesResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
@@ -5,7 +5,6 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
10
9
|
import * as coreClient from "@azure/core-client";
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
@@ -15,6 +14,7 @@ import { LroImpl } from "../lroImpl.js";
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
16
15
|
/** Class containing Users operations. */
|
17
16
|
export class UsersImpl {
|
17
|
+
client;
|
18
18
|
/**
|
19
19
|
* Initialize a new instance of the class Users class.
|
20
20
|
* @param client Reference to the service client
|
@@ -39,52 +39,35 @@ export class UsersImpl {
|
|
39
39
|
return this;
|
40
40
|
},
|
41
41
|
byPage: (settings) => {
|
42
|
-
if (settings
|
42
|
+
if (settings?.maxPageSize) {
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
44
44
|
}
|
45
45
|
return this.listByLabPagingPage(resourceGroupName, labName, options, settings);
|
46
46
|
}
|
47
47
|
};
|
48
48
|
}
|
49
|
-
listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
}
|
67
|
-
});
|
49
|
+
async *listByLabPagingPage(resourceGroupName, labName, options, settings) {
|
50
|
+
let result;
|
51
|
+
let continuationToken = settings?.continuationToken;
|
52
|
+
if (!continuationToken) {
|
53
|
+
result = await this._listByLab(resourceGroupName, labName, options);
|
54
|
+
let page = result.value || [];
|
55
|
+
continuationToken = result.nextLink;
|
56
|
+
setContinuationToken(page, continuationToken);
|
57
|
+
yield page;
|
58
|
+
}
|
59
|
+
while (continuationToken) {
|
60
|
+
result = await this._listByLabNext(resourceGroupName, labName, continuationToken, options);
|
61
|
+
continuationToken = result.nextLink;
|
62
|
+
let page = result.value || [];
|
63
|
+
setContinuationToken(page, continuationToken);
|
64
|
+
yield page;
|
65
|
+
}
|
68
66
|
}
|
69
|
-
listByLabPagingAll(resourceGroupName, labName, options) {
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listByLabPagingPage(resourceGroupName, labName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
74
|
-
_c = _f.value;
|
75
|
-
_d = false;
|
76
|
-
const page = _c;
|
77
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
78
|
-
}
|
79
|
-
}
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
81
|
-
finally {
|
82
|
-
try {
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
84
|
-
}
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
86
|
-
}
|
87
|
-
});
|
67
|
+
async *listByLabPagingAll(resourceGroupName, labName, options) {
|
68
|
+
for await (const page of this.listByLabPagingPage(resourceGroupName, labName, options)) {
|
69
|
+
yield* page;
|
70
|
+
}
|
88
71
|
}
|
89
72
|
/**
|
90
73
|
* Returns a list of all users for a lab.
|
@@ -123,14 +106,19 @@ export class UsersImpl {
|
|
123
106
|
return this.client.sendOperationRequest(args, spec);
|
124
107
|
};
|
125
108
|
const sendOperation = async (args, spec) => {
|
126
|
-
var _a;
|
127
109
|
let currentRawResponse = undefined;
|
128
|
-
const providedCallback =
|
110
|
+
const providedCallback = args.options?.onResponse;
|
129
111
|
const callback = (rawResponse, flatResponse) => {
|
130
112
|
currentRawResponse = rawResponse;
|
131
|
-
providedCallback
|
113
|
+
providedCallback?.(rawResponse, flatResponse);
|
114
|
+
};
|
115
|
+
const updatedArgs = {
|
116
|
+
...args,
|
117
|
+
options: {
|
118
|
+
...args.options,
|
119
|
+
onResponse: callback
|
120
|
+
}
|
132
121
|
};
|
133
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
134
122
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
135
123
|
return {
|
136
124
|
flatResponse,
|
@@ -143,8 +131,8 @@ export class UsersImpl {
|
|
143
131
|
};
|
144
132
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, createOrUpdateOperationSpec);
|
145
133
|
const poller = new LroEngine(lro, {
|
146
|
-
resumeFrom: options
|
147
|
-
intervalInMs: options
|
134
|
+
resumeFrom: options?.resumeFrom,
|
135
|
+
intervalInMs: options?.updateIntervalInMs,
|
148
136
|
lroResourceLocationConfig: "original-uri"
|
149
137
|
});
|
150
138
|
await poller.poll();
|
@@ -179,14 +167,19 @@ export class UsersImpl {
|
|
179
167
|
return this.client.sendOperationRequest(args, spec);
|
180
168
|
};
|
181
169
|
const sendOperation = async (args, spec) => {
|
182
|
-
var _a;
|
183
170
|
let currentRawResponse = undefined;
|
184
|
-
const providedCallback =
|
171
|
+
const providedCallback = args.options?.onResponse;
|
185
172
|
const callback = (rawResponse, flatResponse) => {
|
186
173
|
currentRawResponse = rawResponse;
|
187
|
-
providedCallback
|
174
|
+
providedCallback?.(rawResponse, flatResponse);
|
175
|
+
};
|
176
|
+
const updatedArgs = {
|
177
|
+
...args,
|
178
|
+
options: {
|
179
|
+
...args.options,
|
180
|
+
onResponse: callback
|
181
|
+
}
|
188
182
|
};
|
189
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
190
183
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
191
184
|
return {
|
192
185
|
flatResponse,
|
@@ -199,8 +192,8 @@ export class UsersImpl {
|
|
199
192
|
};
|
200
193
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, updateOperationSpec);
|
201
194
|
const poller = new LroEngine(lro, {
|
202
|
-
resumeFrom: options
|
203
|
-
intervalInMs: options
|
195
|
+
resumeFrom: options?.resumeFrom,
|
196
|
+
intervalInMs: options?.updateIntervalInMs,
|
204
197
|
lroResourceLocationConfig: "location"
|
205
198
|
});
|
206
199
|
await poller.poll();
|
@@ -234,14 +227,19 @@ export class UsersImpl {
|
|
234
227
|
return this.client.sendOperationRequest(args, spec);
|
235
228
|
};
|
236
229
|
const sendOperation = async (args, spec) => {
|
237
|
-
var _a;
|
238
230
|
let currentRawResponse = undefined;
|
239
|
-
const providedCallback =
|
231
|
+
const providedCallback = args.options?.onResponse;
|
240
232
|
const callback = (rawResponse, flatResponse) => {
|
241
233
|
currentRawResponse = rawResponse;
|
242
|
-
providedCallback
|
234
|
+
providedCallback?.(rawResponse, flatResponse);
|
235
|
+
};
|
236
|
+
const updatedArgs = {
|
237
|
+
...args,
|
238
|
+
options: {
|
239
|
+
...args.options,
|
240
|
+
onResponse: callback
|
241
|
+
}
|
243
242
|
};
|
244
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
245
243
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
246
244
|
return {
|
247
245
|
flatResponse,
|
@@ -254,8 +252,8 @@ export class UsersImpl {
|
|
254
252
|
};
|
255
253
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, options }, deleteOperationSpec);
|
256
254
|
const poller = new LroEngine(lro, {
|
257
|
-
resumeFrom: options
|
258
|
-
intervalInMs: options
|
255
|
+
resumeFrom: options?.resumeFrom,
|
256
|
+
intervalInMs: options?.updateIntervalInMs,
|
259
257
|
lroResourceLocationConfig: "location"
|
260
258
|
});
|
261
259
|
await poller.poll();
|
@@ -289,14 +287,19 @@ export class UsersImpl {
|
|
289
287
|
return this.client.sendOperationRequest(args, spec);
|
290
288
|
};
|
291
289
|
const sendOperation = async (args, spec) => {
|
292
|
-
var _a;
|
293
290
|
let currentRawResponse = undefined;
|
294
|
-
const providedCallback =
|
291
|
+
const providedCallback = args.options?.onResponse;
|
295
292
|
const callback = (rawResponse, flatResponse) => {
|
296
293
|
currentRawResponse = rawResponse;
|
297
|
-
providedCallback
|
294
|
+
providedCallback?.(rawResponse, flatResponse);
|
295
|
+
};
|
296
|
+
const updatedArgs = {
|
297
|
+
...args,
|
298
|
+
options: {
|
299
|
+
...args.options,
|
300
|
+
onResponse: callback
|
301
|
+
}
|
298
302
|
};
|
299
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
300
303
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
301
304
|
return {
|
302
305
|
flatResponse,
|
@@ -309,8 +312,8 @@ export class UsersImpl {
|
|
309
312
|
};
|
310
313
|
const lro = new LroImpl(sendOperation, { resourceGroupName, labName, userName, body, options }, inviteOperationSpec);
|
311
314
|
const poller = new LroEngine(lro, {
|
312
|
-
resumeFrom: options
|
313
|
-
intervalInMs: options
|
315
|
+
resumeFrom: options?.resumeFrom,
|
316
|
+
intervalInMs: options?.updateIntervalInMs,
|
314
317
|
lroResourceLocationConfig: "location"
|
315
318
|
});
|
316
319
|
await poller.poll();
|