@azure/arm-msi 2.1.1-alpha.20250718.1 → 2.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.
Files changed (59) hide show
  1. package/dist/browser/managedServiceIdentityClient.js +17 -5
  2. package/dist/browser/managedServiceIdentityClient.js.map +1 -1
  3. package/dist/browser/models/mappers.js +56 -25
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/federatedIdentityCredentials.js +23 -40
  6. package/dist/browser/operations/federatedIdentityCredentials.js.map +1 -1
  7. package/dist/browser/operations/operations.js +23 -40
  8. package/dist/browser/operations/operations.js.map +1 -1
  9. package/dist/browser/operations/systemAssignedIdentities.js +1 -0
  10. package/dist/browser/operations/systemAssignedIdentities.js.map +1 -1
  11. package/dist/browser/operations/userAssignedIdentities.js +45 -79
  12. package/dist/browser/operations/userAssignedIdentities.js.map +1 -1
  13. package/dist/browser/pagingHelper.js +2 -4
  14. package/dist/browser/pagingHelper.js.map +1 -1
  15. package/dist/commonjs/managedServiceIdentityClient.js +17 -5
  16. package/dist/commonjs/managedServiceIdentityClient.js.map +1 -1
  17. package/dist/commonjs/models/mappers.js +56 -25
  18. package/dist/commonjs/models/mappers.js.map +1 -1
  19. package/dist/commonjs/operations/federatedIdentityCredentials.js +23 -39
  20. package/dist/commonjs/operations/federatedIdentityCredentials.js.map +1 -1
  21. package/dist/commonjs/operations/operations.js +23 -39
  22. package/dist/commonjs/operations/operations.js.map +1 -1
  23. package/dist/commonjs/operations/systemAssignedIdentities.js +1 -0
  24. package/dist/commonjs/operations/systemAssignedIdentities.js.map +1 -1
  25. package/dist/commonjs/operations/userAssignedIdentities.js +45 -78
  26. package/dist/commonjs/operations/userAssignedIdentities.js.map +1 -1
  27. package/dist/commonjs/pagingHelper.js +2 -4
  28. package/dist/commonjs/pagingHelper.js.map +1 -1
  29. package/dist/commonjs/tsdoc-metadata.json +11 -11
  30. package/dist/esm/managedServiceIdentityClient.js +17 -5
  31. package/dist/esm/managedServiceIdentityClient.js.map +1 -1
  32. package/dist/esm/models/mappers.js +56 -25
  33. package/dist/esm/models/mappers.js.map +1 -1
  34. package/dist/esm/operations/federatedIdentityCredentials.js +23 -40
  35. package/dist/esm/operations/federatedIdentityCredentials.js.map +1 -1
  36. package/dist/esm/operations/operations.js +23 -40
  37. package/dist/esm/operations/operations.js.map +1 -1
  38. package/dist/esm/operations/systemAssignedIdentities.js +1 -0
  39. package/dist/esm/operations/systemAssignedIdentities.js.map +1 -1
  40. package/dist/esm/operations/userAssignedIdentities.js +45 -79
  41. package/dist/esm/operations/userAssignedIdentities.js.map +1 -1
  42. package/dist/esm/pagingHelper.js +2 -4
  43. package/dist/esm/pagingHelper.js.map +1 -1
  44. package/dist/react-native/managedServiceIdentityClient.js +17 -5
  45. package/dist/react-native/managedServiceIdentityClient.js.map +1 -1
  46. package/dist/react-native/models/mappers.js +56 -25
  47. package/dist/react-native/models/mappers.js.map +1 -1
  48. package/dist/react-native/operations/federatedIdentityCredentials.js +23 -40
  49. package/dist/react-native/operations/federatedIdentityCredentials.js.map +1 -1
  50. package/dist/react-native/operations/operations.js +23 -40
  51. package/dist/react-native/operations/operations.js.map +1 -1
  52. package/dist/react-native/operations/systemAssignedIdentities.js +1 -0
  53. package/dist/react-native/operations/systemAssignedIdentities.js.map +1 -1
  54. package/dist/react-native/operations/userAssignedIdentities.js +45 -79
  55. package/dist/react-native/operations/userAssignedIdentities.js.map +1 -1
  56. package/dist/react-native/pagingHelper.js +2 -4
  57. package/dist/react-native/pagingHelper.js.map +1 -1
  58. package/package.json +2 -2
  59. package/review/arm-msi-node.api.md +301 -301
