@azure/arm-msi 2.0.1-alpha.20220208.1 → 2.1.0-beta.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 (73) hide show
  1. package/CHANGELOG.md +14 -11
  2. package/LICENSE +1 -1
  3. package/README.md +12 -1
  4. package/dist/index.js +313 -27
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.min.js +1 -1
  7. package/dist/index.min.js.map +1 -1
  8. package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
  9. package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
  10. package/dist-esm/samples-dev/operationsListSample.js +43 -0
  11. package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
  12. package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.d.ts +2 -0
  13. package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.d.ts.map +1 -0
  14. package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js +30 -0
  15. package/dist-esm/samples-dev/systemAssignedIdentitiesGetByScopeSample.js.map +1 -0
  16. package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.d.ts +2 -0
  17. package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.d.ts.map +1 -0
  18. package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js +35 -0
  19. package/dist-esm/samples-dev/userAssignedIdentitiesCreateOrUpdateSample.js.map +1 -0
  20. package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.d.ts +2 -0
  21. package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.d.ts.map +1 -0
  22. package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js +31 -0
  23. package/dist-esm/samples-dev/userAssignedIdentitiesDeleteSample.js.map +1 -0
  24. package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.d.ts +2 -0
  25. package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.d.ts.map +1 -0
  26. package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js +31 -0
  27. package/dist-esm/samples-dev/userAssignedIdentitiesGetSample.js.map +1 -0
  28. package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts +2 -0
  29. package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.d.ts.map +1 -0
  30. package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js +55 -0
  31. package/dist-esm/samples-dev/userAssignedIdentitiesListAssociatedResourcesSample.js.map +1 -0
  32. package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.d.ts +2 -0
  33. package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.d.ts.map +1 -0
  34. package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js +44 -0
  35. package/dist-esm/samples-dev/userAssignedIdentitiesListByResourceGroupSample.js.map +1 -0
  36. package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.d.ts +2 -0
  37. package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.d.ts.map +1 -0
  38. package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js +43 -0
  39. package/dist-esm/samples-dev/userAssignedIdentitiesListBySubscriptionSample.js.map +1 -0
  40. package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.d.ts +2 -0
  41. package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.d.ts.map +1 -0
  42. package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js +35 -0
  43. package/dist-esm/samples-dev/userAssignedIdentitiesUpdateSample.js.map +1 -0
  44. package/dist-esm/src/managedServiceIdentityClient.d.ts.map +1 -1
  45. package/dist-esm/src/managedServiceIdentityClient.js +4 -3
  46. package/dist-esm/src/managedServiceIdentityClient.js.map +1 -1
  47. package/dist-esm/src/models/index.d.ts +81 -0
  48. package/dist-esm/src/models/index.d.ts.map +1 -1
  49. package/dist-esm/src/models/mappers.d.ts +2 -0
  50. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  51. package/dist-esm/src/models/mappers.js +85 -0
  52. package/dist-esm/src/models/mappers.js.map +1 -1
  53. package/dist-esm/src/models/parameters.d.ts +6 -1
  54. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  55. package/dist-esm/src/models/parameters.js +62 -11
  56. package/dist-esm/src/models/parameters.js.map +1 -1
  57. package/dist-esm/src/operations/userAssignedIdentities.d.ts +26 -1
  58. package/dist-esm/src/operations/userAssignedIdentities.d.ts.map +1 -1
  59. package/dist-esm/src/operations/userAssignedIdentities.js +127 -0
  60. package/dist-esm/src/operations/userAssignedIdentities.js.map +1 -1
  61. package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts +8 -1
  62. package/dist-esm/src/operationsInterfaces/userAssignedIdentities.d.ts.map +1 -1
  63. package/package.json +25 -9
  64. package/review/arm-msi.api.md +42 -0
  65. package/rollup.config.js +6 -72
  66. package/src/managedServiceIdentityClient.ts +4 -3
  67. package/src/models/index.ts +89 -0
  68. package/src/models/mappers.ts +87 -0
  69. package/src/models/parameters.ts +68 -12
  70. package/src/operations/userAssignedIdentities.ts +172 -1
  71. package/src/operationsInterfaces/userAssignedIdentities.ts +13 -0
  72. package/tsconfig.json +19 -5
  73. package/types/arm-msi.d.ts +94 -0
