@azure/arm-msi 2.1.1-alpha.20250721.1 → 2.2.0-alpha.20250724.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 (113) hide show
  1. package/CHANGELOG.md +11 -10
  2. package/LICENSE +1 -1
  3. package/README.md +1 -2
  4. package/dist/browser/managedServiceIdentityClient.d.ts +2 -1
  5. package/dist/browser/managedServiceIdentityClient.d.ts.map +1 -1
  6. package/dist/browser/managedServiceIdentityClient.js +17 -19
  7. package/dist/browser/managedServiceIdentityClient.js.map +1 -1
  8. package/dist/browser/models/index.d.ts +20 -0
  9. package/dist/browser/models/index.d.ts.map +1 -1
  10. package/dist/browser/models/index.js +8 -0
  11. package/dist/browser/models/index.js.map +1 -1
  12. package/dist/browser/models/mappers.d.ts.map +1 -1
  13. package/dist/browser/models/mappers.js +159 -147
  14. package/dist/browser/models/mappers.js.map +1 -1
  15. package/dist/browser/models/parameters.js +47 -47
  16. package/dist/browser/models/parameters.js.map +1 -1
  17. package/dist/browser/operations/federatedIdentityCredentials.d.ts.map +1 -1
  18. package/dist/browser/operations/federatedIdentityCredentials.js +30 -30
  19. package/dist/browser/operations/federatedIdentityCredentials.js.map +1 -1
  20. package/dist/browser/operations/operations.js +9 -9
  21. package/dist/browser/operations/operations.js.map +1 -1
  22. package/dist/browser/operations/systemAssignedIdentities.js +4 -4
  23. package/dist/browser/operations/systemAssignedIdentities.js.map +1 -1
  24. package/dist/browser/operations/userAssignedIdentities.js +41 -41
  25. package/dist/browser/operations/userAssignedIdentities.js.map +1 -1
  26. package/dist/browser/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  27. package/dist/browser/operationsInterfaces/operations.js.map +1 -1
  28. package/dist/browser/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  29. package/dist/browser/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  30. package/dist/browser/pagingHelper.js.map +1 -1
  31. package/dist/commonjs/managedServiceIdentityClient.d.ts +2 -1
  32. package/dist/commonjs/managedServiceIdentityClient.d.ts.map +1 -1
  33. package/dist/commonjs/managedServiceIdentityClient.js +16 -18
  34. package/dist/commonjs/managedServiceIdentityClient.js.map +1 -1
  35. package/dist/commonjs/models/index.d.ts +20 -0
  36. package/dist/commonjs/models/index.d.ts.map +1 -1
  37. package/dist/commonjs/models/index.js +9 -1
  38. package/dist/commonjs/models/index.js.map +1 -1
  39. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  40. package/dist/commonjs/models/mappers.js +159 -147
  41. package/dist/commonjs/models/mappers.js.map +1 -1
  42. package/dist/commonjs/models/parameters.js +46 -46
  43. package/dist/commonjs/models/parameters.js.map +1 -1
  44. package/dist/commonjs/operations/federatedIdentityCredentials.d.ts.map +1 -1
  45. package/dist/commonjs/operations/federatedIdentityCredentials.js +30 -30
  46. package/dist/commonjs/operations/federatedIdentityCredentials.js.map +1 -1
  47. package/dist/commonjs/operations/operations.js +9 -9
  48. package/dist/commonjs/operations/operations.js.map +1 -1
  49. package/dist/commonjs/operations/systemAssignedIdentities.js +4 -4
  50. package/dist/commonjs/operations/systemAssignedIdentities.js.map +1 -1
  51. package/dist/commonjs/operations/userAssignedIdentities.js +41 -41
  52. package/dist/commonjs/operations/userAssignedIdentities.js.map +1 -1
  53. package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  54. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  55. package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  56. package/dist/commonjs/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  57. package/dist/commonjs/pagingHelper.js.map +1 -1
  58. package/dist/esm/managedServiceIdentityClient.d.ts +2 -1
  59. package/dist/esm/managedServiceIdentityClient.d.ts.map +1 -1
  60. package/dist/esm/managedServiceIdentityClient.js +17 -19
  61. package/dist/esm/managedServiceIdentityClient.js.map +1 -1
  62. package/dist/esm/models/index.d.ts +20 -0
  63. package/dist/esm/models/index.d.ts.map +1 -1
  64. package/dist/esm/models/index.js +8 -0
  65. package/dist/esm/models/index.js.map +1 -1
  66. package/dist/esm/models/mappers.d.ts.map +1 -1
  67. package/dist/esm/models/mappers.js +159 -147
  68. package/dist/esm/models/mappers.js.map +1 -1
  69. package/dist/esm/models/parameters.js +47 -47
  70. package/dist/esm/models/parameters.js.map +1 -1
  71. package/dist/esm/operations/federatedIdentityCredentials.d.ts.map +1 -1
  72. package/dist/esm/operations/federatedIdentityCredentials.js +30 -30
  73. package/dist/esm/operations/federatedIdentityCredentials.js.map +1 -1
  74. package/dist/esm/operations/operations.js +9 -9
  75. package/dist/esm/operations/operations.js.map +1 -1
  76. package/dist/esm/operations/systemAssignedIdentities.js +4 -4
  77. package/dist/esm/operations/systemAssignedIdentities.js.map +1 -1
  78. package/dist/esm/operations/userAssignedIdentities.js +41 -41
  79. package/dist/esm/operations/userAssignedIdentities.js.map +1 -1
  80. package/dist/esm/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  81. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  82. package/dist/esm/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  83. package/dist/esm/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  84. package/dist/esm/pagingHelper.js.map +1 -1
  85. package/dist/react-native/managedServiceIdentityClient.d.ts +2 -1
  86. package/dist/react-native/managedServiceIdentityClient.d.ts.map +1 -1
  87. package/dist/react-native/managedServiceIdentityClient.js +17 -19
  88. package/dist/react-native/managedServiceIdentityClient.js.map +1 -1
  89. package/dist/react-native/models/index.d.ts +20 -0
  90. package/dist/react-native/models/index.d.ts.map +1 -1
  91. package/dist/react-native/models/index.js +8 -0
  92. package/dist/react-native/models/index.js.map +1 -1
  93. package/dist/react-native/models/mappers.d.ts.map +1 -1
  94. package/dist/react-native/models/mappers.js +159 -147
  95. package/dist/react-native/models/mappers.js.map +1 -1
  96. package/dist/react-native/models/parameters.js +47 -47
  97. package/dist/react-native/models/parameters.js.map +1 -1
  98. package/dist/react-native/operations/federatedIdentityCredentials.d.ts.map +1 -1
  99. package/dist/react-native/operations/federatedIdentityCredentials.js +30 -30
  100. package/dist/react-native/operations/federatedIdentityCredentials.js.map +1 -1
  101. package/dist/react-native/operations/operations.js +9 -9
  102. package/dist/react-native/operations/operations.js.map +1 -1
  103. package/dist/react-native/operations/systemAssignedIdentities.js +4 -4
  104. package/dist/react-native/operations/systemAssignedIdentities.js.map +1 -1
  105. package/dist/react-native/operations/userAssignedIdentities.js +41 -41
  106. package/dist/react-native/operations/userAssignedIdentities.js.map +1 -1
  107. package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  108. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  109. package/dist/react-native/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  110. package/dist/react-native/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  111. package/dist/react-native/pagingHelper.js.map +1 -1
  112. package/package.json +21 -21
  113. package/review/arm-msi-node.api.md +13 -1