@@ -276,122 +276,147 @@ exports.ProxyResource = {
276
276
  type: {
277
277
  name: "Composite",
278
278
  className: "ProxyResource",
279
- modelProperties: Object.assign({}, exports.Resource.type.modelProperties)
279
+ modelProperties: {
280
+ ...exports.Resource.type.modelProperties
281
+ }
280
282
  }
281
283
  };
282
284
  exports.TrackedResource = {
283
285
  type: {
284
286
  name: "Composite",
285
287
  className: "TrackedResource",
286
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { tags: {
288
+ modelProperties: {
289
+ ...exports.Resource.type.modelProperties,
290
+ tags: {
287
291
  serializedName: "tags",
288
292
  type: {
289
293
  name: "Dictionary",
290
294
  value: { type: { name: "String" } }
291
295
  }
292
- }, location: {
296
+ },
297
+ location: {
293
298
  serializedName: "location",
294
299
  required: true,
295
300
  type: {
296
301
  name: "String"
297
302
  }
298
- } })
303
+ }
304
+ }
299
305
  }
300
306
  };
301
307
  exports.IdentityUpdate = {
302
308
  type: {
303
309
  name: "Composite",
304
310
  className: "IdentityUpdate",
305
- modelProperties: Object.assign(Object.assign({}, exports.Resource.type.modelProperties), { location: {
311
+ modelProperties: {
312
+ ...exports.Resource.type.modelProperties,
313
+ location: {
306
314
  serializedName: "location",
307
315
  type: {
308
316
  name: "String"
309
317
  }
310
- }, tags: {
318
+ },
319
+ tags: {
311
320
  serializedName: "tags",
312
321
  type: {
313
322
  name: "Dictionary",
314
323
  value: { type: { name: "String" } }
315
324
  }
316
- }, tenantId: {
325
+ },
326
+ tenantId: {
317
327
  serializedName: "properties.tenantId",
318
328
  readOnly: true,
319
329
  type: {
320
330
  name: "Uuid"
321
331
  }
322
- }, principalId: {
332
+ },
333
+ principalId: {
323
334
  serializedName: "properties.principalId",
324
335
  readOnly: true,
325
336
  type: {
326
337
  name: "Uuid"
327
338
  }
328
- }, clientId: {
339
+ },
340
+ clientId: {
329
341
  serializedName: "properties.clientId",
330
342
  readOnly: true,
331
343
  type: {
332
344
  name: "Uuid"
333
345
  }
334
- } })
346
+ }
347
+ }
335
348
  }
336
349
  };
337
350
  exports.SystemAssignedIdentity = {
338
351
  type: {
339
352
  name: "Composite",
340
353
  className: "SystemAssignedIdentity",
341
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { location: {
354
+ modelProperties: {
355
+ ...exports.ProxyResource.type.modelProperties,
356
+ location: {
342
357
  serializedName: "location",
343
358
  required: true,
344
359
  type: {
345
360
  name: "String"
346
361
  }
347
- }, tags: {
362
+ },
363
+ tags: {
348
364
  serializedName: "tags",
349
365
  type: {
350
366
  name: "Dictionary",
351
367
  value: { type: { name: "String" } }
352
368
  }
353
- }, tenantId: {
369
+ },
370
+ tenantId: {
354
371
  serializedName: "properties.tenantId",
355
372
  readOnly: true,
356
373
  type: {
357
374
  name: "Uuid"
358
375
  }
359
- }, principalId: {
376
+ },
377
+ principalId: {
360
378
  serializedName: "properties.principalId",
361
379
  readOnly: true,
362
380
  type: {
363
381
  name: "Uuid"
364
382
  }
365
- }, clientId: {
383
+ },
384
+ clientId: {
366
385
  serializedName: "properties.clientId",
367
386
  readOnly: true,
368
387
  type: {
369
388
  name: "Uuid"
370
389
  }
371
- }, clientSecretUrl: {
390
+ },
391
+ clientSecretUrl: {
372
392
  serializedName: "properties.clientSecretUrl",
373
393
  readOnly: true,
374
394
  type: {
375
395
  name: "String"
376
396
  }
377
- } })
397
+ }
398
+ }
378
399
  }
