@azure/arm-authorization-profile-2020-09-01-hybrid 2.1.1-alpha.20250717.1 → 2.1.1-alpha.20250718.2
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/authorizationManagementClient.js +18 -5
- package/dist/browser/authorizationManagementClient.js.map +1 -1
- package/dist/browser/operations/globalAdministrator.js +1 -0
- package/dist/browser/operations/globalAdministrator.js.map +1 -1
- package/dist/browser/operations/permissions.js +45 -79
- package/dist/browser/operations/permissions.js.map +1 -1
- package/dist/browser/operations/providerOperationsMetadataOperations.js +23 -40
- package/dist/browser/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/browser/operations/roleAssignments.js +89 -157
- package/dist/browser/operations/roleAssignments.js.map +1 -1
- package/dist/browser/operations/roleDefinitions.js +23 -40
- package/dist/browser/operations/roleDefinitions.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/authorizationManagementClient.js +18 -5
- package/dist/commonjs/authorizationManagementClient.js.map +1 -1
- package/dist/commonjs/operations/globalAdministrator.js +1 -0
- package/dist/commonjs/operations/globalAdministrator.js.map +1 -1
- package/dist/commonjs/operations/permissions.js +45 -78
- package/dist/commonjs/operations/permissions.js.map +1 -1
- package/dist/commonjs/operations/providerOperationsMetadataOperations.js +23 -39
- package/dist/commonjs/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/commonjs/operations/roleAssignments.js +89 -156
- package/dist/commonjs/operations/roleAssignments.js.map +1 -1
- package/dist/commonjs/operations/roleDefinitions.js +23 -39
- package/dist/commonjs/operations/roleDefinitions.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/authorizationManagementClient.js +18 -5
- package/dist/esm/authorizationManagementClient.js.map +1 -1
- package/dist/esm/operations/globalAdministrator.js +1 -0
- package/dist/esm/operations/globalAdministrator.js.map +1 -1
- package/dist/esm/operations/permissions.js +45 -79
- package/dist/esm/operations/permissions.js.map +1 -1
- package/dist/esm/operations/providerOperationsMetadataOperations.js +23 -40
- package/dist/esm/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/esm/operations/roleAssignments.js +89 -157
- package/dist/esm/operations/roleAssignments.js.map +1 -1
- package/dist/esm/operations/roleDefinitions.js +23 -40
- package/dist/esm/operations/roleDefinitions.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/authorizationManagementClient.js +18 -5
- package/dist/react-native/authorizationManagementClient.js.map +1 -1
- package/dist/react-native/operations/globalAdministrator.js +1 -0
- package/dist/react-native/operations/globalAdministrator.js.map +1 -1
- package/dist/react-native/operations/permissions.js +45 -79
- package/dist/react-native/operations/permissions.js.map +1 -1
- package/dist/react-native/operations/providerOperationsMetadataOperations.js +23 -40
- package/dist/react-native/operations/providerOperationsMetadataOperations.js.map +1 -1
- package/dist/react-native/operations/roleAssignments.js +89 -157
- package/dist/react-native/operations/roleAssignments.js.map +1 -1
- package/dist/react-native/operations/roleDefinitions.js +23 -40
- package/dist/react-native/operations/roleDefinitions.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-authorization-profile-2020-09-01-hybrid-node.api.md +408 -408
|
@@ -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 ProviderOperationsMetadataOperations operations. */
|
|
15
14
|
export class ProviderOperationsMetadataOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ProviderOperationsMetadataOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -34,52 +34,35 @@ export class ProviderOperationsMetadataOperationsImpl {
|
|
|
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
|
* Gets provider operations metadata for the specified resource provider.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providerOperationsMetadataOperations.js","sourceRoot":"","sources":["../../../src/operations/providerOperationsMetadataOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"providerOperationsMetadataOperations.js","sourceRoot":"","sources":["../../../src/operations/providerOperationsMetadataOperations.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;AAYtD,4CAA4C;AAC5C,wEAAwE;AACxE,MAAM,OAAO,wCAAwC;IAElC,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,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BAAyB,CAAC;IACvE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,uDAAuD;IAC7D,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oCAAoC;SACzD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,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 { ProviderOperationsMetadataOperations } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n ProviderOperationsMetadata,\n ProviderOperationsMetadataListNextOptionalParams,\n ProviderOperationsMetadataListOptionalParams,\n ProviderOperationsMetadataListResponse,\n ProviderOperationsMetadataGetOptionalParams,\n ProviderOperationsMetadataGetResponse,\n ProviderOperationsMetadataListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProviderOperationsMetadataOperations operations. */\nexport class ProviderOperationsMetadataOperationsImpl\n implements ProviderOperationsMetadataOperations {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class ProviderOperationsMetadataOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets provider operations metadata for all resource providers.\n * @param options The options parameters.\n */\n public list(\n options?: ProviderOperationsMetadataListOptionalParams\n ): PagedAsyncIterableIterator<ProviderOperationsMetadata> {\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?: ProviderOperationsMetadataListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<ProviderOperationsMetadata[]> {\n let result: ProviderOperationsMetadataListResponse;\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?: ProviderOperationsMetadataListOptionalParams\n ): AsyncIterableIterator<ProviderOperationsMetadata> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Gets provider operations metadata for the specified resource provider.\n * @param resourceProviderNamespace The namespace of the resource provider.\n * @param options The options parameters.\n */\n get(\n resourceProviderNamespace: string,\n options?: ProviderOperationsMetadataGetOptionalParams\n ): Promise<ProviderOperationsMetadataGetResponse> {\n return this.client.sendOperationRequest(\n { resourceProviderNamespace, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets provider operations metadata for all resource providers.\n * @param options The options parameters.\n */\n private _list(\n options?: ProviderOperationsMetadataListOptionalParams\n ): Promise<ProviderOperationsMetadataListResponse> {\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?: ProviderOperationsMetadataListNextOptionalParams\n ): Promise<ProviderOperationsMetadataListNextResponse> {\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 getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/providers/Microsoft.Authorization/providerOperations/{resourceProviderNamespace}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderOperationsMetadata\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host, Parameters.resourceProviderNamespace],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Authorization/providerOperations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderOperationsMetadataListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.expand],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProviderOperationsMetadataListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\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 RoleAssignments operations. */
|
|
15
14
|
export class RoleAssignmentsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class RoleAssignments class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -39,52 +39,35 @@ export class RoleAssignmentsImpl {
|
|
|
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.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings);
|
|
46
46
|
}
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
49
|
+
async *listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options, settings) {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings?.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = await this._listForResource(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, 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._listForResourceNext(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, continuationToken, options);
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield page;
|
|
65
|
+
}
|
|
68
66
|
}
|
|
69
|
-
listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = __asyncValues(this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, 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 *listForResourcePagingAll(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options) {
|
|
68
|
+
for await (const page of this.listForResourcePagingPage(resourceGroupName, resourceProviderNamespace, parentResourcePath, resourceType, resourceName, options)) {
|
|
69
|
+
yield* page;
|
|
70
|
+
}
|
|
88
71
|
}
|
|
89
72
|
/**
|
|
90
73
|
* Gets role assignments for a resource group.
|
|
@@ -101,52 +84,35 @@ export class RoleAssignmentsImpl {
|
|
|
101
84
|
return this;
|
|
102
85
|
},
|
|
103
86
|
byPage: (settings) => {
|
|
104
|
-
if (settings
|
|
87
|
+
if (settings?.maxPageSize) {
|
|
105
88
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
106
89
|
}
|
|
107
90
|
return this.listForResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
108
91
|
}
|
|
109
92
|
};
|
|
110
93
|
}
|
|
111
|
-
listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
});
|
|
94
|
+
async *listForResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
95
|
+
let result;
|
|
96
|
+
let continuationToken = settings?.continuationToken;
|
|
97
|
+
if (!continuationToken) {
|
|
98
|
+
result = await this._listForResourceGroup(resourceGroupName, options);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
104
|
+
while (continuationToken) {
|
|
105
|
+
result = await this._listForResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
106
|
+
continuationToken = result.nextLink;
|
|
107
|
+
let page = result.value || [];
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
130
111
|
}
|
|
131
|
-
listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
for (var _d = true, _e = __asyncValues(this.listForResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
136
|
-
_c = _f.value;
|
|
137
|
-
_d = false;
|
|
138
|
-
const page = _c;
|
|
139
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
143
|
-
finally {
|
|
144
|
-
try {
|
|
145
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
146
|
-
}
|
|
147
|
-
finally { if (e_2) throw e_2.error; }
|
|
148
|
-
}
|
|
149
|
-
});
|
|
112
|
+
async *listForResourceGroupPagingAll(resourceGroupName, options) {
|
|
113
|
+
for await (const page of this.listForResourceGroupPagingPage(resourceGroupName, options)) {
|
|
114
|
+
yield* page;
|
|
115
|
+
}
|
|
150
116
|
}
|
|
151
117
|
/**
|
|
152
118
|
* Gets all role assignments for the subscription.
|
|
@@ -162,52 +128,35 @@ export class RoleAssignmentsImpl {
|
|
|
162
128
|
return this;
|
|
163
129
|
},
|
|
164
130
|
byPage: (settings) => {
|
|
165
|
-
if (settings
|
|
131
|
+
if (settings?.maxPageSize) {
|
|
166
132
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
167
133
|
}
|
|
168
134
|
return this.listPagingPage(options, settings);
|
|
169
135
|
}
|
|
170
136
|
};
|
|
171
137
|
}
|
|
172
|
-
listPagingPage(options, settings) {
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
});
|
|
138
|
+
async *listPagingPage(options, settings) {
|
|
139
|
+
let result;
|
|
140
|
+
let continuationToken = settings?.continuationToken;
|
|
141
|
+
if (!continuationToken) {
|
|
142
|
+
result = await this._list(options);
|
|
143
|
+
let page = result.value || [];
|
|
144
|
+
continuationToken = result.nextLink;
|
|
145
|
+
setContinuationToken(page, continuationToken);
|
|
146
|
+
yield page;
|
|
147
|
+
}
|
|
148
|
+
while (continuationToken) {
|
|
149
|
+
result = await this._listNext(continuationToken, options);
|
|
150
|
+
continuationToken = result.nextLink;
|
|
151
|
+
let page = result.value || [];
|
|
152
|
+
setContinuationToken(page, continuationToken);
|
|
153
|
+
yield page;
|
|
154
|
+
}
|
|
191
155
|
}
|
|
192
|
-
listPagingAll(options) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
197
|
-
_c = _f.value;
|
|
198
|
-
_d = false;
|
|
199
|
-
const page = _c;
|
|
200
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
204
|
-
finally {
|
|
205
|
-
try {
|
|
206
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
207
|
-
}
|
|
208
|
-
finally { if (e_3) throw e_3.error; }
|
|
209
|
-
}
|
|
210
|
-
});
|
|
156
|
+
async *listPagingAll(options) {
|
|
157
|
+
for await (const page of this.listPagingPage(options)) {
|
|
158
|
+
yield* page;
|
|
159
|
+
}
|
|
211
160
|
}
|
|
212
161
|
/**
|
|
213
162
|
* Gets role assignments for a scope.
|
|
@@ -224,52 +173,35 @@ export class RoleAssignmentsImpl {
|
|
|
224
173
|
return this;
|
|
225
174
|
},
|
|
226
175
|
byPage: (settings) => {
|
|
227
|
-
if (settings
|
|
176
|
+
if (settings?.maxPageSize) {
|
|
228
177
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
229
178
|
}
|
|
230
179
|
return this.listForScopePagingPage(scope, options, settings);
|
|
231
180
|
}
|
|
232
181
|
};
|
|
233
182
|
}
|
|
234
|
-
listForScopePagingPage(scope, options, settings) {
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
}
|
|
252
|
-
});
|
|
183
|
+
async *listForScopePagingPage(scope, options, settings) {
|
|
184
|
+
let result;
|
|
185
|
+
let continuationToken = settings?.continuationToken;
|
|
186
|
+
if (!continuationToken) {
|
|
187
|
+
result = await this._listForScope(scope, options);
|
|
188
|
+
let page = result.value || [];
|
|
189
|
+
continuationToken = result.nextLink;
|
|
190
|
+
setContinuationToken(page, continuationToken);
|
|
191
|
+
yield page;
|
|
192
|
+
}
|
|
193
|
+
while (continuationToken) {
|
|
194
|
+
result = await this._listForScopeNext(scope, continuationToken, options);
|
|
195
|
+
continuationToken = result.nextLink;
|
|
196
|
+
let page = result.value || [];
|
|
197
|
+
setContinuationToken(page, continuationToken);
|
|
198
|
+
yield page;
|
|
199
|
+
}
|
|
253
200
|
}
|
|
254
|
-
listForScopePagingAll(scope, options) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
for (var _d = true, _e = __asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
259
|
-
_c = _f.value;
|
|
260
|
-
_d = false;
|
|
261
|
-
const page = _c;
|
|
262
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
266
|
-
finally {
|
|
267
|
-
try {
|
|
268
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
269
|
-
}
|
|
270
|
-
finally { if (e_4) throw e_4.error; }
|
|
271
|
-
}
|
|
272
|
-
});
|
|
201
|
+
async *listForScopePagingAll(scope, options) {
|
|
202
|
+
for await (const page of this.listForScopePagingPage(scope, options)) {
|
|
203
|
+
yield* page;
|
|
204
|
+
}
|
|
273
205
|
}
|
|
274
206
|
/**
|
|
275
207
|
* Gets role assignments for a resource.
|