@@ -42,7 +42,7 @@ class UserAssignedIdentitiesImpl {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listBySubscriptionPagingPage(options, settings);
45
- }
45
+ },
46
46
  };
47
47
  }
48
48
  async *listBySubscriptionPagingPage(options, settings) {
@@ -87,7 +87,7 @@ class UserAssignedIdentitiesImpl {
87
87
  throw new Error("maxPageSize is not supported by this operation.");
88
88
  }
89
89
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
90
- }
90
+ },
91
91
  };
92
92
  }
93
93
  async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
@@ -192,50 +192,50 @@ const listBySubscriptionOperationSpec = {
192
192
  httpMethod: "GET",
193
193
  responses: {
194
194
  200: {
195
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
195
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
196
196
  },
197
197
  default: {
198
- bodyMapper: Mappers.CloudError
199
- }
198
+ bodyMapper: Mappers.CloudError,
199
+ },
200
200
  },
201
201
  queryParameters: [Parameters.apiVersion],
202
202
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
203
203
  headerParameters: [Parameters.accept],
204
- serializer
204
+ serializer,
205
205
  };
206
206
  const listByResourceGroupOperationSpec = {
207
207
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
208
208
  httpMethod: "GET",
209
209
  responses: {
210
210
  200: {
211
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
211
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
212
212
  },
213
213
  default: {
214
- bodyMapper: Mappers.CloudError
215
- }
214
+ bodyMapper: Mappers.CloudError,
215
+ },
216
216
  },
217
217
  queryParameters: [Parameters.apiVersion],
