@azure/arm-msi 2.1.1-alpha.20250718.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 (118) 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 +33 -23
  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 +203 -160
  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 +53 -70
  19. package/dist/browser/operations/federatedIdentityCredentials.js.map +1 -1
  20. package/dist/browser/operations/operations.js +32 -49
  21. package/dist/browser/operations/operations.js.map +1 -1
  22. package/dist/browser/operations/systemAssignedIdentities.js +5 -4
  23. package/dist/browser/operations/systemAssignedIdentities.js.map +1 -1
  24. package/dist/browser/operations/userAssignedIdentities.js +86 -120
  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 +2 -4
  31. package/dist/browser/pagingHelper.js.map +1 -1
  32. package/dist/commonjs/managedServiceIdentityClient.d.ts +2 -1
  33. package/dist/commonjs/managedServiceIdentityClient.d.ts.map +1 -1
  34. package/dist/commonjs/managedServiceIdentityClient.js +32 -22
  35. package/dist/commonjs/managedServiceIdentityClient.js.map +1 -1
  36. package/dist/commonjs/models/index.d.ts +20 -0
  37. package/dist/commonjs/models/index.d.ts.map +1 -1
  38. package/dist/commonjs/models/index.js +9 -1
  39. package/dist/commonjs/models/index.js.map +1 -1
  40. package/dist/commonjs/models/mappers.d.ts.map +1 -1
  41. package/dist/commonjs/models/mappers.js +203 -160
  42. package/dist/commonjs/models/mappers.js.map +1 -1
  43. package/dist/commonjs/models/parameters.js +46 -46
  44. package/dist/commonjs/models/parameters.js.map +1 -1
  45. package/dist/commonjs/operations/federatedIdentityCredentials.d.ts.map +1 -1
  46. package/dist/commonjs/operations/federatedIdentityCredentials.js +53 -69
  47. package/dist/commonjs/operations/federatedIdentityCredentials.js.map +1 -1
  48. package/dist/commonjs/operations/operations.js +32 -48
  49. package/dist/commonjs/operations/operations.js.map +1 -1
  50. package/dist/commonjs/operations/systemAssignedIdentities.js +5 -4
  51. package/dist/commonjs/operations/systemAssignedIdentities.js.map +1 -1
  52. package/dist/commonjs/operations/userAssignedIdentities.js +86 -119
  53. package/dist/commonjs/operations/userAssignedIdentities.js.map +1 -1
  54. package/dist/commonjs/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  55. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
  56. package/dist/commonjs/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  57. package/dist/commonjs/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  58. package/dist/commonjs/pagingHelper.js +2 -4
  59. package/dist/commonjs/pagingHelper.js.map +1 -1
  60. package/dist/commonjs/tsdoc-metadata.json +11 -11
  61. package/dist/esm/managedServiceIdentityClient.d.ts +2 -1
  62. package/dist/esm/managedServiceIdentityClient.d.ts.map +1 -1
  63. package/dist/esm/managedServiceIdentityClient.js +33 -23
  64. package/dist/esm/managedServiceIdentityClient.js.map +1 -1
  65. package/dist/esm/models/index.d.ts +20 -0
  66. package/dist/esm/models/index.d.ts.map +1 -1
  67. package/dist/esm/models/index.js +8 -0
  68. package/dist/esm/models/index.js.map +1 -1
  69. package/dist/esm/models/mappers.d.ts.map +1 -1
  70. package/dist/esm/models/mappers.js +203 -160
  71. package/dist/esm/models/mappers.js.map +1 -1
  72. package/dist/esm/models/parameters.js +47 -47
  73. package/dist/esm/models/parameters.js.map +1 -1
  74. package/dist/esm/operations/federatedIdentityCredentials.d.ts.map +1 -1
  75. package/dist/esm/operations/federatedIdentityCredentials.js +53 -70
  76. package/dist/esm/operations/federatedIdentityCredentials.js.map +1 -1
  77. package/dist/esm/operations/operations.js +32 -49
  78. package/dist/esm/operations/operations.js.map +1 -1
  79. package/dist/esm/operations/systemAssignedIdentities.js +5 -4
  80. package/dist/esm/operations/systemAssignedIdentities.js.map +1 -1
  81. package/dist/esm/operations/userAssignedIdentities.js +86 -120
  82. package/dist/esm/operations/userAssignedIdentities.js.map +1 -1
  83. package/dist/esm/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  84. package/dist/esm/operationsInterfaces/operations.js.map +1 -1
  85. package/dist/esm/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  86. package/dist/esm/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  87. package/dist/esm/pagingHelper.js +2 -4
  88. package/dist/esm/pagingHelper.js.map +1 -1
  89. package/dist/react-native/managedServiceIdentityClient.d.ts +2 -1
  90. package/dist/react-native/managedServiceIdentityClient.d.ts.map +1 -1
  91. package/dist/react-native/managedServiceIdentityClient.js +33 -23
  92. package/dist/react-native/managedServiceIdentityClient.js.map +1 -1
  93. package/dist/react-native/models/index.d.ts +20 -0
  94. package/dist/react-native/models/index.d.ts.map +1 -1
  95. package/dist/react-native/models/index.js +8 -0
  96. package/dist/react-native/models/index.js.map +1 -1
  97. package/dist/react-native/models/mappers.d.ts.map +1 -1
  98. package/dist/react-native/models/mappers.js +203 -160
  99. package/dist/react-native/models/mappers.js.map +1 -1
  100. package/dist/react-native/models/parameters.js +47 -47
  101. package/dist/react-native/models/parameters.js.map +1 -1
  102. package/dist/react-native/operations/federatedIdentityCredentials.d.ts.map +1 -1
  103. package/dist/react-native/operations/federatedIdentityCredentials.js +53 -70
  104. package/dist/react-native/operations/federatedIdentityCredentials.js.map +1 -1
  105. package/dist/react-native/operations/operations.js +32 -49
  106. package/dist/react-native/operations/operations.js.map +1 -1
  107. package/dist/react-native/operations/systemAssignedIdentities.js +5 -4
  108. package/dist/react-native/operations/systemAssignedIdentities.js.map +1 -1
  109. package/dist/react-native/operations/userAssignedIdentities.js +86 -120
  110. package/dist/react-native/operations/userAssignedIdentities.js.map +1 -1
  111. package/dist/react-native/operationsInterfaces/federatedIdentityCredentials.js.map +1 -1
  112. package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
  113. package/dist/react-native/operationsInterfaces/systemAssignedIdentities.js.map +1 -1
  114. package/dist/react-native/operationsInterfaces/userAssignedIdentities.js.map +1 -1
  115. package/dist/react-native/pagingHelper.js +2 -4
  116. package/dist/react-native/pagingHelper.js.map +1 -1
  117. package/package.json +22 -22
  118. package/review/arm-msi-node.api.md +313 -301
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing Operations operations. */
18
18
  class OperationsImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class Operations class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class OperationsImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listPagingPage(options, settings);