package/CHANGELOG.md CHANGED
@@ -1,15 +1,18 @@
1
1
  # Release History
2
-
3
- ## 2.0.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
2
+
3
+ ## 2.1.0-beta.1 (2022-03-23)
4
+
5
+ **Features**
6
+
7
+ - Added operation UserAssignedIdentities.listAssociatedResources
8
+ - Added Interface AssociatedResourcesListResult
9
+ - Added Interface AzureResource
10
+ - Added Interface UserAssignedIdentitiesListAssociatedResourcesNextOptionalParams
11
+ - Added Interface UserAssignedIdentitiesListAssociatedResourcesOptionalParams
12
+ - Added Type Alias UserAssignedIdentitiesListAssociatedResourcesNextResponse
13
+ - Added Type Alias UserAssignedIdentitiesListAssociatedResourcesResponse
14
+
15
+
13
16
  ## 2.0.0 (2021-12-17)
14
17
 
15
18
  The package of @azure/arm-msi is using our next generation design principles since version 2.0.0, which contains breaking changes.
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2021 Microsoft
3
+ Copyright (c) 2022 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -6,7 +6,7 @@ The Managed Service Identity Client.
6
6
 
7
7
  [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/msi/arm-msi) |
8
8
  [Package (NPM)](https://www.npmjs.com/package/@azure/arm-msi) |
9
- [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-msi) |
9
+ [API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-msi?view=azure-node-preview) |
10
10
  [Samples](https://github.com/Azure-Samples/azure-samples-js-management)
11
11
 
12
12
  ## Getting started
@@ -16,6 +16,8 @@ The Managed Service Identity Client.
16
16
  - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20
+
19
21
  ### Prerequisites
20
22
 
21
23
  - An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { ManagedServiceIdentityClient } = require("@azure/arm-msi");
51
53
  const { DefaultAzureCredential } = require("@azure/identity");
54
+ // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55
+
52
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
57
  const client = new ManagedServiceIdentityClient(new DefaultAzureCredential(), subscriptionId);
58
+
59
+ // For client-side applications running in the browser, use this code instead:
60
+ // const credential = new InteractiveBrowserCredential({
61
+ // tenantId: "<YOUR_TENANT_ID>",
62
+ // clientId: "<YOUR_CLIENT_ID>"
63
+ // });
64
+ // const client = new ManagedServiceIdentityClient(credential, subscriptionId);
54
65
  ```
55
66
 
56
67
 
package/dist/index.js CHANGED
@@ -5,6 +5,26 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  var coreClient = require('@azure/core-client');
6
6
  var tslib = require('tslib');
7
7
 
8
+ function _interopNamespace(e) {
9
+ if (e && e.__esModule) return e;
10
+ var n = Object.create(null);
11
+ if (e) {
12
+ Object.keys(e).forEach(function (k) {
13
+ if (k !== 'default') {
14
+ var d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: function () { return e[k]; }
18
+ });
19
+ }
20
+ });
21
+ }
22
+ n["default"] = e;
23
+ return Object.freeze(n);
24
+ }
25
+
26
+ var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
27
+
8
28
  /*
9
29
  * Copyright (c) Microsoft Corporation.
10
30
  * Licensed under the MIT License.
@@ -199,6 +219,91 @@ const UserAssignedIdentitiesListResult = {
199
219
  }
200
220
  }
201
221
  };
222
+ const AssociatedResourcesListResult = {
223
+ type: {
224
+ name: "Composite",
225
+ className: "AssociatedResourcesListResult",
226
+ modelProperties: {
227
+ totalCount: {
228
+ serializedName: "totalCount",
229
+ readOnly: true,
230
+ type: {
231
+ name: "Number"
232
+ }
233
+ },
234
+ value: {
235
+ serializedName: "value",
236
+ readOnly: true,
237
+ type: {
238
+ name: "Sequence",
239
+ element: {
240
+ type: {
241
+ name: "Composite",
242
+ className: "AzureResource"
243
+ }
244
+ }
245
+ }
246
+ },
247
+ nextLink: {
248
+ serializedName: "nextLink",
249
+ readOnly: true,
250
+ type: {
251
+ name: "String"
252
+ }
253
+ }
254
+ }
255
+ }
256
+ };
257
+ const AzureResource = {
258
+ type: {
259
+ name: "Composite",
260
+ className: "AzureResource",
261
+ modelProperties: {
262
+ id: {
263
+ serializedName: "id",
264
+ readOnly: true,
265
+ type: {
266
+ name: "String"
267
+ }
268
+ },
269
+ name: {
270
+ serializedName: "name",
271
+ readOnly: true,
272
+ type: {
273
+ name: "String"
274
+ }
275
+ },
276
+ type: {
277
+ serializedName: "type",
278
+ readOnly: true,
279
+ type: {
280
+ name: "String"
281
+ }
282
+ },
283
+ resourceGroup: {
284
+ serializedName: "resourceGroup",
285
+ readOnly: true,
286
+ type: {
287
+ name: "String"
288
+ }
289
+ },
290
+ subscriptionId: {
291
+ serializedName: "subscriptionId",
292
+ readOnly: true,
293
+ type: {
294
+ name: "String"
295
+ }
296
+ },
297
+ subscriptionDisplayName: {
298
+ serializedName: "subscriptionDisplayName",
299
+ readOnly: true,
300
+ type: {
301
+ name: "String"
302
+ }
303
+ }
304
+ }
305
+ }
306
+ };
202
307
  const ProxyResource = {
203
308
  type: {
204
309
  name: "Composite",
@@ -339,6 +444,8 @@ var Mappers = /*#__PURE__*/Object.freeze({
339
444
  Operation: Operation,
340
445
  OperationDisplay: OperationDisplay,
341
446
  UserAssignedIdentitiesListResult: UserAssignedIdentitiesListResult,
447
+ AssociatedResourcesListResult: AssociatedResourcesListResult,
448
+ AzureResource: AzureResource,
342
449
  ProxyResource: ProxyResource,
343
450
  TrackedResource: TrackedResource,
344
451
  IdentityUpdate: IdentityUpdate,
@@ -389,7 +496,7 @@ const scope = {
389
496
  const apiVersion = {
390
497
  parameterPath: "apiVersion",
391
498
  mapper: {
392
- defaultValue: "2018-11-30",
499
+ defaultValue: "2021-09-30-preview",
393
500
  isConstant: true,
394
501
  serializedName: "api-version",
395
502
  type: {
@@ -428,6 +535,67 @@ const resourceGroupName = {
428
535
  }
429
536
  }
430
537
  };
538
+ const resourceName = {
539
+ parameterPath: "resourceName",
540
+ mapper: {
541
+ serializedName: "resourceName",
542
+ required: true,
543
+ type: {
544
+ name: "String"
545
+ }
546
+ }
547
+ };
548
+ const filter = {
549
+ parameterPath: ["options", "filter"],
550
+ mapper: {
551
+ serializedName: "$filter",
552
+ type: {
553
+ name: "String"
554
+ }
555
+ }
556
+ };
557
+ const orderby = {
558
+ parameterPath: ["options", "orderby"],
559
+ mapper: {
560
+ serializedName: "$orderby",
561
+ type: {
562
+ name: "String"
563
+ }
564
+ }
565
+ };
566
+ const top = {
567
+ parameterPath: ["options", "top"],
568
+ mapper: {
569
+ constraints: {
570
+ InclusiveMinimum: 1
571
+ },
572
+ serializedName: "$top",
573
+ type: {
574
+ name: "Number"
575
+ }
576
+ }
577
+ };
578
+ const skip = {
579
+ parameterPath: ["options", "skip"],
580
+ mapper: {
581
+ constraints: {
582
+ InclusiveMinimum: 1
583
+ },
584
+ serializedName: "$skip",
585
+ type: {
586
+ name: "Number"
587
+ }
588
+ }
589
+ };
590
+ const skiptoken = {
591
+ parameterPath: ["options", "skiptoken"],
592
+ mapper: {
593
+ serializedName: "$skiptoken",
594
+ type: {
595
+ name: "String"
596
+ }
597
+ }
598
+ };
431
599
  const contentType = {
432
600
  parameterPath: ["options", "contentType"],
433
601
  mapper: {
@@ -443,16 +611,6 @@ const parameters = {
443
611
  parameterPath: "parameters",
444
612
  mapper: Identity
445
613
  };
446
- const resourceName = {
447
- parameterPath: "resourceName",
448
- mapper: {
449
- serializedName: "resourceName",
450
- required: true,
451
- type: {
452
- name: "String"
453
- }
454
- }
455
- };
456
614
  const parameters1 = {
457
615
  parameterPath: "parameters",
458
616
  mapper: IdentityUpdate
@@ -485,7 +643,7 @@ class SystemAssignedIdentitiesImpl {
485
643
  }
486
644
  }
487
645
  // Operation Specifications
488
- const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
646
+ const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
489
647
  const getByScopeOperationSpec = {
490
648
  path: "/{scope}/providers/Microsoft.ManagedIdentity/identities/default",
491
649
  httpMethod: "GET",
@@ -500,7 +658,7 @@ const getByScopeOperationSpec = {
500
658
  queryParameters: [apiVersion],
501
659
  urlParameters: [$host, scope],
502
660
  headerParameters: [accept],
503
- serializer
661
+ serializer: serializer$2
504
662
  };
505
663
 
506
664
  /*
@@ -585,7 +743,7 @@ class OperationsImpl {
585
743
  }
586
744
  }
587
745
  // Operation Specifications
588
- const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
746
+ const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
589
747
  const listOperationSpec = {
590
748
  path: "/providers/Microsoft.ManagedIdentity/operations",
591
749
  httpMethod: "GET",
@@ -733,6 +891,56 @@ class UserAssignedIdentitiesImpl {
733
891
  }
734
892
  });
735
893
  }
894
+ /**
895
+ * Lists the associated resources for this identity.
896
+ * @param resourceGroupName The name of the Resource Group to which the identity belongs.
897
+ * @param resourceName The name of the identity resource.
898
+ * @param options The options parameters.
899
+ */
900
+ listAssociatedResources(resourceGroupName, resourceName, options) {
901
+ const iter = this.listAssociatedResourcesPagingAll(resourceGroupName, resourceName, options);
902
+ return {
903
+ next() {
904
+ return iter.next();
905
+ },
906
+ [Symbol.asyncIterator]() {
907
+ return this;
908
+ },
909
+ byPage: () => {
910
+ return this.listAssociatedResourcesPagingPage(resourceGroupName, resourceName, options);
911
+ }
912
+ };
913
+ }
914
+ listAssociatedResourcesPagingPage(resourceGroupName, resourceName, options) {
915
+ return tslib.__asyncGenerator(this, arguments, function* listAssociatedResourcesPagingPage_1() {
916
+ let result = yield tslib.__await(this._listAssociatedResources(resourceGroupName, resourceName, options));
917
+ yield yield tslib.__await(result.value || []);
918
+ let continuationToken = result.nextLink;
919
+ while (continuationToken) {
920
+ result = yield tslib.__await(this._listAssociatedResourcesNext(resourceGroupName, resourceName, continuationToken, options));
921
+ continuationToken = result.nextLink;
922
+ yield yield tslib.__await(result.value || []);
923
+ }
924
+ });
925
+ }
926
+ listAssociatedResourcesPagingAll(resourceGroupName, resourceName, options) {
927
+ return tslib.__asyncGenerator(this, arguments, function* listAssociatedResourcesPagingAll_1() {
928
+ var e_3, _a;
929
+ try {
930
+ for (var _b = tslib.__asyncValues(this.listAssociatedResourcesPagingPage(resourceGroupName, resourceName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
931
+ const page = _c.value;
932
+ yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
933
+ }
934
+ }
935
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
936
+ finally {
937
+ try {
938
+ if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
939
+ }
940
+ finally { if (e_3) throw e_3.error; }
941
+ }
942
+ });
943
+ }
736
944
  /**
737
945
  * Lists all the userAssignedIdentities available under the specified subscription.
738
946
  * @param options The options parameters.
@@ -748,6 +956,15 @@ class UserAssignedIdentitiesImpl {
748
956
  _listByResourceGroup(resourceGroupName, options) {
749
957
  return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
750
958
  }
959
+ /**
960
+ * Lists the associated resources for this identity.
961
+ * @param resourceGroupName The name of the Resource Group to which the identity belongs.
962
+ * @param resourceName The name of the identity resource.
963
+ * @param options The options parameters.
964
+ */
965
+ _listAssociatedResources(resourceGroupName, resourceName, options) {
966
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listAssociatedResourcesOperationSpec);
967
+ }
751
968
  /**
752
969
  * Create or update an identity in the specified subscription and resource group.
753
970
  * @param resourceGroupName The name of the Resource Group to which the identity belongs.
@@ -803,9 +1020,20 @@ class UserAssignedIdentitiesImpl {
803
1020
  _listByResourceGroupNext(resourceGroupName, nextLink, options) {
804
1021
  return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
805
1022
  }
1023
+ /**
1024
+ * ListAssociatedResourcesNext
1025
+ * @param resourceGroupName The name of the Resource Group to which the identity belongs.
1026
+ * @param resourceName The name of the identity resource.
1027
+ * @param nextLink The nextLink from the previous successful call to the ListAssociatedResources
1028
+ * method.
1029
+ * @param options The options parameters.
1030
+ */
1031
+ _listAssociatedResourcesNext(resourceGroupName, resourceName, nextLink, options) {
1032
+ return this.client.sendOperationRequest({ resourceGroupName, resourceName, nextLink, options }, listAssociatedResourcesNextOperationSpec);
1033
+ }
806
1034
  }
807
1035
  // Operation Specifications
808
- const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
1036
+ const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
809
1037
  const listBySubscriptionOperationSpec = {
810
1038
  path: "/subscriptions/{subscriptionId}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
811
1039
  httpMethod: "GET",
@@ -820,7 +1048,7 @@ const listBySubscriptionOperationSpec = {
820
1048
  queryParameters: [apiVersion],
821
1049
  urlParameters: [$host, subscriptionId],
822
1050
  headerParameters: [accept],
823
- serializer: serializer$2
1051
+ serializer
824
1052
  };
825
1053
  const listByResourceGroupOperationSpec = {
826
1054
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
@@ -840,7 +1068,35 @@ const listByResourceGroupOperationSpec = {
840
1068
  resourceGroupName
841
1069
  ],
842
1070
  headerParameters: [accept],
843
- serializer: serializer$2
1071
+ serializer
1072
+ };
1073
+ const listAssociatedResourcesOperationSpec = {
1074
+ path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}/listAssociatedResources",
1075
+ httpMethod: "POST",
1076
+ responses: {
1077
+ 200: {
1078
+ bodyMapper: AssociatedResourcesListResult
1079
+ },
1080
+ default: {
1081
+ bodyMapper: CloudError
1082
+ }
1083
+ },
1084
+ queryParameters: [
1085
+ apiVersion,
1086
+ filter,
1087
+ orderby,
1088
+ top,
1089
+ skip,
1090
+ skiptoken
1091
+ ],
1092
+ urlParameters: [
1093
+ $host,
1094
+ subscriptionId,
1095
+ resourceGroupName,
1096
+ resourceName
1097
+ ],
1098
+ headerParameters: [accept],
1099
+ serializer
844
1100
  };
845
1101
  const createOrUpdateOperationSpec = {
846
1102
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
@@ -866,7 +1122,7 @@ const createOrUpdateOperationSpec = {
866
1122
  ],
867
1123
  headerParameters: [accept, contentType],
868
1124
  mediaType: "json",
869
- serializer: serializer$2
1125
+ serializer
870
1126
  };
871
1127
  const updateOperationSpec = {
872
1128
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
@@ -889,7 +1145,7 @@ const updateOperationSpec = {
889
1145
  ],
890
1146
  headerParameters: [accept, contentType],
891
1147
  mediaType: "json",
892
- serializer: serializer$2
1148
+ serializer
893
1149
  };
894
1150
  const getOperationSpec = {
895
1151
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
@@ -910,7 +1166,7 @@ const getOperationSpec = {
910
1166
  resourceName
911
1167
  ],
912
1168
  headerParameters: [accept],
913
- serializer: serializer$2
1169
+ serializer
914
1170
  };
915
1171
  const deleteOperationSpec = {
916
1172
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
@@ -930,7 +1186,7 @@ const deleteOperationSpec = {
930
1186
  resourceName
931
1187
  ],
932
1188
  headerParameters: [accept],
933
- serializer: serializer$2
1189
+ serializer
934
1190
  };
935
1191
  const listBySubscriptionNextOperationSpec = {
936
1192
  path: "{nextLink}",
@@ -950,7 +1206,7 @@ const listBySubscriptionNextOperationSpec = {
950
1206
  subscriptionId
951
1207
  ],
952
1208
  headerParameters: [accept],
953
- serializer: serializer$2
1209
+ serializer
954
1210
  };
955
1211
  const listByResourceGroupNextOperationSpec = {
956
1212
  path: "{nextLink}",
@@ -971,7 +1227,36 @@ const listByResourceGroupNextOperationSpec = {
971
1227
  resourceGroupName
972
1228
  ],
973
1229
  headerParameters: [accept],
974
- serializer: serializer$2
1230
+ serializer
1231
+ };
1232
+ const listAssociatedResourcesNextOperationSpec = {
1233
+ path: "{nextLink}",
1234
+ httpMethod: "GET",
1235
+ responses: {
1236
+ 200: {
1237
+ bodyMapper: AssociatedResourcesListResult
1238
+ },
1239
+ default: {
1240
+ bodyMapper: CloudError
1241
+ }
1242
+ },
1243
+ queryParameters: [
1244
+ apiVersion,
1245
+ filter,
1246
+ orderby,
1247
+ top,
1248
+ skip,
1249
+ skiptoken
1250
+ ],
1251
+ urlParameters: [
1252
+ $host,
1253
+ nextLink,
1254
+ subscriptionId,
1255
+ resourceGroupName,
1256
+ resourceName
1257
+ ],
1258
+ headerParameters: [accept],
1259
+ serializer
975
1260
  };
976
1261
 
977
1262
  /*
@@ -981,7 +1266,7 @@ const listByResourceGroupNextOperationSpec = {
981
1266
  * Code generated by Microsoft (R) AutoRest Code Generator.
982
1267
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
983
1268
  */
984
- class ManagedServiceIdentityClient extends coreClient.ServiceClient {
1269
+ class ManagedServiceIdentityClient extends coreClient__namespace.ServiceClient {
985
1270
  /**
986
1271
  * Initializes a new instance of the ManagedServiceIdentityClient class.
987
1272
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -989,6 +1274,7 @@ class ManagedServiceIdentityClient extends coreClient.ServiceClient {
989
1274
  * @param options The parameter options
990
1275
  */
991
1276
  constructor(credentials, subscriptionId, options) {
1277
+ var _a, _b;
992
1278
  if (credentials === undefined) {
993
1279
  throw new Error("'credentials' cannot be null");
994
1280
  }
@@ -1003,7 +1289,7 @@ class ManagedServiceIdentityClient extends coreClient.ServiceClient {
1003
1289
  requestContentType: "application/json; charset=utf-8",
1004
1290
  credential: credentials
1005
1291
  };
1006
- const packageDetails = `azsdk-js-arm-msi/2.0.0`;
1292
+ const packageDetails = `azsdk-js-arm-msi/2.1.0-beta.1`;
1007
1293
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
1008
1294
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
1009
1295
  : `${packageDetails}`;
@@ -1012,13 +1298,13 @@ class ManagedServiceIdentityClient extends coreClient.ServiceClient {
1012
1298
  }
1013
1299
  const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
1014
1300
  userAgentPrefix
1015
- }, baseUri: options.endpoint || "https://management.azure.com" });
1301
+ }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
1016
1302
  super(optionsWithDefaults);
1017
1303
  // Parameter assignments
1018
1304
  this.subscriptionId = subscriptionId;
1019
1305
  // Assigning values to Constant parameters
1020
1306
  this.$host = options.$host || "https://management.azure.com";
1021
- this.apiVersion = options.apiVersion || "2018-11-30";
1307
+ this.apiVersion = options.apiVersion || "2021-09-30-preview";
1022
1308
  this.systemAssignedIdentities = new SystemAssignedIdentitiesImpl(this);
1023
1309
  this.operations = new OperationsImpl(this);
1024
1310
  this.userAssignedIdentities = new UserAssignedIdentitiesImpl(this);