218
218
  urlParameters: [
219
219
  Parameters.$host,
220
220
  Parameters.subscriptionId,
221
- Parameters.resourceGroupName
221
+ Parameters.resourceGroupName,
222
222
  ],
223
223
  headerParameters: [Parameters.accept],
224
- serializer
224
+ serializer,
225
225
  };
226
226
  const createOrUpdateOperationSpec = {
227
227
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
228
228
  httpMethod: "PUT",
229
229
  responses: {
230
230
  200: {
231
- bodyMapper: Mappers.Identity
231
+ bodyMapper: Mappers.Identity,
232
232
  },
233
233
  201: {
234
- bodyMapper: Mappers.Identity
234
+ bodyMapper: Mappers.Identity,
235
235
  },
236
236
  default: {
237
- bodyMapper: Mappers.CloudError
238
- }
237
+ bodyMapper: Mappers.CloudError,
238
+ },
239
239
  },
240
240
  requestBody: Parameters.parameters,
241
241
  queryParameters: [Parameters.apiVersion],
@@ -243,22 +243,22 @@ const createOrUpdateOperationSpec = {
243
243
  Parameters.$host,
244
244
  Parameters.subscriptionId,
245
245
  Parameters.resourceGroupName,
246
- Parameters.resourceName
246
+ Parameters.resourceName,
247
247
  ],
248
248
  headerParameters: [Parameters.accept, Parameters.contentType],
249
249
  mediaType: "json",
250
- serializer
250
+ serializer,
251
251
  };
252
252
  const updateOperationSpec = {
253
253
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
254
254
  httpMethod: "PATCH",
255
255
  responses: {
256
256
  200: {
257
- bodyMapper: Mappers.Identity
257
+ bodyMapper: Mappers.Identity,
258
258
  },
259
259
  default: {
260
- bodyMapper: Mappers.CloudError
261
- }
260
+ bodyMapper: Mappers.CloudError,
261
+ },
262
262
  },
263
263
  requestBody: Parameters.parameters1,
264
264
  queryParameters: [Parameters.apiVersion],
@@ -266,32 +266,32 @@ const updateOperationSpec = {
266
266
  Parameters.$host,
267
267
  Parameters.subscriptionId,
268
268
  Parameters.resourceGroupName,
269
- Parameters.resourceName
269
+ Parameters.resourceName,
270
270
  ],
271
271
  headerParameters: [Parameters.accept, Parameters.contentType],
272
272
  mediaType: "json",
273
- serializer
273
+ serializer,
274
274
  };
275
275
  const getOperationSpec = {
276
276
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
277
277
  httpMethod: "GET",
278
278
  responses: {
279
279
  200: {
280
- bodyMapper: Mappers.Identity
280
+ bodyMapper: Mappers.Identity,
281
281
  },
282
282
  default: {
283
- bodyMapper: Mappers.CloudError
284
- }
283
+ bodyMapper: Mappers.CloudError,
284
+ },
285
285
  },
286
286
  queryParameters: [Parameters.apiVersion],
287
287
  urlParameters: [
288
288
  Parameters.$host,
289
289
  Parameters.subscriptionId,
290
290
  Parameters.resourceGroupName,
291
- Parameters.resourceName
291
+ Parameters.resourceName,
292
292
  ],
293
293
  headerParameters: [Parameters.accept],
294
- serializer
294
+ serializer,
295
295
  };
296
296
  const deleteOperationSpec = {
297
297
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
@@ -300,56 +300,56 @@ const deleteOperationSpec = {
300
300
  200: {},
301
301
  204: {},
302
302
  default: {
303
- bodyMapper: Mappers.CloudError
304
- }
303
+ bodyMapper: Mappers.CloudError,
304
+ },
305
305
  },
306
306
  queryParameters: [Parameters.apiVersion],
307
307
  urlParameters: [
308
308
  Parameters.$host,
309
309
  Parameters.subscriptionId,
310
310
  Parameters.resourceGroupName,
311
- Parameters.resourceName
311
+ Parameters.resourceName,
312
312
  ],
313
313
  headerParameters: [Parameters.accept],
314
- serializer
314
+ serializer,
315
315
  };
316
316
  const listBySubscriptionNextOperationSpec = {
317
317
  path: "{nextLink}",
318
318
  httpMethod: "GET",
319
319
  responses: {
320
320
  200: {
321
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
321
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
322
322
  },
323
323
  default: {
324
- bodyMapper: Mappers.CloudError
325
- }
324
+ bodyMapper: Mappers.CloudError,
325
+ },
326
326
  },
