@azure/arm-automanage 1.0.3-alpha.20250718.1 → 1.0.3-alpha.20250730.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 (123) hide show
  1. package/dist/browser/automanageClient.js +25 -5
  2. package/dist/browser/automanageClient.js.map +1 -1
  3. package/dist/browser/models/mappers.js +65 -29
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/bestPractices.js +10 -27
  6. package/dist/browser/operations/bestPractices.js.map +1 -1
  7. package/dist/browser/operations/bestPracticesVersions.js +10 -27
  8. package/dist/browser/operations/bestPracticesVersions.js.map +1 -1
  9. package/dist/browser/operations/configurationProfileAssignments.js +46 -131
  10. package/dist/browser/operations/configurationProfileAssignments.js.map +1 -1
  11. package/dist/browser/operations/configurationProfileHCIAssignments.js +1 -0
  12. package/dist/browser/operations/configurationProfileHCIAssignments.js.map +1 -1
  13. package/dist/browser/operations/configurationProfileHcrpAssignments.js +1 -0
  14. package/dist/browser/operations/configurationProfileHcrpAssignments.js.map +1 -1
  15. package/dist/browser/operations/configurationProfiles.js +19 -53
  16. package/dist/browser/operations/configurationProfiles.js.map +1 -1
  17. package/dist/browser/operations/configurationProfilesVersions.js +10 -27
  18. package/dist/browser/operations/configurationProfilesVersions.js.map +1 -1
  19. package/dist/browser/operations/hCIReports.js +10 -27
  20. package/dist/browser/operations/hCIReports.js.map +1 -1
  21. package/dist/browser/operations/hcrpReports.js +10 -27
  22. package/dist/browser/operations/hcrpReports.js.map +1 -1
  23. package/dist/browser/operations/operations.js +10 -27
  24. package/dist/browser/operations/operations.js.map +1 -1
  25. package/dist/browser/operations/reports.js +10 -27
  26. package/dist/browser/operations/reports.js.map +1 -1
  27. package/dist/browser/operations/servicePrincipals.js +10 -27
  28. package/dist/browser/operations/servicePrincipals.js.map +1 -1
  29. package/dist/browser/pagingHelper.js +2 -4
  30. package/dist/browser/pagingHelper.js.map +1 -1
  31. package/dist/commonjs/automanageClient.js +25 -5
  32. package/dist/commonjs/automanageClient.js.map +1 -1
  33. package/dist/commonjs/models/mappers.js +65 -29
  34. package/dist/commonjs/models/mappers.js.map +1 -1
  35. package/dist/commonjs/operations/bestPractices.js +10 -26
  36. package/dist/commonjs/operations/bestPractices.js.map +1 -1
  37. package/dist/commonjs/operations/bestPracticesVersions.js +10 -26
  38. package/dist/commonjs/operations/bestPracticesVersions.js.map +1 -1
  39. package/dist/commonjs/operations/configurationProfileAssignments.js +46 -130
  40. package/dist/commonjs/operations/configurationProfileAssignments.js.map +1 -1
  41. package/dist/commonjs/operations/configurationProfileHCIAssignments.js +1 -0
  42. package/dist/commonjs/operations/configurationProfileHCIAssignments.js.map +1 -1
  43. package/dist/commonjs/operations/configurationProfileHcrpAssignments.js +1 -0
  44. package/dist/commonjs/operations/configurationProfileHcrpAssignments.js.map +1 -1
  45. package/dist/commonjs/operations/configurationProfiles.js +19 -52
  46. package/dist/commonjs/operations/configurationProfiles.js.map +1 -1
  47. package/dist/commonjs/operations/configurationProfilesVersions.js +10 -26
  48. package/dist/commonjs/operations/configurationProfilesVersions.js.map +1 -1
  49. package/dist/commonjs/operations/hCIReports.js +10 -26
  50. package/dist/commonjs/operations/hCIReports.js.map +1 -1
  51. package/dist/commonjs/operations/hcrpReports.js +10 -26
  52. package/dist/commonjs/operations/hcrpReports.js.map +1 -1
  53. package/dist/commonjs/operations/operations.js +10 -26
  54. package/dist/commonjs/operations/operations.js.map +1 -1
  55. package/dist/commonjs/operations/reports.js +10 -26
  56. package/dist/commonjs/operations/reports.js.map +1 -1
  57. package/dist/commonjs/operations/servicePrincipals.js +10 -26
  58. package/dist/commonjs/operations/servicePrincipals.js.map +1 -1
  59. package/dist/commonjs/pagingHelper.js +2 -4
  60. package/dist/commonjs/pagingHelper.js.map +1 -1
  61. package/dist/commonjs/tsdoc-metadata.json +11 -11
  62. package/dist/esm/automanageClient.js +25 -5
  63. package/dist/esm/automanageClient.js.map +1 -1
  64. package/dist/esm/models/mappers.js +65 -29
  65. package/dist/esm/models/mappers.js.map +1 -1
  66. package/dist/esm/operations/bestPractices.js +10 -27
  67. package/dist/esm/operations/bestPractices.js.map +1 -1
  68. package/dist/esm/operations/bestPracticesVersions.js +10 -27
  69. package/dist/esm/operations/bestPracticesVersions.js.map +1 -1
  70. package/dist/esm/operations/configurationProfileAssignments.js +46 -131
  71. package/dist/esm/operations/configurationProfileAssignments.js.map +1 -1
  72. package/dist/esm/operations/configurationProfileHCIAssignments.js +1 -0
  73. package/dist/esm/operations/configurationProfileHCIAssignments.js.map +1 -1
  74. package/dist/esm/operations/configurationProfileHcrpAssignments.js +1 -0
  75. package/dist/esm/operations/configurationProfileHcrpAssignments.js.map +1 -1
  76. package/dist/esm/operations/configurationProfiles.js +19 -53
  77. package/dist/esm/operations/configurationProfiles.js.map +1 -1
  78. package/dist/esm/operations/configurationProfilesVersions.js +10 -27
  79. package/dist/esm/operations/configurationProfilesVersions.js.map +1 -1
  80. package/dist/esm/operations/hCIReports.js +10 -27
  81. package/dist/esm/operations/hCIReports.js.map +1 -1
  82. package/dist/esm/operations/hcrpReports.js +10 -27
  83. package/dist/esm/operations/hcrpReports.js.map +1 -1
  84. package/dist/esm/operations/operations.js +10 -27
  85. package/dist/esm/operations/operations.js.map +1 -1
  86. package/dist/esm/operations/reports.js +10 -27
  87. package/dist/esm/operations/reports.js.map +1 -1
  88. package/dist/esm/operations/servicePrincipals.js +10 -27
  89. package/dist/esm/operations/servicePrincipals.js.map +1 -1
  90. package/dist/esm/pagingHelper.js +2 -4
  91. package/dist/esm/pagingHelper.js.map +1 -1
  92. package/dist/react-native/automanageClient.js +25 -5
  93. package/dist/react-native/automanageClient.js.map +1 -1
  94. package/dist/react-native/models/mappers.js +65 -29
  95. package/dist/react-native/models/mappers.js.map +1 -1
  96. package/dist/react-native/operations/bestPractices.js +10 -27
  97. package/dist/react-native/operations/bestPractices.js.map +1 -1
  98. package/dist/react-native/operations/bestPracticesVersions.js +10 -27
  99. package/dist/react-native/operations/bestPracticesVersions.js.map +1 -1
  100. package/dist/react-native/operations/configurationProfileAssignments.js +46 -131
  101. package/dist/react-native/operations/configurationProfileAssignments.js.map +1 -1
  102. package/dist/react-native/operations/configurationProfileHCIAssignments.js +1 -0
  103. package/dist/react-native/operations/configurationProfileHCIAssignments.js.map +1 -1
  104. package/dist/react-native/operations/configurationProfileHcrpAssignments.js +1 -0
  105. package/dist/react-native/operations/configurationProfileHcrpAssignments.js.map +1 -1
  106. package/dist/react-native/operations/configurationProfiles.js +19 -53
  107. package/dist/react-native/operations/configurationProfiles.js.map +1 -1
  108. package/dist/react-native/operations/configurationProfilesVersions.js +10 -27
  109. package/dist/react-native/operations/configurationProfilesVersions.js.map +1 -1
  110. package/dist/react-native/operations/hCIReports.js +10 -27
  111. package/dist/react-native/operations/hCIReports.js.map +1 -1
  112. package/dist/react-native/operations/hcrpReports.js +10 -27
  113. package/dist/react-native/operations/hcrpReports.js.map +1 -1
  114. package/dist/react-native/operations/operations.js +10 -27
  115. package/dist/react-native/operations/operations.js.map +1 -1
  116. package/dist/react-native/operations/reports.js +10 -27
  117. package/dist/react-native/operations/reports.js.map +1 -1
  118. package/dist/react-native/operations/servicePrincipals.js +10 -27
  119. package/dist/react-native/operations/servicePrincipals.js.map +1 -1
  120. package/dist/react-native/pagingHelper.js +2 -4
  121. package/dist/react-native/pagingHelper.js.map +1 -1
  122. package/package.json +2 -2
  123. package/review/arm-automanage-node.api.md +590 -590
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /// <reference lib="esnext.asynciterable" />
16
16
  /** Class containing ConfigurationProfileAssignments operations. */