379
400
  };
380
401
  exports.FederatedIdentityCredential = {
381
402
  type: {
382
403
  name: "Composite",
383
404
  className: "FederatedIdentityCredential",
384
- modelProperties: Object.assign(Object.assign({}, exports.ProxyResource.type.modelProperties), { issuer: {
405
+ modelProperties: {
406
+ ...exports.ProxyResource.type.modelProperties,
407
+ issuer: {
385
408
  serializedName: "properties.issuer",
386
409
  type: {
387
410
  name: "String"
388
411
  }
389
- }, subject: {
412
+ },
413
+ subject: {
390
414
  serializedName: "properties.subject",
391
415
  type: {
392
416
  name: "String"
393
417
  }
394
- }, audiences: {
418
+ },
419
+ audiences: {
395
420
  serializedName: "properties.audiences",
396
421
  type: {
397
422
  name: "Sequence",
@@ -401,32 +426,38 @@ exports.FederatedIdentityCredential = {
401
426
  }
402
427
  }
403
428
  }
404
- } })
429
+ }
430
+ }
405
431
  }
406
432
  };
407
433
  exports.Identity = {
408
434
  type: {
409
435
  name: "Composite",
410
436
  className: "Identity",
411
- modelProperties: Object.assign(Object.assign({}, exports.TrackedResource.type.modelProperties), { tenantId: {
437
+ modelProperties: {
438
+ ...exports.TrackedResource.type.modelProperties,
439
+ tenantId: {
412
440
  serializedName: "properties.tenantId",
413
441
  readOnly: true,
414
442
  type: {
415
443
  name: "Uuid"
416
444
  }
417
- }, principalId: {
445
+ },
446
+ principalId: {
418
447
  serializedName: "properties.principalId",
419
448
  readOnly: true,
420
449
  type: {
421
450
  name: "Uuid"
422
451
  }
423
- }, clientId: {
452
+ },
453
+ clientId: {
424
454
  serializedName: "properties.clientId",
425
455
  readOnly: true,
426
456
  type: {
427
457
  name: "Uuid"
428
458
  }
429
- } })
459
+ }
460
+ }
430
461
  }
431
462
  };
