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