327
327
  urlParameters: [
328
328
  Parameters.$host,
329
329
  Parameters.nextLink,
330
- Parameters.subscriptionId
330
+ Parameters.subscriptionId,
331
331
  ],
332
332
  headerParameters: [Parameters.accept],
333
- serializer
333
+ serializer,
334
334
  };
335
335
  const listByResourceGroupNextOperationSpec = {
336
336
  path: "{nextLink}",
337
337
  httpMethod: "GET",
338
338
  responses: {
339
339
  200: {
340
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
340
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
341
341
  },
342
342
  default: {
343
- bodyMapper: Mappers.CloudError
344
- }
343
+ bodyMapper: Mappers.CloudError,
344
+ },
345
345
  },
346
346
  urlParameters: [
347
347
  Parameters.$host,
348
348
  Parameters.nextLink,
349
349
  Parameters.subscriptionId,
350
- Parameters.resourceGroupName
350
+ Parameters.resourceGroupName,
351
351
  ],
352
352
  headerParameters: [Parameters.accept],
353
- serializer
353
+ serializer,
354
354
  };
355
355
  //# sourceMappingURL=userAssignedIdentities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"userAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operations/userAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IACpB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,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,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,4BAA4B,CACzC,OAAgE,EAChE,QAAuB;QAEvB,IAAI,MAAwD,CAAC;QAC7D,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;YACjD,IAAI,IAAI,GAAG,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;YAC9B,iBAAiB,GAAG,MAAM,CAAC,QAAQ,CAAC;YACpC,IAAA,sC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E,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;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 { UserAssignedIdentities } 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 Identity,\n UserAssignedIdentitiesListBySubscriptionNextOptionalParams,\n UserAssignedIdentitiesListBySubscriptionOptionalParams,\n UserAssignedIdentitiesListBySubscriptionResponse,\n UserAssignedIdentitiesListByResourceGroupNextOptionalParams,\n UserAssignedIdentitiesListByResourceGroupOptionalParams,\n UserAssignedIdentitiesListByResourceGroupResponse,\n UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateResponse,\n IdentityUpdate,\n UserAssignedIdentitiesUpdateOptionalParams,\n UserAssignedIdentitiesUpdateResponse,\n UserAssignedIdentitiesGetOptionalParams,\n UserAssignedIdentitiesGetResponse,\n UserAssignedIdentitiesDeleteOptionalParams,\n UserAssignedIdentitiesListBySubscriptionNextResponse,\n UserAssignedIdentitiesListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing UserAssignedIdentities operations. */\nexport class UserAssignedIdentitiesImpl implements UserAssignedIdentities {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class UserAssignedIdentities 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 userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Identity> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Identity[]> {\n let result: UserAssignedIdentitiesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<Identity> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Identity> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Identity[]> {\n let result: UserAssignedIdentitiesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<Identity> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams\n ): Promise<UserAssignedIdentitiesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams\n ): Promise<UserAssignedIdentitiesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Create or update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to create or update the identity\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n parameters: Identity,\n options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams\n ): Promise<UserAssignedIdentitiesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to update the identity\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n parameters: IdentityUpdate,\n options?: UserAssignedIdentitiesUpdateOptionalParams\n ): Promise<UserAssignedIdentitiesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Gets the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesGetOptionalParams\n ): Promise<UserAssignedIdentitiesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Deletes the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: UserAssignedIdentitiesListBySubscriptionNextOptionalParams\n ): Promise<UserAssignedIdentitiesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: UserAssignedIdentitiesListByResourceGroupNextOptionalParams\n ): Promise<UserAssignedIdentitiesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Identity\n },\n 201: {\n bodyMapper: Mappers.Identity\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Identity\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\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}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Identity\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\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.resourceGroupName,\n Parameters.resourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"userAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operations/userAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAsBtD,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAa,0BAA0B;IACpB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,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AU,CAAC,YAAY;KACxB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mCAAmC,GAA6B;IACpE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;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;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;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,iBAAiB;KAC7B;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 { UserAssignedIdentities } 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 Identity,\n UserAssignedIdentitiesListBySubscriptionNextOptionalParams,\n UserAssignedIdentitiesListBySubscriptionOptionalParams,\n UserAssignedIdentitiesListBySubscriptionResponse,\n UserAssignedIdentitiesListByResourceGroupNextOptionalParams,\n UserAssignedIdentitiesListByResourceGroupOptionalParams,\n UserAssignedIdentitiesListByResourceGroupResponse,\n UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateResponse,\n IdentityUpdate,\n UserAssignedIdentitiesUpdateOptionalParams,\n UserAssignedIdentitiesUpdateResponse,\n UserAssignedIdentitiesGetOptionalParams,\n UserAssignedIdentitiesGetResponse,\n UserAssignedIdentitiesDeleteOptionalParams,\n UserAssignedIdentitiesListBySubscriptionNextResponse,\n UserAssignedIdentitiesListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing UserAssignedIdentities operations. */\nexport class UserAssignedIdentitiesImpl implements UserAssignedIdentities {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class UserAssignedIdentities 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 userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Identity> {\n const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings);\n },\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Identity[]> {\n let result: UserAssignedIdentitiesListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(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._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams,\n ): AsyncIterableIterator<Identity> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Identity> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, 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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Identity[]> {\n let result: UserAssignedIdentitiesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, 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._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Identity> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all the userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams,\n ): Promise<UserAssignedIdentitiesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec,\n );\n }\n\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams,\n ): Promise<UserAssignedIdentitiesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Create or update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to create or update the identity\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n parameters: Identity,\n options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n ): Promise<UserAssignedIdentitiesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, parameters, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to update the identity\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n parameters: IdentityUpdate,\n options?: UserAssignedIdentitiesUpdateOptionalParams,\n ): Promise<UserAssignedIdentitiesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, parameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesGetOptionalParams,\n ): Promise<UserAssignedIdentitiesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: UserAssignedIdentitiesListBySubscriptionNextOptionalParams,\n ): Promise<UserAssignedIdentitiesListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: UserAssignedIdentitiesListByResourceGroupNextOptionalParams,\n ): Promise<UserAssignedIdentitiesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Identity,\n },\n 201: {\n bodyMapper: Mappers.Identity,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Identity,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Identity,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}\",\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.resourceGroupName,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.UserAssignedIdentitiesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"federatedIdentityCredentials.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/federatedIdentityCredentials.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n FederatedIdentityCredential,\n FederatedIdentityCredentialsListOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateResponse,\n FederatedIdentityCredentialsGetOptionalParams,\n FederatedIdentityCredentialsGetResponse,\n FederatedIdentityCredentialsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a FederatedIdentityCredentials. */\nexport interface FederatedIdentityCredentials {\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 list(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams\n ): PagedAsyncIterableIterator<FederatedIdentityCredential>;\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 /**\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 /**\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}\n"]}