432
463
  //# sourceMappingURL=mappers.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,QAAQ,GAA+B;IAClD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,UAAU,EAAE;gBACV,cAAc,EAAE,YAAY;gBAC5B,IAAI,EAAE;oBACJ,IAAI,EAAE,WAAW;oBACjB,SAAS,EAAE,YAAY;iBACxB;aACF;SACF;KACF;CACF,CAAC;AAEW,QAAA,UAAU,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QAAQ;iBACf;aACF,GACF;KACF;CACF,CAAC;AAEW,QAAA,2BAA2B,GAA+B;IACrE,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,6BAA6B;QACxC,eAAe,kCACV,qBAAa,CAAC,IAAI,CAAC,eAAe,KACrC,MAAM,EAAE;gBACN,cAAc,EAAE,mBAAmB;gBACnC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,OAAO,EAAE;gBACP,cAAc,EAAE,oBAAoB;gBACpC,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF,EACD,SAAS,EAAE;gBACT,cAAc,EAAE,sBAAsB;gBACtC,IAAI,EAAE;oBACJ,IAAI,EAAE,UAAU;oBAChB,OAAO,EAAE;wBACP,IAAI,EAAE;4BACJ,IAAI,EAAE,QAAQ;yBACf;qBACF;iBACF;aACF,GACF;KACF;CACF,CAAC;AAEW,QAAA,QAAQ,GAA+B;IAClD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,UAAU;QACrB,eAAe,kCACV,uBAAe,CAAC,IAAI,CAAC,eAAe,KACvC,QAAQ,EAAE;gBACR,cAAc,EAAE,qBAAqB;gBACrC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;iBACb;aACF,EACD,WAAW,EAAE;gBACX,cAAc,EAAE,wBAAwB;gBACxC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;iBACb;aACF,EACD,QAAQ,EAAE;gBACR,cAAc,EAAE,qBAAqB;gBACrC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;iBACb;aACF,GACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n};\n\nexport const CloudErrorBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const UserAssignedIdentitiesListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UserAssignedIdentitiesListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Identity\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const FederatedIdentityCredentialsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FederatedIdentityCredentialsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"FederatedIdentityCredential\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties\n }\n }\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const IdentityUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"IdentityUpdate\",\n modelProperties: {\n ...Resource.type.modelProperties,\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tenantId: {\n serializedName: \"properties.tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n principalId: {\n serializedName: \"properties.principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientId: {\n serializedName: \"properties.clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n }\n }\n }\n};\n\nexport const SystemAssignedIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemAssignedIdentity\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tenantId: {\n serializedName: \"properties.tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n principalId: {\n serializedName: \"properties.principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientId: {\n serializedName: \"properties.clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientSecretUrl: {\n serializedName: \"properties.clientSecretUrl\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const FederatedIdentityCredential: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FederatedIdentityCredential\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n issuer: {\n serializedName: \"properties.issuer\",\n type: {\n name: \"String\"\n }\n },\n subject: {\n serializedName: \"properties.subject\",\n type: {\n name: \"String\"\n }\n },\n audiences: {\n serializedName: \"properties.audiences\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Identity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Identity\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n tenantId: {\n serializedName: \"properties.tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n principalId: {\n serializedName: \"properties.principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientId: {\n serializedName: \"properties.clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n }\n }\n }\n};\n"]}