44
- }
45
+ },
45
46
  };
46
47
  }
47
- listPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._list(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._list(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listPagingAll(options) {
67
+ for await (const page of this.listPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Lists available operations for the Microsoft.ManagedIdentity provider
@@ -108,30 +92,30 @@ const listOperationSpec = {
108
92
  httpMethod: "GET",
109
93
  responses: {
110
94
  200: {
111
- bodyMapper: Mappers.OperationListResult
95
+ bodyMapper: Mappers.OperationListResult,
112
96
  },
113
97
  default: {
114
- bodyMapper: Mappers.CloudError
115
- }
98
+ bodyMapper: Mappers.CloudError,
99
+ },
116
100
  },
117
101
  queryParameters: [Parameters.apiVersion],
118
102
  urlParameters: [Parameters.$host],
119
103
  headerParameters: [Parameters.accept],
120
- serializer
104
+ serializer,
121
105
  };
122
106
  const listNextOperationSpec = {
123
107
  path: "{nextLink}",
124
108
  httpMethod: "GET",
125
109
  responses: {
126
110
  200: {
127
- bodyMapper: Mappers.OperationListResult
111
+ bodyMapper: Mappers.OperationListResult,
128
112
  },
129
113
  default: {
130
- bodyMapper: Mappers.CloudError
131
- }
114
+ bodyMapper: Mappers.CloudError,
115
+ },
132
116
  },
133
117
  urlParameters: [Parameters.$host, Parameters.nextLink],
134
118
  headerParameters: [Parameters.accept],
135
- serializer
119
+ serializer,
136
120
  };
137
121
  //# sourceMappingURL=operations.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,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AE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagedIdentity/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources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AAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Microsoft.ManagedIdentity provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams,\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.ManagedIdentity/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing SystemAssignedIdentities operations. */
16
16
  class SystemAssignedIdentitiesImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class SystemAssignedIdentities class.
19
20
  * @param client Reference to the service client
@@ -39,15 +40,15 @@ const getByScopeOperationSpec = {
39
40
  httpMethod: "GET",
40
41
  responses: {
41
42
  200: {
42
- bodyMapper: Mappers.SystemAssignedIdentity
43
+ bodyMapper: Mappers.SystemAssignedIdentity,
43
44
  },
44
45
  default: {
45
- bodyMapper: Mappers.CloudError
46
- }
46
+ bodyMapper: Mappers.CloudError,
47
+ },
47
48
  },
48
49
  queryParameters: [Parameters.apiVersion],
49
50
  urlParameters: [Parameters.$host, Parameters.scope],
50
51
  headerParameters: [Parameters.accept],
51
- serializer
52
+ serializer,
52
53
  };
53
54
  //# sourceMappingURL=systemAssignedIdentities.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operations/systemAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,4DAA4D;AAC5D,MAAa,4BAA4B;IAGvC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,KAAa,EACb,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA1BD,oEA0BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,iEAAiE;IACvE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SystemAssignedIdentities } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse\n} from \"../models/index.js\";\n\n/** Class containing SystemAssignedIdentities operations. */\nexport class SystemAssignedIdentitiesImpl implements SystemAssignedIdentities {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class SystemAssignedIdentities class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Gets the systemAssignedIdentity available under the specified RP scope.\n * @param scope The resource provider scope of the resource. Parent resource being extended by Managed\n * Identities.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n options?: SystemAssignedIdentitiesGetByScopeOptionalParams\n ): Promise<SystemAssignedIdentitiesGetByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getByScopeOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.ManagedIdentity/identities/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemAssignedIdentity\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"systemAssignedIdentities.js","sourceRoot":"","sources":["../../../src/operations/systemAssignedIdentities.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,4DAA4D;AAC5D,MAAa,4BAA4B;IACtB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,UAAU,CACR,KAAa,EACb,OAA0D;QAE1D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,OAAO,EAAE,EAClB,uBAAuB,CACxB,CAAC;IACJ,CAAC;CACF;AA1BD,oEA0BC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uBAAuB,GAA6B;IACxD,IAAI,EAAE,iEAAiE;IACvE,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { SystemAssignedIdentities } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { ManagedServiceIdentityClient } from \"../managedServiceIdentityClient.js\";\nimport {\n SystemAssignedIdentitiesGetByScopeOptionalParams,\n SystemAssignedIdentitiesGetByScopeResponse,\n} from \"../models/index.js\";\n\n/** Class containing SystemAssignedIdentities operations. */\nexport class SystemAssignedIdentitiesImpl implements SystemAssignedIdentities {\n private readonly client: ManagedServiceIdentityClient;\n\n /**\n * Initialize a new instance of the class SystemAssignedIdentities class.\n * @param client Reference to the service client\n */\n constructor(client: ManagedServiceIdentityClient) {\n this.client = client;\n }\n\n /**\n * Gets the systemAssignedIdentity available under the specified RP scope.\n * @param scope The resource provider scope of the resource. Parent resource being extended by Managed\n * Identities.\n * @param options The options parameters.\n */\n getByScope(\n scope: string,\n options?: SystemAssignedIdentitiesGetByScopeOptionalParams,\n ): Promise<SystemAssignedIdentitiesGetByScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n getByScopeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getByScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.ManagedIdentity/identities/default\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SystemAssignedIdentity,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing UserAssignedIdentities operations. */
18
18
  class UserAssignedIdentitiesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class UserAssignedIdentities class.
21
22
  * @param client Reference to the service client
@@ -37,52 +38,35 @@ class UserAssignedIdentitiesImpl {
37
38
  return this;
38
39
  },
39
40
  byPage: (settings) => {
40
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
41
42
  throw new Error("maxPageSize is not supported by this operation.");
42
43
  }
43
44
  return this.listBySubscriptionPagingPage(options, settings);
44
- }
45
+ },
45
46
  };