17
17
  class ConfigurationProfileAssignmentsImpl {
18
+ client;
18
19
  /**
19
20
  * Initialize a new instance of the class ConfigurationProfileAssignments class.
20
21
  * @param client Reference to the service client
@@ -38,39 +39,22 @@ class ConfigurationProfileAssignmentsImpl {
38
39
  return this;
39
40
  },
40
41
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
42
+ if (settings?.maxPageSize) {
42
43
  throw new Error("maxPageSize is not supported by this operation.");
43
44
  }
44
45
  return this.listByVirtualMachinesPagingPage(resourceGroupName, vmName, options, settings);
45
46
  }
46
47
  };
47
48
  }
48
- listByVirtualMachinesPagingPage(resourceGroupName, vmName, options, _settings) {
49
- return tslib_1.__asyncGenerator(this, arguments, function* listByVirtualMachinesPagingPage_1() {
50
- let result;
51
- result = yield tslib_1.__await(this._listByVirtualMachines(resourceGroupName, vmName, options));
52
- yield yield tslib_1.__await(result.value || []);
53
- });
49
+ async *listByVirtualMachinesPagingPage(resourceGroupName, vmName, options, _settings) {
50
+ let result;
51
+ result = await this._listByVirtualMachines(resourceGroupName, vmName, options);
52
+ yield result.value || [];
54
53
  }
55
- listByVirtualMachinesPagingAll(resourceGroupName, vmName, options) {
56
- return tslib_1.__asyncGenerator(this, arguments, function* listByVirtualMachinesPagingAll_1() {
57
- var _a, e_1, _b, _c;
58
- try {
59
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByVirtualMachinesPagingPage(resourceGroupName, vmName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
60
- _c = _f.value;
61
- _d = false;
62
- const page = _c;
63
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
64
- }
65
- }
66
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
- finally {
68
- try {
69
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
70
- }
71
- finally { if (e_1) throw e_1.error; }
72
- }
73
- });
54
+ async *listByVirtualMachinesPagingAll(resourceGroupName, vmName, options) {
55
+ for await (const page of this.listByVirtualMachinesPagingPage(resourceGroupName, vmName, options)) {
56
+ yield* page;
57
+ }
74
58
  }
75
59
  /**
76
60
  * Get list of configuration profile assignments
@@ -87,39 +71,22 @@ class ConfigurationProfileAssignmentsImpl {
87
71
  return this;
88
72
  },
89
73
  byPage: (settings) => {
90
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
74
+ if (settings?.maxPageSize) {
91
75
  throw new Error("maxPageSize is not supported by this operation.");
92
76
  }
93
77
  return this.listPagingPage(resourceGroupName, options, settings);
94
78
  }
95
79
  };
96
80
  }
97
- listPagingPage(resourceGroupName, options, _settings) {
98
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
99
- let result;
100
- result = yield tslib_1.__await(this._list(resourceGroupName, options));
101
- yield yield tslib_1.__await(result.value || []);
102
- });
81
+ async *listPagingPage(resourceGroupName, options, _settings) {
82
+ let result;
83
+ result = await this._list(resourceGroupName, options);
84
+ yield result.value || [];
103
85
  }
104
- listPagingAll(resourceGroupName, options) {
105
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
106
- var _a, e_2, _b, _c;
107
- try {
108
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
109
- _c = _f.value;
110
- _d = false;
111
- const page = _c;
112
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
113
- }
114
- }
115
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
116
- finally {
117
- try {
118
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
119
- }
120
- finally { if (e_2) throw e_2.error; }
121
- }
122
- });
86
+ async *listPagingAll(resourceGroupName, options) {
87
+ for await (const page of this.listPagingPage(resourceGroupName, options)) {
88
+ yield* page;
89
+ }
123
90
  }
124
91
  /**
125
92
  * Get list of configuration profile assignments under a given subscription
@@ -135,39 +102,22 @@ class ConfigurationProfileAssignmentsImpl {
135
102
  return this;
136
103
  },
137
104
  byPage: (settings) => {
138
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
105
+ if (settings?.maxPageSize) {
139
106
  throw new Error("maxPageSize is not supported by this operation.");
140
107
  }
141
108
  return this.listBySubscriptionPagingPage(options, settings);
142
109
  }
143
110
  };
144
111
  }
145
- listBySubscriptionPagingPage(options, _settings) {
146
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
147
- let result;
148
- result = yield tslib_1.__await(this._listBySubscription(options));
149
- yield yield tslib_1.__await(result.value || []);
150
- });
112
+ async *listBySubscriptionPagingPage(options, _settings) {
113
+ let result;
114
+ result = await this._listBySubscription(options);
115
+ yield result.value || [];
151
116
  }
152
- listBySubscriptionPagingAll(options) {
153
- return tslib_1.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
154
- var _a, e_3, _b, _c;
155
- try {
156
- 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) {
157
- _c = _f.value;
158
- _d = false;
159
- const page = _c;
160
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
161
- }
162
- }
163
- catch (e_3_1) { e_3 = { error: e_3_1 }; }
164
- finally {
165
- try {
166
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
167
- }
168
- finally { if (e_3) throw e_3.error; }
169
- }
170
- });
117
+ async *listBySubscriptionPagingAll(options) {
118
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
119
+ yield* page;
120
+ }
171
121
  }
172
122
  /**
173
123
  * Get list of configuration profile assignments
@@ -185,39 +135,22 @@ class ConfigurationProfileAssignmentsImpl {
185
135
  return this;
186
136
  },
187
137
  byPage: (settings) => {
188
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
138
+ if (settings?.maxPageSize) {
189
139
  throw new Error("maxPageSize is not supported by this operation.");
190
140
  }
191
141
  return this.listByMachineNamePagingPage(resourceGroupName, machineName, options, settings);
192
142
  }
193
143
  };
194
144
  }
195
- listByMachineNamePagingPage(resourceGroupName, machineName, options, _settings) {
196
- return tslib_1.__asyncGenerator(this, arguments, function* listByMachineNamePagingPage_1() {
197
- let result;
198
- result = yield tslib_1.__await(this._listByMachineName(resourceGroupName, machineName, options));
199
- yield yield tslib_1.__await(result.value || []);
200
- });
145
+ async *listByMachineNamePagingPage(resourceGroupName, machineName, options, _settings) {
146
+ let result;
147
+ result = await this._listByMachineName(resourceGroupName, machineName, options);
148
+ yield result.value || [];
201
149
  }
202
- listByMachineNamePagingAll(resourceGroupName, machineName, options) {
203
- return tslib_1.__asyncGenerator(this, arguments, function* listByMachineNamePagingAll_1() {
204
- var _a, e_4, _b, _c;
205
- try {
206
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByMachineNamePagingPage(resourceGroupName, machineName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
207
- _c = _f.value;
208
- _d = false;
209
- const page = _c;
210
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
211
- }
212
- }
213
- catch (e_4_1) { e_4 = { error: e_4_1 }; }
214
- finally {
215
- try {
216
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
217
- }
218
- finally { if (e_4) throw e_4.error; }
219
- }
220
- });
150
+ async *listByMachineNamePagingAll(resourceGroupName, machineName, options) {
151
+ for await (const page of this.listByMachineNamePagingPage(resourceGroupName, machineName, options)) {
152
+ yield* page;
153
+ }
221
154
  }
222
155
  /**
223
156
  * Get list of configuration profile assignments
@@ -235,39 +168,22 @@ class ConfigurationProfileAssignmentsImpl {
235
168
  return this;
236
169
  },
237
170
  byPage: (settings) => {
238
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
171
+ if (settings?.maxPageSize) {
239
172
  throw new Error("maxPageSize is not supported by this operation.");
240
173
  }
241
174
  return this.listByClusterNamePagingPage(resourceGroupName, clusterName, options, settings);
242
175
  }
243
176
  };
244
177
  }
245
- listByClusterNamePagingPage(resourceGroupName, clusterName, options, _settings) {
246
- return tslib_1.__asyncGenerator(this, arguments, function* listByClusterNamePagingPage_1() {
247
- let result;
248
- result = yield tslib_1.__await(this._listByClusterName(resourceGroupName, clusterName, options));
249
- yield yield tslib_1.__await(result.value || []);
250
- });
178
+ async *listByClusterNamePagingPage(resourceGroupName, clusterName, options, _settings) {
179
+ let result;
180
+ result = await this._listByClusterName(resourceGroupName, clusterName, options);
181
+ yield result.value || [];
251
182
  }
252
- listByClusterNamePagingAll(resourceGroupName, clusterName, options) {
253
- return tslib_1.__asyncGenerator(this, arguments, function* listByClusterNamePagingAll_1() {
254
- var _a, e_5, _b, _c;
255
- try {
256
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByClusterNamePagingPage(resourceGroupName, clusterName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
257
- _c = _f.value;
258
- _d = false;
259
- const page = _c;
260
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
261
- }
262
- }
263
- catch (e_5_1) { e_5 = { error: e_5_1 }; }
264
- finally {
265
- try {
266
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
267
- }
268
- finally { if (e_5) throw e_5.error; }
269
- }
270
- });
183
+ async *listByClusterNamePagingAll(resourceGroupName, clusterName, options) {
184
+ for await (const page of this.listByClusterNamePagingPage(resourceGroupName, clusterName, options)) {
185
+ yield* page;
186
+ }
271
187
  }
272
188
  /**
273
189
  * Creates an association between a VM and Automanage configuration profile
@@ -1 +1 @@
1
- {"version":3,"file":"configurationProfileAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileAssignments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAqBtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAa,mCAAmC;IAI9C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAC1B,iBA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;IAC/D,IAAI,EACF,4LAA4L;IAC9L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { ConfigurationProfileAssignments } 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 { AutomanageClient } from \"../automanageClient.js\";\nimport {\n ConfigurationProfileAssignment,\n ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams,\n ConfigurationProfileAssignmentsListByVirtualMachinesResponse,\n ConfigurationProfileAssignmentsListOptionalParams,\n ConfigurationProfileAssignmentsListResponse,\n ConfigurationProfileAssignmentsListBySubscriptionOptionalParams,\n ConfigurationProfileAssignmentsListBySubscriptionResponse,\n ConfigurationProfileAssignmentsListByMachineNameOptionalParams,\n ConfigurationProfileAssignmentsListByMachineNameResponse,\n ConfigurationProfileAssignmentsListByClusterNameOptionalParams,\n ConfigurationProfileAssignmentsListByClusterNameResponse,\n ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams,\n ConfigurationProfileAssignmentsCreateOrUpdateResponse,\n ConfigurationProfileAssignmentsGetOptionalParams,\n ConfigurationProfileAssignmentsGetResponse,\n ConfigurationProfileAssignmentsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationProfileAssignments operations. */\nexport class ConfigurationProfileAssignmentsImpl\n implements ConfigurationProfileAssignments {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfileAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n public listByVirtualMachines(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listByVirtualMachinesPagingAll(\n resourceGroupName,\n vmName,\n options\n );\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.listByVirtualMachinesPagingPage(\n resourceGroupName,\n vmName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByVirtualMachinesPagingPage(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListByVirtualMachinesResponse;\n result = await this._listByVirtualMachines(\n resourceGroupName,\n vmName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByVirtualMachinesPagingAll(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listByVirtualMachinesPagingPage(\n resourceGroupName,\n vmName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListResponse;\n result = await this._list(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments under a given subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param options The options parameters.\n */\n public listByMachineName(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listByMachineNamePagingAll(\n resourceGroupName,\n machineName,\n options\n );\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.listByMachineNamePagingPage(\n resourceGroupName,\n machineName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByMachineNamePagingPage(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListByMachineNameResponse;\n result = await this._listByMachineName(\n resourceGroupName,\n machineName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByMachineNamePagingAll(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listByMachineNamePagingPage(\n resourceGroupName,\n machineName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param options The options parameters.\n */\n public listByClusterName(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listByClusterNamePagingAll(\n resourceGroupName,\n clusterName,\n options\n );\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.listByClusterNamePagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByClusterNamePagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListByClusterNameResponse;\n result = await this._listByClusterName(\n resourceGroupName,\n clusterName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByClusterNamePagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listByClusterNamePagingPage(\n resourceGroupName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates an association between a VM and Automanage configuration profile\n * @param configurationProfileAssignmentName Name of the configuration profile assignment. Only default\n * is supported.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vmName The name of the virtual machine.\n * @param parameters Parameters supplied to the create or update configuration profile assignment.\n * @param options The options parameters.\n */\n createOrUpdate(\n configurationProfileAssignmentName: string,\n resourceGroupName: string,\n vmName: string,\n parameters: ConfigurationProfileAssignment,\n options?: ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfileAssignmentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n configurationProfileAssignmentName,\n resourceGroupName,\n vmName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileAssignmentName The configuration profile assignment name.\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n configurationProfileAssignmentName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsGetOptionalParams\n ): Promise<ConfigurationProfileAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n configurationProfileAssignmentName,\n vmName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n configurationProfileAssignmentName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n configurationProfileAssignmentName,\n vmName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n private _listByVirtualMachines(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListByVirtualMachinesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, vmName, options },\n listByVirtualMachinesOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments under a given subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param options The options parameters.\n */\n private _listByMachineName(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListByMachineNameResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, machineName, options },\n listByMachineNameOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param options The options parameters.\n */\n private _listByClusterName(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListByClusterNameResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterNameOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByVirtualMachinesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByMachineNameOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByClusterNameOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"configurationProfileAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileAssignments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAqBtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAa,mCAAmC;IAE7B,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,qBAAqB,CAC1B,iBAAyB,EACzB,MAAc,EACd,OAA4E;QAE5E,MAAM,IAAI,GAAG,IAAI,CAAC,8BAA8B,CAC9C,iBAAiB,EACjB,MAAM,EACN,OAAO,CACR,CAAC;QACF,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,+BAA+B,CACzC,iBAAiB,EACjB,MAAM,EACN,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,+BAA+B,CAC5C,iBAAyB,EACzB,MAAc,EACd,OAA4E,EAC5E,SAAwB;QAExB,IAAI,MAAoE,CAAC;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P,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { ConfigurationProfileAssignments } 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 { AutomanageClient } from \"../automanageClient.js\";\nimport {\n ConfigurationProfileAssignment,\n ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams,\n ConfigurationProfileAssignmentsListByVirtualMachinesResponse,\n ConfigurationProfileAssignmentsListOptionalParams,\n ConfigurationProfileAssignmentsListResponse,\n ConfigurationProfileAssignmentsListBySubscriptionOptionalParams,\n ConfigurationProfileAssignmentsListBySubscriptionResponse,\n ConfigurationProfileAssignmentsListByMachineNameOptionalParams,\n ConfigurationProfileAssignmentsListByMachineNameResponse,\n ConfigurationProfileAssignmentsListByClusterNameOptionalParams,\n ConfigurationProfileAssignmentsListByClusterNameResponse,\n ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams,\n ConfigurationProfileAssignmentsCreateOrUpdateResponse,\n ConfigurationProfileAssignmentsGetOptionalParams,\n ConfigurationProfileAssignmentsGetResponse,\n ConfigurationProfileAssignmentsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationProfileAssignments operations. */\nexport class ConfigurationProfileAssignmentsImpl\n implements ConfigurationProfileAssignments {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfileAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n public listByVirtualMachines(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listByVirtualMachinesPagingAll(\n resourceGroupName,\n vmName,\n options\n );\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.listByVirtualMachinesPagingPage(\n resourceGroupName,\n vmName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByVirtualMachinesPagingPage(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListByVirtualMachinesResponse;\n result = await this._listByVirtualMachines(\n resourceGroupName,\n vmName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByVirtualMachinesPagingAll(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listByVirtualMachinesPagingPage(\n resourceGroupName,\n vmName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListResponse;\n result = await this._list(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments under a given subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param options The options parameters.\n */\n public listByMachineName(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listByMachineNamePagingAll(\n resourceGroupName,\n machineName,\n options\n );\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.listByMachineNamePagingPage(\n resourceGroupName,\n machineName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByMachineNamePagingPage(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListByMachineNameResponse;\n result = await this._listByMachineName(\n resourceGroupName,\n machineName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByMachineNamePagingAll(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listByMachineNamePagingPage(\n resourceGroupName,\n machineName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param options The options parameters.\n */\n public listByClusterName(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfileAssignment> {\n const iter = this.listByClusterNamePagingAll(\n resourceGroupName,\n clusterName,\n options\n );\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.listByClusterNamePagingPage(\n resourceGroupName,\n clusterName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByClusterNamePagingPage(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfileAssignment[]> {\n let result: ConfigurationProfileAssignmentsListByClusterNameResponse;\n result = await this._listByClusterName(\n resourceGroupName,\n clusterName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByClusterNamePagingAll(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams\n ): AsyncIterableIterator<ConfigurationProfileAssignment> {\n for await (const page of this.listByClusterNamePagingPage(\n resourceGroupName,\n clusterName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates an association between a VM and Automanage configuration profile\n * @param configurationProfileAssignmentName Name of the configuration profile assignment. Only default\n * is supported.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vmName The name of the virtual machine.\n * @param parameters Parameters supplied to the create or update configuration profile assignment.\n * @param options The options parameters.\n */\n createOrUpdate(\n configurationProfileAssignmentName: string,\n resourceGroupName: string,\n vmName: string,\n parameters: ConfigurationProfileAssignment,\n options?: ConfigurationProfileAssignmentsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfileAssignmentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n configurationProfileAssignmentName,\n resourceGroupName,\n vmName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileAssignmentName The configuration profile assignment name.\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n configurationProfileAssignmentName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsGetOptionalParams\n ): Promise<ConfigurationProfileAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n configurationProfileAssignmentName,\n vmName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n configurationProfileAssignmentName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n configurationProfileAssignmentName,\n vmName,\n options\n },\n deleteOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param vmName The name of the virtual machine.\n * @param options The options parameters.\n */\n private _listByVirtualMachines(\n resourceGroupName: string,\n vmName: string,\n options?: ConfigurationProfileAssignmentsListByVirtualMachinesOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListByVirtualMachinesResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, vmName, options },\n listByVirtualMachinesOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: ConfigurationProfileAssignmentsListOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments under a given subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ConfigurationProfileAssignmentsListBySubscriptionOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param options The options parameters.\n */\n private _listByMachineName(\n resourceGroupName: string,\n machineName: string,\n options?: ConfigurationProfileAssignmentsListByMachineNameOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListByMachineNameResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, machineName, options },\n listByMachineNameOperationSpec\n );\n }\n\n /**\n * Get list of configuration profile assignments\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param options The options parameters.\n */\n private _listByClusterName(\n resourceGroupName: string,\n clusterName: string,\n options?: ConfigurationProfileAssignmentsListByClusterNameOptionalParams\n ): Promise<ConfigurationProfileAssignmentsListByClusterNameResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, clusterName, options },\n listByClusterNameOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByVirtualMachinesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.vmName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByMachineNameOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByClusterNameOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignmentList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.clusterName\n ],\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 ConfigurationProfileHCIAssignments operations. */
16
16
  class ConfigurationProfileHCIAssignmentsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ConfigurationProfileHCIAssignments class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"configurationProfileHCIAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileHCIAssignments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,sEAAsE;AACtE,MAAa,sCAAsC;IAIjD;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,UAA0C,EAC1C,OAAwE;QAExE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,UAAU;YACV,OAAO;SACR,EACD,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACr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kCAAkC;QAC7C,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,iOAAiO;IACnO,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kCAAkC;QAC7C,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ConfigurationProfileHCIAssignments } 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 { AutomanageClient } from \"../automanageClient.js\";\nimport {\n ConfigurationProfileAssignment,\n ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams,\n ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse,\n ConfigurationProfileHCIAssignmentsGetOptionalParams,\n ConfigurationProfileHCIAssignmentsGetResponse,\n ConfigurationProfileHCIAssignmentsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing ConfigurationProfileHCIAssignments operations. */\nexport class ConfigurationProfileHCIAssignmentsImpl\n implements ConfigurationProfileHCIAssignments {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfileHCIAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Creates an association between a AzureStackHCI cluster and Automanage configuration profile\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment. Only default\n * is supported.\n * @param parameters Parameters supplied to the create or update configuration profile assignment.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n parameters: ConfigurationProfileAssignment,\n options?: ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param configurationProfileAssignmentName The configuration profile assignment name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHCIAssignmentsGetOptionalParams\n ): Promise<ConfigurationProfileHCIAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHCIAssignmentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"configurationProfileHCIAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileHCIAssignments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,sEAAsE;AACtE,MAAa,sCAAsC;IAEhC,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,UAA0C,EAC1C,OAAwE;QAExE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,UAAU;YACV,OAAO;SACR,EACD,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAA6D;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAgE;QAEhE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF;AAvFD,wFAuFC;AACD,2B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mBAAmB,GAA6B;IACpD,IAAI,EACF,iOAAiO;IACnO,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kCAAkC;QAC7C,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ConfigurationProfileHCIAssignments } 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 { AutomanageClient } from \"../automanageClient.js\";\nimport {\n ConfigurationProfileAssignment,\n ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams,\n ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse,\n ConfigurationProfileHCIAssignmentsGetOptionalParams,\n ConfigurationProfileHCIAssignmentsGetResponse,\n ConfigurationProfileHCIAssignmentsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing ConfigurationProfileHCIAssignments operations. */\nexport class ConfigurationProfileHCIAssignmentsImpl\n implements ConfigurationProfileHCIAssignments {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfileHCIAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Creates an association between a AzureStackHCI cluster and Automanage configuration profile\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment. Only default\n * is supported.\n * @param parameters Parameters supplied to the create or update configuration profile assignment.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n parameters: ConfigurationProfileAssignment,\n options?: ConfigurationProfileHCIAssignmentsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfileHCIAssignmentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param configurationProfileAssignmentName The configuration profile assignment name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHCIAssignmentsGetOptionalParams\n ): Promise<ConfigurationProfileHCIAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param clusterName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHCIAssignmentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.clusterName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.clusterName\n ],\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 ConfigurationProfileHcrpAssignments operations. */
16
16
  class ConfigurationProfileHcrpAssignmentsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ConfigurationProfileHcrpAssignments class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"configurationProfileHcrpAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileHcrpAssignments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,uEAAuE;AACvE,MAAa,uCAAuC;IAIlD;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,UAA0C,EAC1C,OAAyE;QAEzE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,UAAU;YACV,OAAO;SACR,EACD,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAA8D;QAE9D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAA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,CAAC,kCAAkC;QAC7C,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,iOAAiO;IACnO,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kCAAkC;QAC7C,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ConfigurationProfileHcrpAssignments } 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 { AutomanageClient } from \"../automanageClient.js\";\nimport {\n ConfigurationProfileAssignment,\n ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams,\n ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse,\n ConfigurationProfileHcrpAssignmentsGetOptionalParams,\n ConfigurationProfileHcrpAssignmentsGetResponse,\n ConfigurationProfileHcrpAssignmentsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing ConfigurationProfileHcrpAssignments operations. */\nexport class ConfigurationProfileHcrpAssignmentsImpl\n implements ConfigurationProfileHcrpAssignments {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfileHcrpAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Creates an association between a ARC machine and Automanage configuration profile\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment. Only default\n * is supported.\n * @param parameters Parameters supplied to the create or update configuration profile assignment.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n parameters: ConfigurationProfileAssignment,\n options?: ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param configurationProfileAssignmentName The configuration profile assignment name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHcrpAssignmentsGetOptionalParams\n ): Promise<ConfigurationProfileHcrpAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHcrpAssignmentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n options\n },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"configurationProfileHcrpAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileHcrpAssignments.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,uEAAuE;AACvE,MAAa,uCAAuC;IAEjC,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,cAAc,CACZ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,UAA0C,EAC1C,OAAyE;QAEzE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,UAAU;YACV,OAAO;SACR,EACD,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAA8D;QAE9D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;OAMG;IACH,MAAM,CACJ,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAiE;QAEjE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,WAAW;YACX,kCAAkC;YAClC,OAAO;SACR,EACD,mBAAmB,CACpB,CAAC;IACJ,CAAC;CACF;AAvFD,0FAuFC;AACD,2BAA2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AmB,GAA6B;IACpD,IAAI,EACF,iOAAiO;IACnO,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,kCAAkC;QAC7C,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { ConfigurationProfileHcrpAssignments } 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 { AutomanageClient } from \"../automanageClient.js\";\nimport {\n ConfigurationProfileAssignment,\n ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams,\n ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse,\n ConfigurationProfileHcrpAssignmentsGetOptionalParams,\n ConfigurationProfileHcrpAssignmentsGetResponse,\n ConfigurationProfileHcrpAssignmentsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/** Class containing ConfigurationProfileHcrpAssignments operations. */\nexport class ConfigurationProfileHcrpAssignmentsImpl\n implements ConfigurationProfileHcrpAssignments {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfileHcrpAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Creates an association between a ARC machine and Automanage configuration profile\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment. Only default\n * is supported.\n * @param parameters Parameters supplied to the create or update configuration profile assignment.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n parameters: ConfigurationProfileAssignment,\n options?: ConfigurationProfileHcrpAssignmentsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfileHcrpAssignmentsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param configurationProfileAssignmentName The configuration profile assignment name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHcrpAssignmentsGetOptionalParams\n ): Promise<ConfigurationProfileHcrpAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile assignment\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param machineName The name of the Arc machine.\n * @param configurationProfileAssignmentName Name of the configuration profile assignment\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: ConfigurationProfileHcrpAssignmentsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n options\n },\n deleteOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileAssignment\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.configurationProfileAssignmentName,\n Parameters.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}