1
+ {"version":3,"file":"mappers.js","sourceRoot":"","sources":["../../../src/models/mappers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAIU,QAAA,QAAQ,GAA+B;IAClD,IAAI,EAAE;QACJ,IAAI,EAAE,WAAW;QACjB,SAAS,EAAE,UAAU;QACrB,eAAe,EAAE;YACf,EAAE,EAAE;gBACF,cAAc,EAAE,IAAI;gBACpB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;gBACJ,cAAc,EAAE,MAAM;gBACtB,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,QAAQ;iBACf;aACF;YACD,IAAI,EAAE;g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QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;iBACb;aACF;YACD,QAAQ,EAAE;gBACR,cAAc,EAAE,qBAAqB;gBACrC,QAAQ,EAAE,IAAI;gBACd,IAAI,EAAE;oBACJ,IAAI,EAAE,MAAM;iBACb;aACF;SACF;KACF;CACF,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 * as coreClient from \"@azure/core-client\";\n\nexport const Resource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Resource\",\n modelProperties: {\n id: {\n serializedName: \"id\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n name: {\n serializedName: \"name\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n type: {\n serializedName: \"type\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n },\n systemData: {\n serializedName: \"systemData\",\n type: {\n name: \"Composite\",\n className: \"SystemData\"\n }\n }\n }\n }\n};\n\nexport const SystemData: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemData\",\n modelProperties: {\n createdBy: {\n serializedName: \"createdBy\",\n type: {\n name: \"String\"\n }\n },\n createdByType: {\n serializedName: \"createdByType\",\n type: {\n name: \"String\"\n }\n },\n createdAt: {\n serializedName: \"createdAt\",\n type: {\n name: \"DateTime\"\n }\n },\n lastModifiedBy: {\n serializedName: \"lastModifiedBy\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedByType: {\n serializedName: \"lastModifiedByType\",\n type: {\n name: \"String\"\n }\n },\n lastModifiedAt: {\n serializedName: \"lastModifiedAt\",\n type: {\n name: \"DateTime\"\n }\n }\n }\n }\n};\n\nexport const CloudError: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudError\",\n modelProperties: {\n error: {\n serializedName: \"error\",\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n};\n\nexport const CloudErrorBody: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\",\n modelProperties: {\n code: {\n serializedName: \"code\",\n type: {\n name: \"String\"\n }\n },\n message: {\n serializedName: \"message\",\n type: {\n name: \"String\"\n }\n },\n target: {\n serializedName: \"target\",\n type: {\n name: \"String\"\n }\n },\n details: {\n serializedName: \"details\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"CloudErrorBody\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const OperationListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Operation\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const Operation: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Operation\",\n modelProperties: {\n name: {\n serializedName: \"name\",\n type: {\n name: \"String\"\n }\n },\n display: {\n serializedName: \"display\",\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\"\n }\n }\n }\n }\n};\n\nexport const OperationDisplay: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"OperationDisplay\",\n modelProperties: {\n provider: {\n serializedName: \"provider\",\n type: {\n name: \"String\"\n }\n },\n operation: {\n serializedName: \"operation\",\n type: {\n name: \"String\"\n }\n },\n resource: {\n serializedName: \"resource\",\n type: {\n name: \"String\"\n }\n },\n description: {\n serializedName: \"description\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const UserAssignedIdentitiesListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"UserAssignedIdentitiesListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"Identity\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const FederatedIdentityCredentialsListResult: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FederatedIdentityCredentialsListResult\",\n modelProperties: {\n value: {\n serializedName: \"value\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"Composite\",\n className: \"FederatedIdentityCredential\"\n }\n }\n }\n },\n nextLink: {\n serializedName: \"nextLink\",\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const ProxyResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"ProxyResource\",\n modelProperties: {\n ...Resource.type.modelProperties\n }\n }\n};\n\nexport const TrackedResource: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"TrackedResource\",\n modelProperties: {\n ...Resource.type.modelProperties,\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const IdentityUpdate: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"IdentityUpdate\",\n modelProperties: {\n ...Resource.type.modelProperties,\n location: {\n serializedName: \"location\",\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tenantId: {\n serializedName: \"properties.tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n principalId: {\n serializedName: \"properties.principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientId: {\n serializedName: \"properties.clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n }\n }\n }\n};\n\nexport const SystemAssignedIdentity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"SystemAssignedIdentity\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n location: {\n serializedName: \"location\",\n required: true,\n type: {\n name: \"String\"\n }\n },\n tags: {\n serializedName: \"tags\",\n type: {\n name: \"Dictionary\",\n value: { type: { name: \"String\" } }\n }\n },\n tenantId: {\n serializedName: \"properties.tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n principalId: {\n serializedName: \"properties.principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientId: {\n serializedName: \"properties.clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientSecretUrl: {\n serializedName: \"properties.clientSecretUrl\",\n readOnly: true,\n type: {\n name: \"String\"\n }\n }\n }\n }\n};\n\nexport const FederatedIdentityCredential: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"FederatedIdentityCredential\",\n modelProperties: {\n ...ProxyResource.type.modelProperties,\n issuer: {\n serializedName: \"properties.issuer\",\n type: {\n name: \"String\"\n }\n },\n subject: {\n serializedName: \"properties.subject\",\n type: {\n name: \"String\"\n }\n },\n audiences: {\n serializedName: \"properties.audiences\",\n type: {\n name: \"Sequence\",\n element: {\n type: {\n name: \"String\"\n }\n }\n }\n }\n }\n }\n};\n\nexport const Identity: coreClient.CompositeMapper = {\n type: {\n name: \"Composite\",\n className: \"Identity\",\n modelProperties: {\n ...TrackedResource.type.modelProperties,\n tenantId: {\n serializedName: \"properties.tenantId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n principalId: {\n serializedName: \"properties.principalId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n },\n clientId: {\n serializedName: \"properties.clientId\",\n readOnly: true,\n type: {\n name: \"Uuid\"\n }\n }\n }\n }\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing FederatedIdentityCredentials operations. */
18
18
  class FederatedIdentityCredentialsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class FederatedIdentityCredentials class.
21
22
  * @param client Reference to the service client
@@ -39,52 +40,35 @@ class FederatedIdentityCredentialsImpl {
39
40
  return this;
40
41
  },
41
42
  byPage: (settings) => {
42
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
43
+ if (settings?.maxPageSize) {
43
44
  throw new Error("maxPageSize is not supported by this operation.");
44
45
  }
45
46
  return this.listPagingPage(resourceGroupName, resourceName, options, settings);
46
47
  }
47
48
  };
48
49
  }
49
- listPagingPage(resourceGroupName, resourceName, options, settings) {
50
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
51
- let result;
52
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
53
- if (!continuationToken) {
54
- result = yield tslib_1.__await(this._list(resourceGroupName, resourceName, options));
55
- let page = result.value || [];
56
- continuationToken = result.nextLink;
57
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
- yield yield tslib_1.__await(page);
59
- }
60
- while (continuationToken) {
61
- result = yield tslib_1.__await(this._listNext(resourceGroupName, resourceName, continuationToken, options));
62
- continuationToken = result.nextLink;
63
- let page = result.value || [];
64
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
- yield yield tslib_1.__await(page);
66
- }
67
- });
50
+ async *listPagingPage(resourceGroupName, resourceName, options, settings) {
51
+ let result;
52
+ let continuationToken = settings?.continuationToken;
53
+ if (!continuationToken) {
54
+ result = await this._list(resourceGroupName, resourceName, options);
55
+ let page = result.value || [];
56
+ continuationToken = result.nextLink;
57
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
58
+ yield page;
59
+ }
60
+ while (continuationToken) {
61
+ result = await this._listNext(resourceGroupName, resourceName, continuationToken, options);
62
+ continuationToken = result.nextLink;
63
+ let page = result.value || [];
64
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
65
+ yield page;
66
+ }
68
67
  }