1
+ {"version":3,"file":"federatedIdentityCredentials.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/federatedIdentityCredentials.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n FederatedIdentityCredential,\n FederatedIdentityCredentialsListOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateOptionalParams,\n FederatedIdentityCredentialsCreateOrUpdateResponse,\n FederatedIdentityCredentialsGetOptionalParams,\n FederatedIdentityCredentialsGetResponse,\n FederatedIdentityCredentialsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a FederatedIdentityCredentials. */\nexport interface FederatedIdentityCredentials {\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 list(\n resourceGroupName: string,\n resourceName: string,\n options?: FederatedIdentityCredentialsListOptionalParams,\n ): PagedAsyncIterableIterator<FederatedIdentityCredential>;\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 /**\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 /**\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}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/systemAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse\n} from \"../models/index.js\";\n\n/** Interface representing a SystemAssignedIdentities. */\nexport interface SystemAssignedIdentities {\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}\n"]}
1
+ {"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/systemAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse,\n} from \"../models/index.js\";\n\n/** Interface representing a SystemAssignedIdentities. */\nexport interface SystemAssignedIdentities {\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}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"userAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/userAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n Identity,\n UserAssignedIdentitiesListBySubscriptionOptionalParams,\n UserAssignedIdentitiesListByResourceGroupOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateResponse,\n IdentityUpdate,\n UserAssignedIdentitiesUpdateOptionalParams,\n UserAssignedIdentitiesUpdateResponse,\n UserAssignedIdentitiesGetOptionalParams,\n UserAssignedIdentitiesGetResponse,\n UserAssignedIdentitiesDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a UserAssignedIdentities. */\nexport interface UserAssignedIdentities {\n /**\n * Lists all the userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<Identity>;\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<Identity>;\n /**\n * Create or update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to create or update the identity\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n parameters: Identity,\n options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams\n ): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;\n /**\n * Update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to update the identity\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n parameters: IdentityUpdate,\n options?: UserAssignedIdentitiesUpdateOptionalParams\n ): Promise<UserAssignedIdentitiesUpdateResponse>;\n /**\n * Gets the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesGetOptionalParams\n ): Promise<UserAssignedIdentitiesGetResponse>;\n /**\n * Deletes the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesDeleteOptionalParams\n ): Promise<void>;\n}\n"]}
1
+ {"version":3,"file":"userAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/userAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","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 } from \"@azure/core-paging\";\nimport {\n Identity,\n UserAssignedIdentitiesListBySubscriptionOptionalParams,\n UserAssignedIdentitiesListByResourceGroupOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n UserAssignedIdentitiesCreateOrUpdateResponse,\n IdentityUpdate,\n UserAssignedIdentitiesUpdateOptionalParams,\n UserAssignedIdentitiesUpdateResponse,\n UserAssignedIdentitiesGetOptionalParams,\n UserAssignedIdentitiesGetResponse,\n UserAssignedIdentitiesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a UserAssignedIdentities. */\nexport interface UserAssignedIdentities {\n /**\n * Lists all the userAssignedIdentities available under the specified subscription.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: UserAssignedIdentitiesListBySubscriptionOptionalParams,\n ): PagedAsyncIterableIterator<Identity>;\n /**\n * Lists all the userAssignedIdentities available under the specified ResourceGroup.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: UserAssignedIdentitiesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Identity>;\n /**\n * Create or update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to create or update the identity\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n parameters: Identity,\n options?: UserAssignedIdentitiesCreateOrUpdateOptionalParams,\n ): Promise<UserAssignedIdentitiesCreateOrUpdateResponse>;\n /**\n * Update an identity in the specified subscription and resource group.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param parameters Parameters to update the identity\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n parameters: IdentityUpdate,\n options?: UserAssignedIdentitiesUpdateOptionalParams,\n ): Promise<UserAssignedIdentitiesUpdateResponse>;\n /**\n * Gets the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesGetOptionalParams,\n ): Promise<UserAssignedIdentitiesGetResponse>;\n /**\n * Deletes the identity.\n * @param resourceGroupName The name of the Resource Group to which the identity belongs.\n * @param resourceName The name of the identity resource.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: UserAssignedIdentitiesDeleteOptionalParams,\n ): Promise<void>;\n}\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
1
+ {"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,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\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined,\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
@@ -5,7 +5,7 @@ import { ManagedServiceIdentityClientOptionalParams } from "./models/index.js";
5
5
  export declare class ManagedServiceIdentityClient extends coreClient.ServiceClient {
6
6
  $host: string;
7
7
  apiVersion: string;
8
- subscriptionId: string;
8
+ subscriptionId?: string;
9
9
  /**
10
10
  * Initializes a new instance of the ManagedServiceIdentityClient class.
11
11
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -13,6 +13,7 @@ export declare class ManagedServiceIdentityClient extends coreClient.ServiceClie
13
13
  * @param options The parameter options
14
14
  */
15
15
  constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: ManagedServiceIdentityClientOptionalParams);
16
+ constructor(credentials: coreAuth.TokenCredential, options?: ManagedServiceIdentityClientOptionalParams);
16
17
  /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
17
18
  private addCustomApiVersionPolicy;
18
19
  systemAssignedIdentities: SystemAssignedIdentities;
@@ -1 +1 @@
1
- {"version":3,"file":"managedServiceIdentityClient.d.ts","sourceRoot":"","sources":["../../src/managedServiceIdentityClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0CAA0C,EAAE,MAAM,mBAAmB,CAAC;AAE/E,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0CAA0C;IAiFtD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D"}
1
+ {"version":3,"file":"managedServiceIdentityClient.d.ts","sourceRoot":"","sources":["../../src/managedServiceIdentityClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAO7C,OAAO,EACL,wBAAwB,EACxB,UAAU,EACV,sBAAsB,EACtB,4BAA4B,EAC7B,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0CAA0C,EAAE,MAAM,mBAAmB,CAAC;AAE/E,qBAAa,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0CAA0C;gBAGpD,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,OAAO,CAAC,EAAE,0CAA0C;IA8FtD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,wBAAwB,EAAE,wBAAwB,CAAC;IACnD,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;IAC/C,4BAA4B,EAAE,4BAA4B,CAAC;CAC5D"}
@@ -7,23 +7,21 @@
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
- import { SystemAssignedIdentitiesImpl, OperationsImpl, UserAssignedIdentitiesImpl, FederatedIdentityCredentialsImpl } from "./operations/index.js";
10
+ import { SystemAssignedIdentitiesImpl, OperationsImpl, UserAssignedIdentitiesImpl, FederatedIdentityCredentialsImpl, } from "./operations/index.js";
11
11
  export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
12
12
  $host;
13
13
  apiVersion;
14
14
  subscriptionId;
15
- /**
16
- * Initializes a new instance of the ManagedServiceIdentityClient class.
17
- * @param credentials Subscription credentials which uniquely identify client subscription.
18
- * @param subscriptionId The Id of the Subscription to which the identity belongs.
19
- * @param options The parameter options
20
- */
21
- constructor(credentials, subscriptionId, options) {
15
+ constructor(credentials, subscriptionIdOrOptions, options) {
22
16
  if (credentials === undefined) {
23
17
  throw new Error("'credentials' cannot be null");
24
18
  }
25
- if (subscriptionId === undefined) {
26
- throw new Error("'subscriptionId' cannot be null");
19
+ let subscriptionId;
20
+ if (typeof subscriptionIdOrOptions === "string") {
21
+ subscriptionId = subscriptionIdOrOptions;
22
+ }
23
+ else if (typeof subscriptionIdOrOptions === "object") {
24
+ options = subscriptionIdOrOptions;
27
25
  }
28
26
  // Initializing default values for options
29
27
  if (!options) {
@@ -31,9 +29,9 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
31
29
  }
32
30
  const defaults = {
33
31
  requestContentType: "application/json; charset=utf-8",
34
- credential: credentials
32
+ credential: credentials,
35
33
  };
36
- const packageDetails = `azsdk-js-arm-msi/2.1.1`;
34
+ const packageDetails = `azsdk-js-arm-msi/2.2.0`;
37
35
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
38
36
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
39
37
  : `${packageDetails}`;
@@ -41,9 +39,9 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
41
39
  ...defaults,
42
40
  ...options,
43
41
  userAgentOptions: {
44
- userAgentPrefix
42
+ userAgentPrefix,
45
43
  },
46
- endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
44
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com",
47
45
  };
48
46
  super(optionsWithDefaults);
49
47
  let bearerTokenAuthenticationPolicyFound = false;
@@ -57,22 +55,22 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
57
55
  options.pipeline.getOrderedPolicies().length == 0 ||
58
56
  !bearerTokenAuthenticationPolicyFound) {
59
57
  this.pipeline.removePolicy({
60
- name: coreRestPipeline.bearerTokenAuthenticationPolicyName
58
+ name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
61
59
  });
62
60
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
63
61
  credential: credentials,
64
62
  scopes: optionsWithDefaults.credentialScopes ??
65
63
  `${optionsWithDefaults.endpoint}/.default`,
66
64
  challengeCallbacks: {
67
- authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
68
- }
65
+ authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
66
+ },
69
67
  }));
70
68
  }
71
69
  // Parameter assignments
72
70
  this.subscriptionId = subscriptionId;
73
71
  // Assigning values to Constant parameters
74
72
  this.$host = options.$host || "https://management.azure.com";
75
- this.apiVersion = options.apiVersion || "2023-01-31";
73
+ this.apiVersion = options.apiVersion || "2024-11-30";
76
74
  this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
77
75
  this.operations = new OperationsImpl(this);
78
76
  this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);
