@azure/arm-msi 2.1.0-beta.2 → 2.1.0
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 +6 -9
- package/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.js +240 -321
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.js +13 -5
- package/dist-esm/samples-dev/federatedIdentityCredentialsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/federatedIdentityCredentialsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.js +12 -4
- package/dist-esm/samples-dev/federatedIdentityCredentialsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.js +12 -4
- package/dist-esm/samples-dev/federatedIdentityCredentialsListSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +11 -3
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js +11 -3
- package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js +10 -3
- package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js +11 -4
- package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -1
- package/dist-esm/src/managedServiceIdentityClient.js +21 -16
- package/dist-esm/src/managedServiceIdentityClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +43 -86
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +12 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +1 -2
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +51 -85
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +4 -6
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +29 -42
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/federatedIdentityCredentials.d.ts +6 -6
- package/dist-esm/src/operations/federatedIdentityCredentials.d.ts.map +1 -1
- package/dist-esm/src/operations/federatedIdentityCredentials.js +32 -25
- package/dist-esm/src/operations/federatedIdentityCredentials.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -8
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/userAssignedIdentities.d.ts +1 -26
- package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -1
- package/dist-esm/src/operations/userAssignedIdentities.js +37 -143
- package/dist-esm/src/operations/userAssignedIdentities.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/federatedIdentityCredentials.d.ts +4 -4
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +1 -8
- package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -1
- 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/package.json +8 -6
- package/review/arm-msi.api.md +25 -44
- package/src/index.ts +1 -0
- package/src/managedServiceIdentityClient.ts +27 -18
- package/src/models/index.ts +47 -96
- package/src/models/mappers.ts +52 -87
- package/src/models/parameters.ts +31 -46
- package/src/operations/federatedIdentityCredentials.ts +39 -26
- package/src/operations/operations.ts +21 -9
- package/src/operations/userAssignedIdentities.ts +46 -190
- package/src/operationsInterfaces/federatedIdentityCredentials.ts +4 -4
- package/src/operationsInterfaces/userAssignedIdentities.ts +0 -13
- package/src/pagingHelper.ts +39 -0
- package/types/arm-msi.d.ts +59 -103
- package/types/tsdoc-metadata.json +1 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js +0 -55
- package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js.map +0 -1
package/dist/index.js
CHANGED
@@ -27,6 +27,58 @@ function _interopNamespace(e) {
|
|
27
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
28
28
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
29
29
|
|
30
|
+
/*
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
32
|
+
* Licensed under the MIT License.
|
33
|
+
*
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
36
|
+
*/
|
37
|
+
const pageMap = new WeakMap();
|
38
|
+
/**
|
39
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
40
|
+
* returns a continuation token that can be used to begin paging from
|
41
|
+
* that point later.
|
42
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
43
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
44
|
+
*/
|
45
|
+
function getContinuationToken(page) {
|
46
|
+
var _a;
|
47
|
+
if (typeof page !== "object" || page === null) {
|
48
|
+
return undefined;
|
49
|
+
}
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
51
|
+
}
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
53
|
+
var _a;
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
55
|
+
return;
|
56
|
+
}
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
59
|
+
pageMap.set(page, pageInfo);
|
60
|
+
}
|
61
|
+
|
62
|
+
/*
|
63
|
+
* Copyright (c) Microsoft Corporation.
|
64
|
+
* Licensed under the MIT License.
|
65
|
+
*
|
66
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
67
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
68
|
+
*/
|
69
|
+
/** Known values of {@link CreatedByType} that the service accepts. */
|
70
|
+
exports.KnownCreatedByType = void 0;
|
71
|
+
(function (KnownCreatedByType) {
|
72
|
+
/** User */
|
73
|
+
KnownCreatedByType["User"] = "User";
|
74
|
+
/** Application */
|
75
|
+
KnownCreatedByType["Application"] = "Application";
|
76
|
+
/** ManagedIdentity */
|
77
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
78
|
+
/** Key */
|
79
|
+
KnownCreatedByType["Key"] = "Key";
|
80
|
+
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
81
|
+
|
30
82
|
/*
|
31
83
|
* Copyright (c) Microsoft Corporation.
|
32
84
|
* Licensed under the MIT License.
|
@@ -59,6 +111,57 @@ const Resource = {
|
|
59
111
|
type: {
|
60
112
|
name: "String"
|
61
113
|
}
|
114
|
+
},
|
115
|
+
systemData: {
|
116
|
+
serializedName: "systemData",
|
117
|
+
type: {
|
118
|
+
name: "Composite",
|
119
|
+
className: "SystemData"
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
}
|
124
|
+
};
|
125
|
+
const SystemData = {
|
126
|
+
type: {
|
127
|
+
name: "Composite",
|
128
|
+
className: "SystemData",
|
129
|
+
modelProperties: {
|
130
|
+
createdBy: {
|
131
|
+
serializedName: "createdBy",
|
132
|
+
type: {
|
133
|
+
name: "String"
|
134
|
+
}
|
135
|
+
},
|
136
|
+
createdByType: {
|
137
|
+
serializedName: "createdByType",
|
138
|
+
type: {
|
139
|
+
name: "String"
|
140
|
+
}
|
141
|
+
},
|
142
|
+
createdAt: {
|
143
|
+
serializedName: "createdAt",
|
144
|
+
type: {
|
145
|
+
name: "DateTime"
|
146
|
+
}
|
147
|
+
},
|
148
|
+
lastModifiedBy: {
|
149
|
+
serializedName: "lastModifiedBy",
|
150
|
+
type: {
|
151
|
+
name: "String"
|
152
|
+
}
|
153
|
+
},
|
154
|
+
lastModifiedByType: {
|
155
|
+
serializedName: "lastModifiedByType",
|
156
|
+
type: {
|
157
|
+
name: "String"
|
158
|
+
}
|
159
|
+
},
|
160
|
+
lastModifiedAt: {
|
161
|
+
serializedName: "lastModifiedAt",
|
162
|
+
type: {
|
163
|
+
name: "DateTime"
|
164
|
+
}
|
62
165
|
}
|
63
166
|
}
|
64
167
|
}
|
@@ -221,91 +324,6 @@ const UserAssignedIdentitiesListResult = {
|
|
221
324
|
}
|
222
325
|
}
|
223
326
|
};
|
224
|
-
const AssociatedResourcesListResult = {
|
225
|
-
type: {
|
226
|
-
name: "Composite",
|
227
|
-
className: "AssociatedResourcesListResult",
|
228
|
-
modelProperties: {
|
229
|
-
totalCount: {
|
230
|
-
serializedName: "totalCount",
|
231
|
-
readOnly: true,
|
232
|
-
type: {
|
233
|
-
name: "Number"
|
234
|
-
}
|
235
|
-
},
|
236
|
-
value: {
|
237
|
-
serializedName: "value",
|
238
|
-
readOnly: true,
|
239
|
-
type: {
|
240
|
-
name: "Sequence",
|
241
|
-
element: {
|
242
|
-
type: {
|
243
|
-
name: "Composite",
|
244
|
-
className: "AzureResource"
|
245
|
-
}
|
246
|
-
}
|
247
|
-
}
|
248
|
-
},
|
249
|
-
nextLink: {
|
250
|
-
serializedName: "nextLink",
|
251
|
-
readOnly: true,
|
252
|
-
type: {
|
253
|
-
name: "String"
|
254
|
-
}
|
255
|
-
}
|
256
|
-
}
|
257
|
-
}
|
258
|
-
};
|
259
|
-
const AzureResource = {
|
260
|
-
type: {
|
261
|
-
name: "Composite",
|
262
|
-
className: "AzureResource",
|
263
|
-
modelProperties: {
|
264
|
-
id: {
|
265
|
-
serializedName: "id",
|
266
|
-
readOnly: true,
|
267
|
-
type: {
|
268
|
-
name: "String"
|
269
|
-
}
|
270
|
-
},
|
271
|
-
name: {
|
272
|
-
serializedName: "name",
|
273
|
-
readOnly: true,
|
274
|
-
type: {
|
275
|
-
name: "String"
|
276
|
-
}
|
277
|
-
},
|
278
|
-
type: {
|
279
|
-
serializedName: "type",
|
280
|
-
readOnly: true,
|
281
|
-
type: {
|
282
|
-
name: "String"
|
283
|
-
}
|
284
|
-
},
|
285
|
-
resourceGroup: {
|
286
|
-
serializedName: "resourceGroup",
|
287
|
-
readOnly: true,
|
288
|
-
type: {
|
289
|
-
name: "String"
|
290
|
-
}
|
291
|
-
},
|
292
|
-
subscriptionId: {
|
293
|
-
serializedName: "subscriptionId",
|
294
|
-
readOnly: true,
|
295
|
-
type: {
|
296
|
-
name: "String"
|
297
|
-
}
|
298
|
-
},
|
299
|
-
subscriptionDisplayName: {
|
300
|
-
serializedName: "subscriptionDisplayName",
|
301
|
-
readOnly: true,
|
302
|
-
type: {
|
303
|
-
name: "String"
|
304
|
-
}
|
305
|
-
}
|
306
|
-
}
|
307
|
-
}
|
308
|
-
};
|
309
327
|
const FederatedIdentityCredentialsListResult = {
|
310
328
|
type: {
|
311
329
|
name: "Composite",
|
@@ -493,14 +511,13 @@ const Identity = {
|
|
493
511
|
var Mappers = /*#__PURE__*/Object.freeze({
|
494
512
|
__proto__: null,
|
495
513
|
Resource: Resource,
|
514
|
+
SystemData: SystemData,
|
496
515
|
CloudError: CloudError,
|
497
516
|
CloudErrorBody: CloudErrorBody,
|
498
517
|
OperationListResult: OperationListResult,
|
499
518
|
Operation: Operation,
|
500
519
|
OperationDisplay: OperationDisplay,
|
501
520
|
UserAssignedIdentitiesListResult: UserAssignedIdentitiesListResult,
|
502
|
-
AssociatedResourcesListResult: AssociatedResourcesListResult,
|
503
|
-
AzureResource: AzureResource,
|
504
521
|
FederatedIdentityCredentialsListResult: FederatedIdentityCredentialsListResult,
|
505
522
|
ProxyResource: ProxyResource,
|
506
523
|
TrackedResource: TrackedResource,
|
@@ -553,7 +570,7 @@ const scope = {
|
|
553
570
|
const apiVersion = {
|
554
571
|
parameterPath: "apiVersion",
|
555
572
|
mapper: {
|
556
|
-
defaultValue: "
|
573
|
+
defaultValue: "2023-01-31",
|
557
574
|
isConstant: true,
|
558
575
|
serializedName: "api-version",
|
559
576
|
type: {
|
@@ -592,29 +609,44 @@ const resourceGroupName = {
|
|
592
609
|
}
|
593
610
|
}
|
594
611
|
};
|
595
|
-
const
|
596
|
-
parameterPath: "
|
612
|
+
const contentType = {
|
613
|
+
parameterPath: ["options", "contentType"],
|
597
614
|
mapper: {
|
598
|
-
|
599
|
-
|
615
|
+
defaultValue: "application/json",
|
616
|
+
isConstant: true,
|
617
|
+
serializedName: "Content-Type",
|
600
618
|
type: {
|
601
619
|
name: "String"
|
602
620
|
}
|
603
621
|
}
|
604
622
|
};
|
605
|
-
const
|
606
|
-
parameterPath:
|
623
|
+
const parameters = {
|
624
|
+
parameterPath: "parameters",
|
625
|
+
mapper: Identity
|
626
|
+
};
|
627
|
+
const resourceName = {
|
628
|
+
parameterPath: "resourceName",
|
607
629
|
mapper: {
|
608
|
-
serializedName: "
|
630
|
+
serializedName: "resourceName",
|
631
|
+
required: true,
|
609
632
|
type: {
|
610
633
|
name: "String"
|
611
634
|
}
|
612
635
|
}
|
613
636
|
};
|
614
|
-
const
|
615
|
-
parameterPath:
|
637
|
+
const parameters1 = {
|
638
|
+
parameterPath: "parameters",
|
639
|
+
mapper: IdentityUpdate
|
640
|
+
};
|
641
|
+
const resourceGroupName1 = {
|
642
|
+
parameterPath: "resourceGroupName",
|
616
643
|
mapper: {
|
617
|
-
|
644
|
+
constraints: {
|
645
|
+
MaxLength: 90,
|
646
|
+
MinLength: 1
|
647
|
+
},
|
648
|
+
serializedName: "resourceGroupName",
|
649
|
+
required: true,
|
618
650
|
type: {
|
619
651
|
name: "String"
|
620
652
|
}
|
@@ -632,18 +664,6 @@ const top = {
|
|
632
664
|
}
|
633
665
|
}
|
634
666
|
};
|
635
|
-
const skip = {
|
636
|
-
parameterPath: ["options", "skip"],
|
637
|
-
mapper: {
|
638
|
-
constraints: {
|
639
|
-
InclusiveMinimum: 1
|
640
|
-
},
|
641
|
-
serializedName: "$skip",
|
642
|
-
type: {
|
643
|
-
name: "Number"
|
644
|
-
}
|
645
|
-
}
|
646
|
-
};
|
647
667
|
const skiptoken = {
|
648
668
|
parameterPath: ["options", "skiptoken"],
|
649
669
|
mapper: {
|
@@ -653,25 +673,6 @@ const skiptoken = {
|
|
653
673
|
}
|
654
674
|
}
|
655
675
|
};
|
656
|
-
const contentType = {
|
657
|
-
parameterPath: ["options", "contentType"],
|
658
|
-
mapper: {
|
659
|
-
defaultValue: "application/json",
|
660
|
-
isConstant: true,
|
661
|
-
serializedName: "Content-Type",
|
662
|
-
type: {
|
663
|
-
name: "String"
|
664
|
-
}
|
665
|
-
}
|
666
|
-
};
|
667
|
-
const parameters = {
|
668
|
-
parameterPath: "parameters",
|
669
|
-
mapper: Identity
|
670
|
-
};
|
671
|
-
const parameters1 = {
|
672
|
-
parameterPath: "parameters",
|
673
|
-
mapper: IdentityUpdate
|
674
|
-
};
|
675
676
|
const parameters2 = {
|
676
677
|
parameterPath: "parameters",
|
677
678
|
mapper: FederatedIdentityCredential
|
@@ -679,6 +680,9 @@ const parameters2 = {
|
|
679
680
|
const federatedIdentityCredentialResourceName = {
|
680
681
|
parameterPath: "federatedIdentityCredentialResourceName",
|
681
682
|
mapper: {
|
683
|
+
constraints: {
|
684
|
+
Pattern: new RegExp("^[a-zA-Z0-9]{1}[a-zA-Z0-9-_]{2,119}$")
|
685
|
+
},
|
682
686
|
serializedName: "federatedIdentityCredentialResourceName",
|
683
687
|
required: true,
|
684
688
|
type: {
|
@@ -762,20 +766,31 @@ class OperationsImpl {
|
|
762
766
|
[Symbol.asyncIterator]() {
|
763
767
|
return this;
|
764
768
|
},
|
765
|
-
byPage: () => {
|
766
|
-
|
769
|
+
byPage: (settings) => {
|
770
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
771
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
772
|
+
}
|
773
|
+
return this.listPagingPage(options, settings);
|
767
774
|
}
|
768
775
|
};
|
769
776
|
}
|
770
|
-
listPagingPage(options) {
|
777
|
+
listPagingPage(options, settings) {
|
771
778
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
772
|
-
let result
|
773
|
-
|
774
|
-
|
779
|
+
let result;
|
780
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
781
|
+
if (!continuationToken) {
|
782
|
+
result = yield tslib.__await(this._list(options));
|
783
|
+
let page = result.value || [];
|
784
|
+
continuationToken = result.nextLink;
|
785
|
+
setContinuationToken(page, continuationToken);
|
786
|
+
yield yield tslib.__await(page);
|
787
|
+
}
|
775
788
|
while (continuationToken) {
|
776
789
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
777
790
|
continuationToken = result.nextLink;
|
778
|
-
|
791
|
+
let page = result.value || [];
|
792
|
+
setContinuationToken(page, continuationToken);
|
793
|
+
yield yield tslib.__await(page);
|
779
794
|
}
|
780
795
|
});
|
781
796
|
}
|
@@ -842,7 +857,6 @@ const listNextOperationSpec$1 = {
|
|
842
857
|
bodyMapper: CloudError
|
843
858
|
}
|
844
859
|
},
|
845
|
-
queryParameters: [apiVersion],
|
846
860
|
urlParameters: [$host, nextLink],
|
847
861
|
headerParameters: [accept],
|
848
862
|
serializer: serializer$2
|
@@ -878,20 +892,31 @@ class UserAssignedIdentitiesImpl {
|
|
878
892
|
[Symbol.asyncIterator]() {
|
879
893
|
return this;
|
880
894
|
},
|
881
|
-
byPage: () => {
|
882
|
-
|
895
|
+
byPage: (settings) => {
|
896
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
897
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
898
|
+
}
|
899
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
883
900
|
}
|
884
901
|
};
|
885
902
|
}
|
886
|
-
listBySubscriptionPagingPage(options) {
|
903
|
+
listBySubscriptionPagingPage(options, settings) {
|
887
904
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
888
|
-
let result
|
889
|
-
|
890
|
-
|
905
|
+
let result;
|
906
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
907
|
+
if (!continuationToken) {
|
908
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
909
|
+
let page = result.value || [];
|
910
|
+
continuationToken = result.nextLink;
|
911
|
+
setContinuationToken(page, continuationToken);
|
912
|
+
yield yield tslib.__await(page);
|
913
|
+
}
|
891
914
|
while (continuationToken) {
|
892
915
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
893
916
|
continuationToken = result.nextLink;
|
894
|
-
|
917
|
+
let page = result.value || [];
|
918
|
+
setContinuationToken(page, continuationToken);
|
919
|
+
yield yield tslib.__await(page);
|
895
920
|
}
|
896
921
|
});
|
897
922
|
}
|
@@ -927,20 +952,31 @@ class UserAssignedIdentitiesImpl {
|
|
927
952
|
[Symbol.asyncIterator]() {
|
928
953
|
return this;
|
929
954
|
},
|
930
|
-
byPage: () => {
|
931
|
-
|
955
|
+
byPage: (settings) => {
|
956
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
957
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
958
|
+
}
|
959
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
932
960
|
}
|
933
961
|
};
|
934
962
|
}
|
935
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
963
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
936
964
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
937
|
-
let result
|
938
|
-
|
939
|
-
|
965
|
+
let result;
|
966
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
967
|
+
if (!continuationToken) {
|
968
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
969
|
+
let page = result.value || [];
|
970
|
+
continuationToken = result.nextLink;
|
971
|
+
setContinuationToken(page, continuationToken);
|
972
|
+
yield yield tslib.__await(page);
|
973
|
+
}
|
940
974
|
while (continuationToken) {
|
941
975
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
942
976
|
continuationToken = result.nextLink;
|
943
|
-
|
977
|
+
let page = result.value || [];
|
978
|
+
setContinuationToken(page, continuationToken);
|
979
|
+
yield yield tslib.__await(page);
|
944
980
|
}
|
945
981
|
});
|
946
982
|
}
|
@@ -962,56 +998,6 @@ class UserAssignedIdentitiesImpl {
|
|
962
998
|
}
|
963
999
|
});
|
964
1000
|
}
|
965
|
-
/**
|
966
|
-
* Lists the associated resources for this identity.
|
967
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
968
|
-
* @param resourceName The name of the identity resource.
|
969
|
-
* @param options The options parameters.
|
970
|
-
*/
|
971
|
-
listAssociatedResources(resourceGroupName, resourceName, options) {
|
972
|
-
const iter = this.listAssociatedResourcesPagingAll(resourceGroupName, resourceName, options);
|
973
|
-
return {
|
974
|
-
next() {
|
975
|
-
return iter.next();
|
976
|
-
},
|
977
|
-
[Symbol.asyncIterator]() {
|
978
|
-
return this;
|
979
|
-
},
|
980
|
-
byPage: () => {
|
981
|
-
return this.listAssociatedResourcesPagingPage(resourceGroupName, resourceName, options);
|
982
|
-
}
|
983
|
-
};
|
984
|
-
}
|
985
|
-
listAssociatedResourcesPagingPage(resourceGroupName, resourceName, options) {
|
986
|
-
return tslib.__asyncGenerator(this, arguments, function* listAssociatedResourcesPagingPage_1() {
|
987
|
-
let result = yield tslib.__await(this._listAssociatedResources(resourceGroupName, resourceName, options));
|
988
|
-
yield yield tslib.__await(result.value || []);
|
989
|
-
let continuationToken = result.nextLink;
|
990
|
-
while (continuationToken) {
|
991
|
-
result = yield tslib.__await(this._listAssociatedResourcesNext(resourceGroupName, resourceName, continuationToken, options));
|
992
|
-
continuationToken = result.nextLink;
|
993
|
-
yield yield tslib.__await(result.value || []);
|
994
|
-
}
|
995
|
-
});
|
996
|
-
}
|
997
|
-
listAssociatedResourcesPagingAll(resourceGroupName, resourceName, options) {
|
998
|
-
return tslib.__asyncGenerator(this, arguments, function* listAssociatedResourcesPagingAll_1() {
|
999
|
-
var e_3, _a;
|
1000
|
-
try {
|
1001
|
-
for (var _b = tslib.__asyncValues(this.listAssociatedResourcesPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
1002
|
-
const page = _c.value;
|
1003
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
1004
|
-
}
|
1005
|
-
}
|
1006
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
1007
|
-
finally {
|
1008
|
-
try {
|
1009
|
-
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
1010
|
-
}
|
1011
|
-
finally { if (e_3) throw e_3.error; }
|
1012
|
-
}
|
1013
|
-
});
|
1014
|
-
}
|
1015
1001
|
/**
|
1016
1002
|
* Lists all the userAssignedIdentities available under the specified subscription.
|
1017
1003
|
* @param options The options parameters.
|
@@ -1027,15 +1013,6 @@ class UserAssignedIdentitiesImpl {
|
|
1027
1013
|
_listByResourceGroup(resourceGroupName, options) {
|
1028
1014
|
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
1029
1015
|
}
|
1030
|
-
/**
|
1031
|
-
* Lists the associated resources for this identity.
|
1032
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1033
|
-
* @param resourceName The name of the identity resource.
|
1034
|
-
* @param options The options parameters.
|
1035
|
-
*/
|
1036
|
-
_listAssociatedResources(resourceGroupName, resourceName, options) {
|
1037
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listAssociatedResourcesOperationSpec);
|
1038
|
-
}
|
1039
1016
|
/**
|
1040
1017
|
* Create or update an identity in the specified subscription and resource group.
|
1041
1018
|
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
@@ -1091,17 +1068,6 @@ class UserAssignedIdentitiesImpl {
|
|
1091
1068
|
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
1092
1069
|
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
1093
1070
|
}
|
1094
|
-
/**
|
1095
|
-
* ListAssociatedResourcesNext
|
1096
|
-
* @param resourceGroupName The name of the Resource Group to which the identity belongs.
|
1097
|
-
* @param resourceName The name of the identity resource.
|
1098
|
-
* @param nextLink The nextLink from the previous successful call to the ListAssociatedResources
|
1099
|
-
* method.
|
1100
|
-
* @param options The options parameters.
|
1101
|
-
*/
|
1102
|
-
_listAssociatedResourcesNext(resourceGroupName, resourceName, nextLink, options) {
|
1103
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listAssociatedResourcesNextOperationSpec);
|
1104
|
-
}
|
1105
1071
|
}
|
1106
1072
|
// Operation Specifications
|
1107
1073
|
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
@@ -1141,34 +1107,6 @@ const listByResourceGroupOperationSpec = {
|
|
1141
1107
|
headerParameters: [accept],
|
1142
1108
|
serializer: serializer$1
|
1143
1109
|
};
|
1144
|
-
const listAssociatedResourcesOperationSpec = {
|
1145
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/listAssociatedResources",
|
1146
|
-
httpMethod: "POST",
|
1147
|
-
responses: {
|
1148
|
-
200: {
|
1149
|
-
bodyMapper: AssociatedResourcesListResult
|
1150
|
-
},
|
1151
|
-
default: {
|
1152
|
-
bodyMapper: CloudError
|
1153
|
-
}
|
1154
|
-
},
|
1155
|
-
queryParameters: [
|
1156
|
-
apiVersion,
|
1157
|
-
filter,
|
1158
|
-
orderby,
|
1159
|
-
top,
|
1160
|
-
skip,
|
1161
|
-
skiptoken
|
1162
|
-
],
|
1163
|
-
urlParameters: [
|
1164
|
-
$host,
|
1165
|
-
subscriptionId,
|
1166
|
-
resourceGroupName,
|
1167
|
-
resourceName
|
1168
|
-
],
|
1169
|
-
headerParameters: [accept],
|
1170
|
-
serializer: serializer$1
|
1171
|
-
};
|
1172
1110
|
const createOrUpdateOperationSpec$1 = {
|
1173
1111
|
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
|
1174
1112
|
httpMethod: "PUT",
|
@@ -1270,7 +1208,6 @@ const listBySubscriptionNextOperationSpec = {
|
|
1270
1208
|
bodyMapper: CloudError
|
1271
1209
|
}
|
1272
1210
|
},
|
1273
|
-
queryParameters: [apiVersion],
|
1274
1211
|
urlParameters: [
|
1275
1212
|
$host,
|
1276
1213
|
nextLink,
|
@@ -1290,7 +1227,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
1290
1227
|
bodyMapper: CloudError
|
1291
1228
|
}
|
1292
1229
|
},
|
1293
|
-
queryParameters: [apiVersion],
|
1294
1230
|
urlParameters: [
|
1295
1231
|
$host,
|
1296
1232
|
nextLink,
|
@@ -1300,35 +1236,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
1300
1236
|
headerParameters: [accept],
|
1301
1237
|
serializer: serializer$1
|
1302
1238
|
};
|
1303
|
-
const listAssociatedResourcesNextOperationSpec = {
|
1304
|
-
path: "{nextLink}",
|
1305
|
-
httpMethod: "GET",
|
1306
|
-
responses: {
|
1307
|
-
200: {
|
1308
|
-
bodyMapper: AssociatedResourcesListResult
|
1309
|
-
},
|
1310
|
-
default: {
|
1311
|
-
bodyMapper: CloudError
|
1312
|
-
}
|
1313
|
-
},
|
1314
|
-
queryParameters: [
|
1315
|
-
apiVersion,
|
1316
|
-
filter,
|
1317
|
-
orderby,
|
1318
|
-
top,
|
1319
|
-
skip,
|
1320
|
-
skiptoken
|
1321
|
-
],
|
1322
|
-
urlParameters: [
|
1323
|
-
$host,
|
1324
|
-
nextLink,
|
1325
|
-
subscriptionId,
|
1326
|
-
resourceGroupName,
|
1327
|
-
resourceName
|
1328
|
-
],
|
1329
|
-
headerParameters: [accept],
|
1330
|
-
serializer: serializer$1
|
1331
|
-
};
|
1332
1239
|
|
1333
1240
|
/*
|
1334
1241
|
* Copyright (c) Microsoft Corporation.
|
@@ -1349,7 +1256,7 @@ class FederatedIdentityCredentialsImpl {
|
|
1349
1256
|
}
|
1350
1257
|
/**
|
1351
1258
|
* Lists all the federated identity credentials under the specified user assigned identity.
|
1352
|
-
* @param resourceGroupName The name of the
|
1259
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1353
1260
|
* @param resourceName The name of the identity resource.
|
1354
1261
|
* @param options The options parameters.
|
1355
1262
|
*/
|
@@ -1362,20 +1269,31 @@ class FederatedIdentityCredentialsImpl {
|
|
1362
1269
|
[Symbol.asyncIterator]() {
|
1363
1270
|
return this;
|
1364
1271
|
},
|
1365
|
-
byPage: () => {
|
1366
|
-
|
1272
|
+
byPage: (settings) => {
|
1273
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
1274
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
1275
|
+
}
|
1276
|
+
return this.listPagingPage(resourceGroupName, resourceName, options, settings);
|
1367
1277
|
}
|
1368
1278
|
};
|
1369
1279
|
}
|
1370
|
-
listPagingPage(resourceGroupName, resourceName, options) {
|
1280
|
+
listPagingPage(resourceGroupName, resourceName, options, settings) {
|
1371
1281
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
1372
|
-
let result
|
1373
|
-
|
1374
|
-
|
1282
|
+
let result;
|
1283
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
1284
|
+
if (!continuationToken) {
|
1285
|
+
result = yield tslib.__await(this._list(resourceGroupName, resourceName, options));
|
1286
|
+
let page = result.value || [];
|
1287
|
+
continuationToken = result.nextLink;
|
1288
|
+
setContinuationToken(page, continuationToken);
|
1289
|
+
yield yield tslib.__await(page);
|
1290
|
+
}
|
1375
1291
|
while (continuationToken) {
|
1376
1292
|
result = yield tslib.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
|
1377
1293
|
continuationToken = result.nextLink;
|
1378
|
-
|
1294
|
+
let page = result.value || [];
|
1295
|
+
setContinuationToken(page, continuationToken);
|
1296
|
+
yield yield tslib.__await(page);
|
1379
1297
|
}
|
1380
1298
|
});
|
1381
1299
|
}
|
@@ -1399,7 +1317,7 @@ class FederatedIdentityCredentialsImpl {
|
|
1399
1317
|
}
|
1400
1318
|
/**
|
1401
1319
|
* Lists all the federated identity credentials under the specified user assigned identity.
|
1402
|
-
* @param resourceGroupName The name of the
|
1320
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1403
1321
|
* @param resourceName The name of the identity resource.
|
1404
1322
|
* @param options The options parameters.
|
1405
1323
|
*/
|
@@ -1408,7 +1326,7 @@ class FederatedIdentityCredentialsImpl {
|
|
1408
1326
|
}
|
1409
1327
|
/**
|
1410
1328
|
* Create or update a federated identity credential under the specified user assigned identity.
|
1411
|
-
* @param resourceGroupName The name of the
|
1329
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1412
1330
|
* @param resourceName The name of the identity resource.
|
1413
1331
|
* @param federatedIdentityCredentialResourceName The name of the federated identity credential
|
1414
1332
|
* resource.
|
@@ -1426,7 +1344,7 @@ class FederatedIdentityCredentialsImpl {
|
|
1426
1344
|
}
|
1427
1345
|
/**
|
1428
1346
|
* Gets the federated identity credential.
|
1429
|
-
* @param resourceGroupName The name of the
|
1347
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1430
1348
|
* @param resourceName The name of the identity resource.
|
1431
1349
|
* @param federatedIdentityCredentialResourceName The name of the federated identity credential
|
1432
1350
|
* resource.
|
@@ -1442,7 +1360,7 @@ class FederatedIdentityCredentialsImpl {
|
|
1442
1360
|
}
|
1443
1361
|
/**
|
1444
1362
|
* Deletes the federated identity credential.
|
1445
|
-
* @param resourceGroupName The name of the
|
1363
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1446
1364
|
* @param resourceName The name of the identity resource.
|
1447
1365
|
* @param federatedIdentityCredentialResourceName The name of the federated identity credential
|
1448
1366
|
* resource.
|
@@ -1458,7 +1376,7 @@ class FederatedIdentityCredentialsImpl {
|
|
1458
1376
|
}
|
1459
1377
|
/**
|
1460
1378
|
* ListNext
|
1461
|
-
* @param resourceGroupName The name of the
|
1379
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
1462
1380
|
* @param resourceName The name of the identity resource.
|
1463
1381
|
* @param nextLink The nextLink from the previous successful call to the List method.
|
1464
1382
|
* @param options The options parameters.
|
@@ -1488,8 +1406,8 @@ const listOperationSpec = {
|
|
1488
1406
|
urlParameters: [
|
1489
1407
|
$host,
|
1490
1408
|
subscriptionId,
|
1491
|
-
|
1492
|
-
|
1409
|
+
resourceName,
|
1410
|
+
resourceGroupName1
|
1493
1411
|
],
|
1494
1412
|
headerParameters: [accept],
|
1495
1413
|
serializer
|
@@ -1513,8 +1431,8 @@ const createOrUpdateOperationSpec = {
|
|
1513
1431
|
urlParameters: [
|
1514
1432
|
$host,
|
1515
1433
|
subscriptionId,
|
1516
|
-
resourceGroupName,
|
1517
1434
|
resourceName,
|
1435
|
+
resourceGroupName1,
|
1518
1436
|
federatedIdentityCredentialResourceName
|
1519
1437
|
],
|
1520
1438
|
headerParameters: [accept, contentType],
|
@@ -1536,8 +1454,8 @@ const getOperationSpec = {
|
|
1536
1454
|
urlParameters: [
|
1537
1455
|
$host,
|
1538
1456
|
subscriptionId,
|
1539
|
-
resourceGroupName,
|
1540
1457
|
resourceName,
|
1458
|
+
resourceGroupName1,
|
1541
1459
|
federatedIdentityCredentialResourceName
|
1542
1460
|
],
|
1543
1461
|
headerParameters: [accept],
|
@@ -1557,8 +1475,8 @@ const deleteOperationSpec = {
|
|
1557
1475
|
urlParameters: [
|
1558
1476
|
$host,
|
1559
1477
|
subscriptionId,
|
1560
|
-
resourceGroupName,
|
1561
1478
|
resourceName,
|
1479
|
+
resourceGroupName1,
|
1562
1480
|
federatedIdentityCredentialResourceName
|
1563
1481
|
],
|
1564
1482
|
headerParameters: [accept],
|
@@ -1575,17 +1493,12 @@ const listNextOperationSpec = {
|
|
1575
1493
|
bodyMapper: CloudError
|
1576
1494
|
}
|
1577
1495
|
},
|
1578
|
-
queryParameters: [
|
1579
|
-
apiVersion,
|
1580
|
-
top,
|
1581
|
-
skiptoken
|
1582
|
-
],
|
1583
1496
|
urlParameters: [
|
1584
1497
|
$host,
|
1585
1498
|
nextLink,
|
1586
1499
|
subscriptionId,
|
1587
|
-
|
1588
|
-
|
1500
|
+
resourceName,
|
1501
|
+
resourceGroupName1
|
1589
1502
|
],
|
1590
1503
|
headerParameters: [accept],
|
1591
1504
|
serializer
|
@@ -1606,7 +1519,7 @@ class ManagedServiceIdentityClient extends coreClient__namespace.ServiceClient {
|
|
1606
1519
|
* @param options The parameter options
|
1607
1520
|
*/
|
1608
1521
|
constructor(credentials, subscriptionId, options) {
|
1609
|
-
var _a, _b;
|
1522
|
+
var _a, _b, _c;
|
1610
1523
|
if (credentials === undefined) {
|
1611
1524
|
throw new Error("'credentials' cannot be null");
|
1612
1525
|
}
|
@@ -1621,35 +1534,40 @@ class ManagedServiceIdentityClient extends coreClient__namespace.ServiceClient {
|
|
1621
1534
|
requestContentType: "application/json; charset=utf-8",
|
1622
1535
|
credential: credentials
|
1623
1536
|
};
|
1624
|
-
const packageDetails = `azsdk-js-arm-msi/2.1.0
|
1537
|
+
const packageDetails = `azsdk-js-arm-msi/2.1.0`;
|
1625
1538
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
1626
1539
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
1627
1540
|
: `${packageDetails}`;
|
1628
1541
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
1629
1542
|
userAgentPrefix
|
1630
|
-
},
|
1543
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
1631
1544
|
super(optionsWithDefaults);
|
1545
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
1632
1546
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
1633
1547
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
1634
|
-
|
1548
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
1635
1549
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
1636
|
-
|
1637
|
-
|
1638
|
-
|
1639
|
-
|
1640
|
-
|
1641
|
-
|
1642
|
-
|
1643
|
-
|
1644
|
-
|
1645
|
-
|
1646
|
-
|
1550
|
+
}
|
1551
|
+
if (!options ||
|
1552
|
+
!options.pipeline ||
|
1553
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
1554
|
+
!bearerTokenAuthenticationPolicyFound) {
|
1555
|
+
this.pipeline.removePolicy({
|
1556
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
1557
|
+
});
|
1558
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
1559
|
+
credential: credentials,
|
1560
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
1561
|
+
challengeCallbacks: {
|
1562
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
1563
|
+
}
|
1564
|
+
}));
|
1647
1565
|
}
|
1648
1566
|
// Parameter assignments
|
1649
1567
|
this.subscriptionId = subscriptionId;
|
1650
1568
|
// Assigning values to Constant parameters
|
1651
1569
|
this.$host = options.$host || "https://management.azure.com";
|
1652
|
-
this.apiVersion = options.apiVersion || "
|
1570
|
+
this.apiVersion = options.apiVersion || "2023-01-31";
|
1653
1571
|
this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
|
1654
1572
|
this.operations = new OperationsImpl(this);
|
1655
1573
|
this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
|
@@ -1686,4 +1604,5 @@ class ManagedServiceIdentityClient extends coreClient__namespace.ServiceClient {
|
|
1686
1604
|
}
|
1687
1605
|
|
1688
1606
|
exports.ManagedServiceIdentityClient = ManagedServiceIdentityClient;
|
1607
|
+
exports.getContinuationToken = getContinuationToken;
|
1689
1608
|
//# sourceMappingURL=index.js.map
|