46
47
  }
47
- listBySubscriptionPagingPage(options, settings) {
48
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
49
- let result;
50
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
51
- if (!continuationToken) {
52
- result = yield tslib_1.__await(this._listBySubscription(options));
53
- let page = result.value || [];
54
- continuationToken = result.nextLink;
55
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
- yield yield tslib_1.__await(page);
57
- }
58
- while (continuationToken) {
59
- result = yield tslib_1.__await(this._listBySubscriptionNext(continuationToken, options));
60
- continuationToken = result.nextLink;
61
- let page = result.value || [];
62
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
- yield yield tslib_1.__await(page);
64
- }
65
- });
48
+ async *listBySubscriptionPagingPage(options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listBySubscription(options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listBySubscriptionNext(continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
63
+ yield page;
64
+ }
66
65
  }
67
- listBySubscriptionPagingAll(options) {
68
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
69
- var _a, e_1, _b, _c;
70
- try {
71
- for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
72
- _c = _f.value;
73
- _d = false;
74
- const page = _c;
75
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
76
- }
77
- }
78
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
79
- finally {
80
- try {
81
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
82
- }
83
- finally { if (e_1) throw e_1.error; }
84
- }
85
- });
66
+ async *listBySubscriptionPagingAll(options) {
67
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
68
+ yield* page;
69
+ }
86
70
  }