@@ -100,7 +98,7 @@ export class ManagedServiceIdentityClient extends coreClient.ServiceClient {
100
98
  request.url = param[0] + "?" + newParams.join("&");
101
99
  }
102
100
  return next(request);
103
- }
101
+ },
104
102
  };
105
103
  this.pipeline.addPolicy(apiVersionPolicy);
106
104
  }
@@ -1 +1 @@
1
- {"version":3,"file":"managedServiceIdentityClient.js","sourceRoot":"","sources":["../../src/managedServiceIdentityClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,4BAA4B,EAC5B,cAAc,EACd,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,uBAAuB,CAAC;AAS/B,MAAM,OAAO,4BAA6B,SAAQ,UAAU,CAAC,aAAa;IACxE,KAAK,CAAS;IACd,UAAU,CAAS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ACnD,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO;QACT,CAAC;QACD,MAAM,gBAAgB,GAAG;YACvB,IAAI,EAAE,wBAAwB;YAC9B,KAAK,CAAC,WAAW,CACf,OAAwB,EACxB,IAAiB;gBAEjB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;gBACrC,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;oBACrB,MAAM,SAAS,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;wBACjD,IAAI,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,wBAAwB,CAA2B;IACnD,UAAU,CAAa;IACvB,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;CAC5D","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\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n SystemAssignedIdentitiesImpl,\n OperationsImpl,\n UserAssignedIdentitiesImpl,\n FederatedIdentityCredentialsImpl\n} from \"./operations/index.js\";\nimport {\n SystemAssignedIdentities,\n Operations,\n UserAssignedIdentities,\n FederatedIdentityCredentials\n} from \"./operationsInterfaces/index.js\";\nimport { ManagedServiceIdentityClientOptionalParams } from \"./models/index.js\";\n\nexport class ManagedServiceIdentityClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ManagedServiceIdentityClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Id of the Subscription to which the identity belongs.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ManagedServiceIdentityClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagedServiceIdentityClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-msi/2.1.1`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-01-31\";\n this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);\n this.operations = new OperationsImpl(this);\n this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);\n this.federatedIdentityCredentials = new FederatedIdentityCredentialsImpl(\n this\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n systemAssignedIdentities: SystemAssignedIdentities;\n operations: Operations;\n userAssignedIdentities: UserAssignedIdentities;\n federatedIdentityCredentials: FederatedIdentityCredentials;\n}\n"]}
1
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O,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,wBAAwB,CAA2B;IACnD,UAAU,CAAa;IACvB,sBAAsB,CAAyB;IAC/C,4BAA4B,CAA+B;CAC5D","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\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n SystemAssignedIdentitiesImpl,\n OperationsImpl,\n UserAssignedIdentitiesImpl,\n FederatedIdentityCredentialsImpl,\n} from \"./operations/index.js\";\nimport {\n SystemAssignedIdentities,\n Operations,\n UserAssignedIdentities,\n FederatedIdentityCredentials,\n} from \"./operationsInterfaces/index.js\";\nimport { ManagedServiceIdentityClientOptionalParams } from \"./models/index.js\";\n\nexport class ManagedServiceIdentityClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId?: string;\n\n /**\n * Initializes a new instance of the ManagedServiceIdentityClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The Id of the Subscription to which the identity belongs.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ManagedServiceIdentityClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n options?: ManagedServiceIdentityClientOptionalParams,\n );\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionIdOrOptions?:\n | ManagedServiceIdentityClientOptionalParams\n | string,\n options?: ManagedServiceIdentityClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n\n let subscriptionId: string | undefined;\n\n if (typeof subscriptionIdOrOptions === \"string\") {\n subscriptionId = subscriptionIdOrOptions;\n } else if (typeof subscriptionIdOrOptions === \"object\") {\n options = subscriptionIdOrOptions;\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ManagedServiceIdentityClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-msi/2.2.0`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-11-30\";\n this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);\n this.operations = new OperationsImpl(this);\n this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);\n this.federatedIdentityCredentials = new FederatedIdentityCredentialsImpl(\n this,\n );\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n systemAssignedIdentities: SystemAssignedIdentities;\n operations: Operations;\n userAssignedIdentities: UserAssignedIdentities;\n federatedIdentityCredentials: FederatedIdentityCredentials;\n}\n"]}
@@ -127,6 +127,8 @@ export interface IdentityUpdate extends Resource {
127
127
  * NOTE: This property will not be serialized. It can only be populated by the server.
128
128
  */
129
129
  readonly clientId?: string;
130
+ /** Enum to configure regional restrictions on identity assignment, as necessary. */
131
+ isolationScope?: IsolationScope;
130
132
  }
