@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.
- package/dist/browser/automanageClient.js +25 -5
- package/dist/browser/automanageClient.js.map +1 -1
- package/dist/browser/models/mappers.js +65 -29
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/bestPractices.js +10 -27
- package/dist/browser/operations/bestPractices.js.map +1 -1
- package/dist/browser/operations/bestPracticesVersions.js +10 -27
- package/dist/browser/operations/bestPracticesVersions.js.map +1 -1
- package/dist/browser/operations/configurationProfileAssignments.js +46 -131
- package/dist/browser/operations/configurationProfileAssignments.js.map +1 -1
- package/dist/browser/operations/configurationProfileHCIAssignments.js +1 -0
- package/dist/browser/operations/configurationProfileHCIAssignments.js.map +1 -1
- package/dist/browser/operations/configurationProfileHcrpAssignments.js +1 -0
- package/dist/browser/operations/configurationProfileHcrpAssignments.js.map +1 -1
- package/dist/browser/operations/configurationProfiles.js +19 -53
- package/dist/browser/operations/configurationProfiles.js.map +1 -1
- package/dist/browser/operations/configurationProfilesVersions.js +10 -27
- package/dist/browser/operations/configurationProfilesVersions.js.map +1 -1
- package/dist/browser/operations/hCIReports.js +10 -27
- package/dist/browser/operations/hCIReports.js.map +1 -1
- package/dist/browser/operations/hcrpReports.js +10 -27
- package/dist/browser/operations/hcrpReports.js.map +1 -1
- package/dist/browser/operations/operations.js +10 -27
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/reports.js +10 -27
- package/dist/browser/operations/reports.js.map +1 -1
- package/dist/browser/operations/servicePrincipals.js +10 -27
- package/dist/browser/operations/servicePrincipals.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/automanageClient.js +25 -5
- package/dist/commonjs/automanageClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +65 -29
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/bestPractices.js +10 -26
- package/dist/commonjs/operations/bestPractices.js.map +1 -1
- package/dist/commonjs/operations/bestPracticesVersions.js +10 -26
- package/dist/commonjs/operations/bestPracticesVersions.js.map +1 -1
- package/dist/commonjs/operations/configurationProfileAssignments.js +46 -130
- package/dist/commonjs/operations/configurationProfileAssignments.js.map +1 -1
- package/dist/commonjs/operations/configurationProfileHCIAssignments.js +1 -0
- package/dist/commonjs/operations/configurationProfileHCIAssignments.js.map +1 -1
- package/dist/commonjs/operations/configurationProfileHcrpAssignments.js +1 -0
- package/dist/commonjs/operations/configurationProfileHcrpAssignments.js.map +1 -1
- package/dist/commonjs/operations/configurationProfiles.js +19 -52
- package/dist/commonjs/operations/configurationProfiles.js.map +1 -1
- package/dist/commonjs/operations/configurationProfilesVersions.js +10 -26
- package/dist/commonjs/operations/configurationProfilesVersions.js.map +1 -1
- package/dist/commonjs/operations/hCIReports.js +10 -26
- package/dist/commonjs/operations/hCIReports.js.map +1 -1
- package/dist/commonjs/operations/hcrpReports.js +10 -26
- package/dist/commonjs/operations/hcrpReports.js.map +1 -1
- package/dist/commonjs/operations/operations.js +10 -26
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/reports.js +10 -26
- package/dist/commonjs/operations/reports.js.map +1 -1
- package/dist/commonjs/operations/servicePrincipals.js +10 -26
- package/dist/commonjs/operations/servicePrincipals.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/automanageClient.js +25 -5
- package/dist/esm/automanageClient.js.map +1 -1
- package/dist/esm/models/mappers.js +65 -29
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/bestPractices.js +10 -27
- package/dist/esm/operations/bestPractices.js.map +1 -1
- package/dist/esm/operations/bestPracticesVersions.js +10 -27
- package/dist/esm/operations/bestPracticesVersions.js.map +1 -1
- package/dist/esm/operations/configurationProfileAssignments.js +46 -131
- package/dist/esm/operations/configurationProfileAssignments.js.map +1 -1
- package/dist/esm/operations/configurationProfileHCIAssignments.js +1 -0
- package/dist/esm/operations/configurationProfileHCIAssignments.js.map +1 -1
- package/dist/esm/operations/configurationProfileHcrpAssignments.js +1 -0
- package/dist/esm/operations/configurationProfileHcrpAssignments.js.map +1 -1
- package/dist/esm/operations/configurationProfiles.js +19 -53
- package/dist/esm/operations/configurationProfiles.js.map +1 -1
- package/dist/esm/operations/configurationProfilesVersions.js +10 -27
- package/dist/esm/operations/configurationProfilesVersions.js.map +1 -1
- package/dist/esm/operations/hCIReports.js +10 -27
- package/dist/esm/operations/hCIReports.js.map +1 -1
- package/dist/esm/operations/hcrpReports.js +10 -27
- package/dist/esm/operations/hcrpReports.js.map +1 -1
- package/dist/esm/operations/operations.js +10 -27
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/reports.js +10 -27
- package/dist/esm/operations/reports.js.map +1 -1
- package/dist/esm/operations/servicePrincipals.js +10 -27
- package/dist/esm/operations/servicePrincipals.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/automanageClient.js +25 -5
- package/dist/react-native/automanageClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +65 -29
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/bestPractices.js +10 -27
- package/dist/react-native/operations/bestPractices.js.map +1 -1
- package/dist/react-native/operations/bestPracticesVersions.js +10 -27
- package/dist/react-native/operations/bestPracticesVersions.js.map +1 -1
- package/dist/react-native/operations/configurationProfileAssignments.js +46 -131
- package/dist/react-native/operations/configurationProfileAssignments.js.map +1 -1
- package/dist/react-native/operations/configurationProfileHCIAssignments.js +1 -0
- package/dist/react-native/operations/configurationProfileHCIAssignments.js.map +1 -1
- package/dist/react-native/operations/configurationProfileHcrpAssignments.js +1 -0
- package/dist/react-native/operations/configurationProfileHcrpAssignments.js.map +1 -1
- package/dist/react-native/operations/configurationProfiles.js +19 -53
- package/dist/react-native/operations/configurationProfiles.js.map +1 -1
- package/dist/react-native/operations/configurationProfilesVersions.js +10 -27
- package/dist/react-native/operations/configurationProfilesVersions.js.map +1 -1
- package/dist/react-native/operations/hCIReports.js +10 -27
- package/dist/react-native/operations/hCIReports.js.map +1 -1
- package/dist/react-native/operations/hcrpReports.js +10 -27
- package/dist/react-native/operations/hcrpReports.js.map +1 -1
- package/dist/react-native/operations/operations.js +10 -27
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/reports.js +10 -27
- package/dist/react-native/operations/reports.js.map +1 -1
- package/dist/react-native/operations/servicePrincipals.js +10 -27
- package/dist/react-native/operations/servicePrincipals.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-automanage-node.api.md +590 -590
|
@@ -5,13 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as Mappers from "../models/mappers.js";
|
|
11
10
|
import * as Parameters from "../models/parameters.js";
|
|
12
11
|
/// <reference lib="esnext.asynciterable" />
|
|
13
12
|
/** Class containing ConfigurationProfileAssignments operations. */
|
|
14
13
|
export class ConfigurationProfileAssignmentsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class ConfigurationProfileAssignments class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -35,39 +35,22 @@ export class ConfigurationProfileAssignmentsImpl {
|
|
|
35
35
|
return this;
|
|
36
36
|
},
|
|
37
37
|
byPage: (settings) => {
|
|
38
|
-
if (settings
|
|
38
|
+
if (settings?.maxPageSize) {
|
|
39
39
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
40
40
|
}
|
|
41
41
|
return this.listByVirtualMachinesPagingPage(resourceGroupName, vmName, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listByVirtualMachinesPagingPage(resourceGroupName, vmName, options, _settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yield yield __await(result.value || []);
|
|
50
|
-
});
|
|
45
|
+
async *listByVirtualMachinesPagingPage(resourceGroupName, vmName, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listByVirtualMachines(resourceGroupName, vmName, options);
|
|
48
|
+
yield result.value || [];
|
|
51
49
|
}
|
|
52
|
-
listByVirtualMachinesPagingAll(resourceGroupName, vmName, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _d = true, _e = __asyncValues(this.listByVirtualMachinesPagingPage(resourceGroupName, vmName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
57
|
-
_c = _f.value;
|
|
58
|
-
_d = false;
|
|
59
|
-
const page = _c;
|
|
60
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
-
finally {
|
|
65
|
-
try {
|
|
66
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
67
|
-
}
|
|
68
|
-
finally { if (e_1) throw e_1.error; }
|
|
69
|
-
}
|
|
70
|
-
});
|
|
50
|
+
async *listByVirtualMachinesPagingAll(resourceGroupName, vmName, options) {
|
|
51
|
+
for await (const page of this.listByVirtualMachinesPagingPage(resourceGroupName, vmName, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
71
54
|
}
|
|
72
55
|
/**
|
|
73
56
|
* Get list of configuration profile assignments
|
|
@@ -84,39 +67,22 @@ export class ConfigurationProfileAssignmentsImpl {
|
|
|
84
67
|
return this;
|
|
85
68
|
},
|
|
86
69
|
byPage: (settings) => {
|
|
87
|
-
if (settings
|
|
70
|
+
if (settings?.maxPageSize) {
|
|
88
71
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
89
72
|
}
|
|
90
73
|
return this.listPagingPage(resourceGroupName, options, settings);
|
|
91
74
|
}
|
|
92
75
|
};
|
|
93
76
|
}
|
|
94
|
-
listPagingPage(resourceGroupName, options, _settings) {
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
yield yield __await(result.value || []);
|
|
99
|
-
});
|
|
77
|
+
async *listPagingPage(resourceGroupName, options, _settings) {
|
|
78
|
+
let result;
|
|
79
|
+
result = await this._list(resourceGroupName, options);
|
|
80
|
+
yield result.value || [];
|
|
100
81
|
}
|
|
101
|
-
listPagingAll(resourceGroupName, options) {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
106
|
-
_c = _f.value;
|
|
107
|
-
_d = false;
|
|
108
|
-
const page = _c;
|
|
109
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
-
finally {
|
|
114
|
-
try {
|
|
115
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
116
|
-
}
|
|
117
|
-
finally { if (e_2) throw e_2.error; }
|
|
118
|
-
}
|
|
119
|
-
});
|
|
82
|
+
async *listPagingAll(resourceGroupName, options) {
|
|
83
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
84
|
+
yield* page;
|
|
85
|
+
}
|
|
120
86
|
}
|
|
121
87
|
/**
|
|
122
88
|
* Get list of configuration profile assignments under a given subscription
|
|
@@ -132,39 +98,22 @@ export class ConfigurationProfileAssignmentsImpl {
|
|
|
132
98
|
return this;
|
|
133
99
|
},
|
|
134
100
|
byPage: (settings) => {
|
|
135
|
-
if (settings
|
|
101
|
+
if (settings?.maxPageSize) {
|
|
136
102
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
137
103
|
}
|
|
138
104
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
139
105
|
}
|
|
140
106
|
};
|
|
141
107
|
}
|
|
142
|
-
listBySubscriptionPagingPage(options, _settings) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
yield yield __await(result.value || []);
|
|
147
|
-
});
|
|
108
|
+
async *listBySubscriptionPagingPage(options, _settings) {
|
|
109
|
+
let result;
|
|
110
|
+
result = await this._listBySubscription(options);
|
|
111
|
+
yield result.value || [];
|
|
148
112
|
}
|
|
149
|
-
listBySubscriptionPagingAll(options) {
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
154
|
-
_c = _f.value;
|
|
155
|
-
_d = false;
|
|
156
|
-
const page = _c;
|
|
157
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
161
|
-
finally {
|
|
162
|
-
try {
|
|
163
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
164
|
-
}
|
|
165
|
-
finally { if (e_3) throw e_3.error; }
|
|
166
|
-
}
|
|
167
|
-
});
|
|
113
|
+
async *listBySubscriptionPagingAll(options) {
|
|
114
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
115
|
+
yield* page;
|
|
116
|
+
}
|
|
168
117
|
}
|
|
169
118
|
/**
|
|
170
119
|
* Get list of configuration profile assignments
|
|
@@ -182,39 +131,22 @@ export class ConfigurationProfileAssignmentsImpl {
|
|
|
182
131
|
return this;
|
|
183
132
|
},
|
|
184
133
|
byPage: (settings) => {
|
|
185
|
-
if (settings
|
|
134
|
+
if (settings?.maxPageSize) {
|
|
186
135
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
187
136
|
}
|
|
188
137
|
return this.listByMachineNamePagingPage(resourceGroupName, machineName, options, settings);
|
|
189
138
|
}
|
|
190
139
|
};
|
|
191
140
|
}
|
|
192
|
-
listByMachineNamePagingPage(resourceGroupName, machineName, options, _settings) {
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
yield yield __await(result.value || []);
|
|
197
|
-
});
|
|
141
|
+
async *listByMachineNamePagingPage(resourceGroupName, machineName, options, _settings) {
|
|
142
|
+
let result;
|
|
143
|
+
result = await this._listByMachineName(resourceGroupName, machineName, options);
|
|
144
|
+
yield result.value || [];
|
|
198
145
|
}
|
|
199
|
-
listByMachineNamePagingAll(resourceGroupName, machineName, options) {
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
for (var _d = true, _e = __asyncValues(this.listByMachineNamePagingPage(resourceGroupName, machineName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
204
|
-
_c = _f.value;
|
|
205
|
-
_d = false;
|
|
206
|
-
const page = _c;
|
|
207
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
211
|
-
finally {
|
|
212
|
-
try {
|
|
213
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
214
|
-
}
|
|
215
|
-
finally { if (e_4) throw e_4.error; }
|
|
216
|
-
}
|
|
217
|
-
});
|
|
146
|
+
async *listByMachineNamePagingAll(resourceGroupName, machineName, options) {
|
|
147
|
+
for await (const page of this.listByMachineNamePagingPage(resourceGroupName, machineName, options)) {
|
|
148
|
+
yield* page;
|
|
149
|
+
}
|
|
218
150
|
}
|
|
219
151
|
/**
|
|
220
152
|
* Get list of configuration profile assignments
|
|
@@ -232,39 +164,22 @@ export class ConfigurationProfileAssignmentsImpl {
|
|
|
232
164
|
return this;
|
|
233
165
|
},
|
|
234
166
|
byPage: (settings) => {
|
|
235
|
-
if (settings
|
|
167
|
+
if (settings?.maxPageSize) {
|
|
236
168
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
237
169
|
}
|
|
238
170
|
return this.listByClusterNamePagingPage(resourceGroupName, clusterName, options, settings);
|
|
239
171
|
}
|
|
240
172
|
};
|
|
241
173
|
}
|
|
242
|
-
listByClusterNamePagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
yield yield __await(result.value || []);
|
|
247
|
-
});
|
|
174
|
+
async *listByClusterNamePagingPage(resourceGroupName, clusterName, options, _settings) {
|
|
175
|
+
let result;
|
|
176
|
+
result = await this._listByClusterName(resourceGroupName, clusterName, options);
|
|
177
|
+
yield result.value || [];
|
|
248
178
|
}
|
|
249
|
-
listByClusterNamePagingAll(resourceGroupName, clusterName, options) {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
for (var _d = true, _e = __asyncValues(this.listByClusterNamePagingPage(resourceGroupName, clusterName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
254
|
-
_c = _f.value;
|
|
255
|
-
_d = false;
|
|
256
|
-
const page = _c;
|
|
257
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
261
|
-
finally {
|
|
262
|
-
try {
|
|
263
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
264
|
-
}
|
|
265
|
-
finally { if (e_5) throw e_5.error; }
|
|
266
|
-
}
|
|
267
|
-
});
|
|
179
|
+
async *listByClusterNamePagingAll(resourceGroupName, clusterName, options) {
|
|
180
|
+
for await (const page of this.listByClusterNamePagingPage(resourceGroupName, clusterName, options)) {
|
|
181
|
+
yield* page;
|
|
182
|
+
}
|
|
268
183
|
}
|
|
269
184
|
/**
|
|
270
185
|
* 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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAI9C;;;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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,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;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AC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;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;AACF,MAAM,8BAA8B,GAA6B;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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAqBtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAE7B,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IA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AU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;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;AACF,MAAM,8BAA8B,GAA6B;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"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing ConfigurationProfileHCIAssignments operations. */
|
|
12
12
|
export class ConfigurationProfileHCIAssignmentsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class ConfigurationProfileHCIAssignments class.
|
|
15
16
|
* @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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,sEAAsE;AACtE,MAAM,OAAO,sCAAsC;
|
|
1
|
+
{"version":3,"file":"configurationProfileHCIAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileHCIAssignments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,sEAAsE;AACtE,MAAM,OAAO,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,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C,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"]}
|
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing ConfigurationProfileHcrpAssignments operations. */
|
|
12
12
|
export class ConfigurationProfileHcrpAssignmentsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class ConfigurationProfileHcrpAssignments class.
|
|
15
16
|
* @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,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,uEAAuE;AACvE,MAAM,OAAO,uCAAuC;
|
|
1
|
+
{"version":3,"file":"configurationProfileHcrpAssignments.js","sourceRoot":"","sources":["../../../src/operations/configurationProfileHcrpAssignments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAWtD,uEAAuE;AACvE,MAAM,OAAO,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,OA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AAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EACF,iOAAiO;IACnO,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,8BAA8B;SACnD;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,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"]}
|