69
- listPagingAll(resourceGroupName, resourceName, options) {
70
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
71
- var _a, e_1, _b, _c;
72
- try {
73
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
74
- _c = _f.value;
75
- _d = false;
76
- const page = _c;
77
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
84
- }
85
- finally { if (e_1) throw e_1.error; }
86
- }
87
- });
68
+ async *listPagingAll(resourceGroupName, resourceName, options) {
69
+ for await (const page of this.listPagingPage(resourceGroupName, resourceName, options)) {
70
+ yield* page;
71
+ }
88
72
  }
89
73
  /**
90
74
  * Lists all the federated identity credentials under the specified user assigned identity.
@@ -1 +1 @@
1
- {"version":3,"file":"federatedIdentityCredentials.js","sourceRoot":"","sources":["../../../src/operations/federatedIdentityCredentials.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAa,gCAAgC;IAI3C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OA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AAU,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,sCAAsC;SAC3D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;KAC9B;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 { FederatedIdentityCredentials } 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 { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n FederatedIdentityCredential,\n FederatedIdentityCredentialsListNextOptionalParams,\n FederatedIdentityCredentialsListOptionalParams,\n FederatedIdentityCredentialsListResponse,\n FederatedIdentityCredentialsCreateOrUpdateOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateResponse,\n FederatedIdentityCredentialsGetOptionalParams,\n FederatedIdentityCredentialsGetResponse,\n FederatedIdentityCredentialsDeleteOptionalParams,\n FederatedIdentityCredentialsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FederatedIdentityCredentials operations. */\nexport class FederatedIdentityCredentialsImpl\n implements FederatedIdentityCredentials {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class FederatedIdentityCredentials class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Lists all the federated identity credentials under the specified user assigned identity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): PagedAsyncIterableIterator<FederatedIdentityCredential> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FederatedIdentityCredential[]> {\n let result: FederatedIdentityCredentialsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\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 *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): AsyncIterableIterator<FederatedIdentityCredential> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the federated identity credentials under the specified user assigned identity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): Promise<FederatedIdentityCredentialsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Create or update a federated identity credential under the specified user assigned identity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param federatedIdentityCredentialResourceName The name of the federated identity credential\n * resource.\n * @param parameters Parameters to create or update the federated identity credential.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n federatedIdentityCredentialResourceName: string,\n parameters: FederatedIdentityCredential,\n options?: FederatedIdentityCredentialsCreateOrUpdateOptionalParams\n ): Promise<FederatedIdentityCredentialsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n federatedIdentityCredentialResourceName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the federated identity credential.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param federatedIdentityCredentialResourceName The name of the federated identity credential\n * resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n federatedIdentityCredentialResourceName: string,\n options?: FederatedIdentityCredentialsGetOptionalParams\n ): Promise<FederatedIdentityCredentialsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n federatedIdentityCredentialResourceName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the federated identity credential.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param federatedIdentityCredentialResourceName The name of the federated identity credential\n * resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n federatedIdentityCredentialResourceName: string,\n options?: FederatedIdentityCredentialsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n federatedIdentityCredentialResourceName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\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 resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: FederatedIdentityCredentialsListNextOptionalParams\n ): Promise<FederatedIdentityCredentialsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredentialsListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.top,\n Parameters.skiptoken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredential\n },\n 201: {\n bodyMapper: Mappers.FederatedIdentityCredential\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.federatedIdentityCredentialResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredential\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.federatedIdentityCredentialResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.federatedIdentityCredentialResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredentialsListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"federatedIdentityCredentials.js","sourceRoot":"","sources":["../../../src/operations/federatedIdentityCredentials.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,gEAAgE;AAChE,MAAa,gCAAgC;IAE1B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,YAAoB,EACpB,OAAwD;QAExD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,YAAY,EAAE,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,iBAAyB,EACzB,YAAoB,EACpB,OAAwD,EACxD,QAAuB;QAEvB,IAAI,MAAgD,CAAC;QACrD,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,iBAAiB,E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AC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,qNAAqN;IACvN,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,uCAAuC;KACnD;IACD,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,sCAAsC;SAC3D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,kBAAkB;KAC9B;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 { FederatedIdentityCredentials } 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 { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n FederatedIdentityCredential,\n FederatedIdentityCredentialsListNextOptionalParams,\n FederatedIdentityCredentialsListOptionalParams,\n FederatedIdentityCredentialsListResponse,\n FederatedIdentityCredentialsCreateOrUpdateOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateResponse,\n FederatedIdentityCredentialsGetOptionalParams,\n FederatedIdentityCredentialsGetResponse,\n FederatedIdentityCredentialsDeleteOptionalParams,\n FederatedIdentityCredentialsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FederatedIdentityCredentials operations. */\nexport class FederatedIdentityCredentialsImpl\n implements FederatedIdentityCredentials {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class FederatedIdentityCredentials class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Lists all the federated identity credentials under the specified user assigned identity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): PagedAsyncIterableIterator<FederatedIdentityCredential> {\n const iter = this.listPagingAll(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FederatedIdentityCredential[]> {\n let result: FederatedIdentityCredentialsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, resourceName, 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(\n resourceGroupName,\n resourceName,\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 *listPagingAll(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): AsyncIterableIterator<FederatedIdentityCredential> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n resourceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the federated identity credentials under the specified user assigned identity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): Promise<FederatedIdentityCredentialsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n listOperationSpec\n );\n }\n\n /**\n * Create or update a federated identity credential under the specified user assigned identity.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param federatedIdentityCredentialResourceName The name of the federated identity credential\n * resource.\n * @param parameters Parameters to create or update the federated identity credential.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n federatedIdentityCredentialResourceName: string,\n parameters: FederatedIdentityCredential,\n options?: FederatedIdentityCredentialsCreateOrUpdateOptionalParams\n ): Promise<FederatedIdentityCredentialsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n federatedIdentityCredentialResourceName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Gets the federated identity credential.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param federatedIdentityCredentialResourceName The name of the federated identity credential\n * resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n federatedIdentityCredentialResourceName: string,\n options?: FederatedIdentityCredentialsGetOptionalParams\n ): Promise<FederatedIdentityCredentialsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n federatedIdentityCredentialResourceName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the federated identity credential.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\n * @param federatedIdentityCredentialResourceName The name of the federated identity credential\n * resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n federatedIdentityCredentialResourceName: string,\n options?: FederatedIdentityCredentialsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceName,\n federatedIdentityCredentialResourceName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the identity resource.\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 resourceGroupName: string,\n resourceName: string,\n nextLink: string,\n options?: FederatedIdentityCredentialsListNextOptionalParams\n ): Promise<FederatedIdentityCredentialsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredentialsListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.top,\n Parameters.skiptoken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredential\n },\n 201: {\n bodyMapper: Mappers.FederatedIdentityCredential\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.federatedIdentityCredentialResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredential\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.federatedIdentityCredentialResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/federatedIdentityCredentials/{federatedIdentityCredentialResourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n Parameters.federatedIdentityCredentialResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FederatedIdentityCredentialsListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Operations operations. */
18
18
  class OperationsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Operations class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class OperationsImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listPagingPage(options, settings);
44
45
  }
45
46
  };