131
133
  /** Describes a system assigned identity resource. */
132
134
  export interface SystemAssignedIdentity extends ProxyResource {
@@ -183,6 +185,8 @@ export interface Identity extends TrackedResource {
183
185
  * NOTE: This property will not be serialized. It can only be populated by the server.
184
186
  */
185
187
  readonly clientId?: string;
188
+ /** Enum to configure regional restrictions on identity assignment, as necessary. */
189
+ isolationScope?: IsolationScope;
186
190
  }
187
191
  /** Known values of {@link CreatedByType} that the service accepts. */
188
192
  export declare enum KnownCreatedByType {
@@ -206,6 +210,22 @@ export declare enum KnownCreatedByType {
206
210
  * **Key**
207
211
  */
208
212
  export type CreatedByType = string;
213
+ /** Known values of {@link IsolationScope} that the service accepts. */
214
+ export declare enum KnownIsolationScope {
215
+ /** None */
216
+ None = "None",
217
+ /** Regional */
218
+ Regional = "Regional"
219
+ }
220
+ /**
221
+ * Defines values for IsolationScope. \
222
+ * {@link KnownIsolationScope} can be used interchangeably with IsolationScope,
223
+ * this enum contains the known values that the service supports.
224
+ * ### Known values supported by the service
225
+ * **None** \
226
+ * **Regional**
227
+ */
228
+ export type IsolationScope = string;
209
229
  /** Optional parameters. */
210
230
  export interface SystemAssignedIdentitiesGetByScopeOptionalParams extends coreClient.OperationOptions {
211
231
  }