87
71
  /**
88
72
  * Lists all the userAssignedIdentities available under the specified ResourceGroup.
@@ -99,52 +83,35 @@ class UserAssignedIdentitiesImpl {
99
83
  return this;
100
84
  },
101
85
  byPage: (settings) => {
102
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
86
+ if (settings?.maxPageSize) {
103
87
  throw new Error("maxPageSize is not supported by this operation.");
104
88
  }
105
89
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
106
- }
90
+ },
107
91
  };
108
92
  }
109
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
110
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
111
- let result;
112
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
113
- if (!continuationToken) {
114
- result = yield tslib_1.__await(this._listByResourceGroup(resourceGroupName, options));
115
- let page = result.value || [];
116
- continuationToken = result.nextLink;
117
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
118
- yield yield tslib_1.__await(page);
119
- }
120
- while (continuationToken) {
121
- result = yield tslib_1.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
122
- continuationToken = result.nextLink;
123
- let page = result.value || [];
124
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
125
- yield yield tslib_1.__await(page);
126
- }
127
- });
93
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
94
+ let result;
95
+ let continuationToken = settings?.continuationToken;
96
+ if (!continuationToken) {
97
+ result = await this._listByResourceGroup(resourceGroupName, options);
98
+ let page = result.value || [];
99
+ continuationToken = result.nextLink;
100
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
101
+ yield page;
102
+ }
103
+ while (continuationToken) {
104
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
105
+ continuationToken = result.nextLink;
106
+ let page = result.value || [];
107
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
108
+ yield page;
109
+ }
128
110
  }
129
- listByResourceGroupPagingAll(resourceGroupName, options) {
130
- return tslib_1.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
131
- var _a, e_2, _b, _c;
132
- try {
133
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
134
- _c = _f.value;
135
- _d = false;
136
- const page = _c;
137
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
138
- }
139
- }
140
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
141
- finally {
142
- try {
143
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
144
- }
145
- finally { if (e_2) throw e_2.error; }
146
- }
147
- });
111
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
112
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
113
+ yield* page;
114
+ }
148
115
  }
149
116
  /**
150
117
  * Lists all the userAssignedIdentities available under the specified subscription.
@@ -225,50 +192,50 @@ const listBySubscriptionOperationSpec = {
225
192
  httpMethod: "GET",
226
193
  responses: {
227
194
  200: {
228
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
195
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
229
196
  },
230
197
  default: {
231
- bodyMapper: Mappers.CloudError
232
- }
198
+ bodyMapper: Mappers.CloudError,
199
+ },
233
200
  },
234
201
  queryParameters: [Parameters.apiVersion],
235
202
  urlParameters: [Parameters.$host, Parameters.subscriptionId],
236
203
  headerParameters: [Parameters.accept],
237
- serializer
204
+ serializer,
238
205
  };
239
206
  const listByResourceGroupOperationSpec = {
240
207
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities",
241
208
  httpMethod: "GET",
242
209
  responses: {
243
210
  200: {
244
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
211
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
245
212
  },
246
213
  default: {
247
- bodyMapper: Mappers.CloudError
248
- }
214
+ bodyMapper: Mappers.CloudError,
215
+ },
249
216
  },
250
217
  queryParameters: [Parameters.apiVersion],
251
218
  urlParameters: [
252
219
  Parameters.$host,
253
220
  Parameters.subscriptionId,
254
- Parameters.resourceGroupName
221
+ Parameters.resourceGroupName,
255
222
  ],
256
223
  headerParameters: [Parameters.accept],
257
- serializer
224
+ serializer,
258
225
  };
259
226
  const createOrUpdateOperationSpec = {
260
227
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
261
228
  httpMethod: "PUT",
262
229
  responses: {
263
230
  200: {
264
- bodyMapper: Mappers.Identity
231
+ bodyMapper: Mappers.Identity,
265
232
  },
266
233
  201: {
267
- bodyMapper: Mappers.Identity
234
+ bodyMapper: Mappers.Identity,
268
235
  },
269
236
  default: {
270
- bodyMapper: Mappers.CloudError
271
- }
237
+ bodyMapper: Mappers.CloudError,
238
+ },
272
239
  },
273
240
  requestBody: Parameters.parameters,
274
241
  queryParameters: [Parameters.apiVersion],
@@ -276,22 +243,22 @@ const createOrUpdateOperationSpec = {
276
243
  Parameters.$host,
277
244
  Parameters.subscriptionId,
278
245
  Parameters.resourceGroupName,
279
- Parameters.resourceName
246
+ Parameters.resourceName,
280
247
  ],
281
248
  headerParameters: [Parameters.accept, Parameters.contentType],
282
249
  mediaType: "json",
283
- serializer
250
+ serializer,
284
251
  };
285
252
  const updateOperationSpec = {
286
253
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
287
254
  httpMethod: "PATCH",
288
255
  responses: {
289
256
  200: {
290
- bodyMapper: Mappers.Identity
257
+ bodyMapper: Mappers.Identity,
291
258
  },
292
259
  default: {
293
- bodyMapper: Mappers.CloudError
294
- }
260
+ bodyMapper: Mappers.CloudError,
261
+ },
295
262
  },
296
263
  requestBody: Parameters.parameters1,
297
264
  queryParameters: [Parameters.apiVersion],
@@ -299,32 +266,32 @@ const updateOperationSpec = {
299
266
  Parameters.$host,
300
267
  Parameters.subscriptionId,
301
268
  Parameters.resourceGroupName,
302
- Parameters.resourceName
269
+ Parameters.resourceName,
303
270
  ],
304
271
  headerParameters: [Parameters.accept, Parameters.contentType],
305
272
  mediaType: "json",
306
- serializer
273
+ serializer,
307
274
  };
308
275
  const getOperationSpec = {
309
276
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
310
277
  httpMethod: "GET",
311
278
  responses: {
312
279
  200: {
313
- bodyMapper: Mappers.Identity
280
+ bodyMapper: Mappers.Identity,
314
281
  },
315
282
  default: {
316
- bodyMapper: Mappers.CloudError
317
- }
283
+ bodyMapper: Mappers.CloudError,
284
+ },
318
285
  },
319
286
  queryParameters: [Parameters.apiVersion],
320
287
  urlParameters: [
321
288
  Parameters.$host,
322
289
  Parameters.subscriptionId,
323
290
  Parameters.resourceGroupName,
324
- Parameters.resourceName
291
+ Parameters.resourceName,
325
292
  ],
326
293
  headerParameters: [Parameters.accept],
327
- serializer
294
+ serializer,
328
295
  };
329
296
  const deleteOperationSpec = {
330
297
  path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{resourceName}",
@@ -333,56 +300,56 @@ const deleteOperationSpec = {
333
300
  200: {},
334
301
  204: {},
335
302
  default: {
336
- bodyMapper: Mappers.CloudError
337
- }
303
+ bodyMapper: Mappers.CloudError,
304
+ },
338
305
  },
339
306
  queryParameters: [Parameters.apiVersion],
340
307
  urlParameters: [
341
308
  Parameters.$host,
342
309
  Parameters.subscriptionId,
343
310
  Parameters.resourceGroupName,
344
- Parameters.resourceName
311
+ Parameters.resourceName,
345
312
  ],
346
313
  headerParameters: [Parameters.accept],
347
- serializer
314
+ serializer,
348
315
  };
349
316
  const listBySubscriptionNextOperationSpec = {
350
317
  path: "{nextLink}",
351
318
  httpMethod: "GET",
352
319
  responses: {
353
320
  200: {
354
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
321
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
355
322
  },
356
323
  default: {
357
- bodyMapper: Mappers.CloudError
358
- }
324
+ bodyMapper: Mappers.CloudError,
325
+ },
359
326
  },
360
327
  urlParameters: [
361
328
  Parameters.$host,
362
329
  Parameters.nextLink,
363
- Parameters.subscriptionId
330
+ Parameters.subscriptionId,
364
331
  ],
365
332
  headerParameters: [Parameters.accept],
366
- serializer
333
+ serializer,
367
334
  };
368
335
  const listByResourceGroupNextOperationSpec = {
369
336
  path: "{nextLink}",
370
337
  httpMethod: "GET",
371
338
  responses: {
372
339
  200: {
373
- bodyMapper: Mappers.UserAssignedIdentitiesListResult
340
+ bodyMapper: Mappers.UserAssignedIdentitiesListResult,
374
341
  },
375
342
  default: {
376
- bodyMapper: Mappers.CloudError
377
- }
343
+ bodyMapper: Mappers.CloudError,
344
+ },
378
345
  },
379
346
  urlParameters: [
380
347
  Parameters.$host,
381
348
  Parameters.nextLink,
382
349
  Parameters.subscriptionId,
383
- Parameters.resourceGroupName
350
+ Parameters.resourceGroupName,
384
351
  ],
385
352
  headerParameters: [Parameters.accept],
386
- serializer
353
+ serializer,
387
354
  };
388
355
  //# sourceMappingURL=userAssignedIdentities.js.map