46
47
  }
47
- listPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._list(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Lists available operations for the Microsoft.ManagedIdentity provider
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,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ACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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 { Operations } 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 { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\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?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\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?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\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?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\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: \"/providers/Microsoft.ManagedIdentity/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\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.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IACR,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAsC,EACtC,QAAuB;QAEvB,IAAI,MAA8B,CAAC;QACnC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iB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,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,iDAAiD;IACvD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,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,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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 { Operations } 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 { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\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?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\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?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\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?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\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: \"/providers/Microsoft.ManagedIdentity/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\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.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing SystemAssignedIdentities operations. */
16
16
  class SystemAssignedIdentitiesImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class SystemAssignedIdentities class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operations/systemAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,4DAA4D;AAC5D,MAAa,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,KAAa,EACb,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA1BD,oEA0BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,iEAAiE;IACvE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,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 { SystemAssignedIdentities } 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 { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse\n} from \"../models/index.js\";\n\n/** Class containing SystemAssignedIdentities operations. */\nexport class SystemAssignedIdentitiesImpl implements SystemAssignedIdentities {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class SystemAssignedIdentities class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Gets the systemAssignedIdentity available under the specified RP scope.\n * @param scope The resource provider scope of the resource. Parent resource being extended by Managed\n * Identities.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n options?: SystemAssignedIdentitiesGetByScopeOptionalParams\n ): Promise<SystemAssignedIdentitiesGetByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getByScopeOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.ManagedIdentity/identities/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemAssignedIdentity\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operations/systemAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,KAAa,EACb,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA1BD,oEA0BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,iEAAiE;IACvE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,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 { SystemAssignedIdentities } 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 { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse\n} from \"../models/index.js\";\n\n/** Class containing SystemAssignedIdentities operations. */\nexport class SystemAssignedIdentitiesImpl implements SystemAssignedIdentities {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class SystemAssignedIdentities class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Gets the systemAssignedIdentity available under the specified RP scope.\n * @param scope The resource provider scope of the resource. Parent resource being extended by Managed\n * Identities.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n options?: SystemAssignedIdentitiesGetByScopeOptionalParams\n ): Promise<SystemAssignedIdentitiesGetByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getByScopeOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.ManagedIdentity/identities/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemAssignedIdentity\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}