@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
|
@@ -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;I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,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"]}
|
|
@@ -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 ConfigurationProfiles operations. */
|
|
14
13
|
export class ConfigurationProfilesImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class ConfigurationProfiles class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -34,39 +34,22 @@ export class ConfigurationProfilesImpl {
|
|
|
34
34
|
return this;
|
|
35
35
|
},
|
|
36
36
|
byPage: (settings) => {
|
|
37
|
-
if (settings
|
|
37
|
+
if (settings?.maxPageSize) {
|
|
38
38
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
39
39
|
}
|
|
40
40
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
41
41
|
}
|
|
42
42
|
};
|
|
43
43
|
}
|
|
44
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
yield yield __await(result.value || []);
|
|
49
|
-
});
|
|
44
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
45
|
+
let result;
|
|
46
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
47
|
+
yield result.value || [];
|
|
50
48
|
}
|
|
51
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
56
|
-
_c = _f.value;
|
|
57
|
-
_d = false;
|
|
58
|
-
const page = _c;
|
|
59
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
63
|
-
finally {
|
|
64
|
-
try {
|
|
65
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
66
|
-
}
|
|
67
|
-
finally { if (e_1) throw e_1.error; }
|
|
68
|
-
}
|
|
69
|
-
});
|
|
49
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
50
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
51
|
+
yield* page;
|
|
52
|
+
}
|
|
70
53
|
}
|
|
71
54
|
/**
|
|
72
55
|
* Retrieve a list of configuration profile within a subscription
|
|
@@ -82,39 +65,22 @@ export class ConfigurationProfilesImpl {
|
|
|
82
65
|
return this;
|
|
83
66
|
},
|
|
84
67
|
byPage: (settings) => {
|
|
85
|
-
if (settings
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
86
69
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
87
70
|
}
|
|
88
71
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
89
72
|
}
|
|
90
73
|
};
|
|
91
74
|
}
|
|
92
|
-
listBySubscriptionPagingPage(options, _settings) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
yield yield __await(result.value || []);
|
|
97
|
-
});
|
|
75
|
+
async *listBySubscriptionPagingPage(options, _settings) {
|
|
76
|
+
let result;
|
|
77
|
+
result = await this._listBySubscription(options);
|
|
78
|
+
yield result.value || [];
|
|
98
79
|
}
|
|
99
|
-
listBySubscriptionPagingAll(options) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
104
|
-
_c = _f.value;
|
|
105
|
-
_d = false;
|
|
106
|
-
const page = _c;
|
|
107
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
111
|
-
finally {
|
|
112
|
-
try {
|
|
113
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
114
|
-
}
|
|
115
|
-
finally { if (e_2) throw e_2.error; }
|
|
116
|
-
}
|
|
117
|
-
});
|
|
80
|
+
async *listBySubscriptionPagingAll(options) {
|
|
81
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
82
|
+
yield* page;
|
|
83
|
+
}
|
|
118
84
|
}
|
|
119
85
|
/**
|
|
120
86
|
* Creates a configuration profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationProfiles.js","sourceRoot":"","sources":["../../../src/operations/configurationProfiles.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;AAkBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,mBAAmB,CACxB,iBAAyB,EACzB,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,4BAA4B,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC3E,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,6BAA6B,CACvC,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,6BAA6B,CAC1C,iBAAyB,EACzB,OAAgE,EACh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C,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EACF,yHAAyH;IAC3H,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;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;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,sFAAsF;IACxF,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,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","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 { ConfigurationProfiles } 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 ConfigurationProfile,\n ConfigurationProfilesListByResourceGroupOptionalParams,\n ConfigurationProfilesListByResourceGroupResponse,\n ConfigurationProfilesListBySubscriptionOptionalParams,\n ConfigurationProfilesListBySubscriptionResponse,\n ConfigurationProfilesCreateOrUpdateOptionalParams,\n ConfigurationProfilesCreateOrUpdateResponse,\n ConfigurationProfilesGetOptionalParams,\n ConfigurationProfilesGetResponse,\n ConfigurationProfilesDeleteOptionalParams,\n ConfigurationProfileUpdate,\n ConfigurationProfilesUpdateOptionalParams,\n ConfigurationProfilesUpdateResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationProfiles operations. */\nexport class ConfigurationProfilesImpl implements ConfigurationProfiles {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfiles class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of configuration profile within a given resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfile> {\n const iter = this.listByResourceGroupPagingAll(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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfile[]> {\n let result: ConfigurationProfilesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ConfigurationProfile> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve a list of configuration profile within a subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ConfigurationProfilesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfile> {\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?: ConfigurationProfilesListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfile[]> {\n let result: ConfigurationProfilesListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ConfigurationProfilesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<ConfigurationProfile> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters supplied to create or update configuration profile.\n * @param options The options parameters.\n */\n createOrUpdate(\n configurationProfileName: string,\n resourceGroupName: string,\n parameters: ConfigurationProfile,\n options?: ConfigurationProfilesCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfilesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile\n * @param configurationProfileName The configuration profile name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesGetOptionalParams\n ): Promise<ConfigurationProfilesGetResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileName Name of the configuration profile\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n configurationProfileName: string,\n options?: ConfigurationProfilesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, configurationProfileName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters supplied to update configuration profile.\n * @param options The options parameters.\n */\n update(\n configurationProfileName: string,\n resourceGroupName: string,\n parameters: ConfigurationProfileUpdate,\n options?: ConfigurationProfilesUpdateOptionalParams\n ): Promise<ConfigurationProfilesUpdateResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of configuration profile within a given resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams\n ): Promise<ConfigurationProfilesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieve a list of configuration profile within a subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ConfigurationProfilesListBySubscriptionOptionalParams\n ): Promise<ConfigurationProfilesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\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.Automanage/configurationProfiles/{configurationProfileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\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.Automanage/configurationProfiles/{configurationProfileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}\",\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.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileList\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/configurationProfiles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileList\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};\n"]}
|
|
1
|
+
{"version":3,"file":"configurationProfiles.js","sourceRoot":"","sources":["../../../src/operations/configurationProfiles.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;AAkBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IACnB,MAAM,CAAmB;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UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { ConfigurationProfiles } 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 ConfigurationProfile,\n ConfigurationProfilesListByResourceGroupOptionalParams,\n ConfigurationProfilesListByResourceGroupResponse,\n ConfigurationProfilesListBySubscriptionOptionalParams,\n ConfigurationProfilesListBySubscriptionResponse,\n ConfigurationProfilesCreateOrUpdateOptionalParams,\n ConfigurationProfilesCreateOrUpdateResponse,\n ConfigurationProfilesGetOptionalParams,\n ConfigurationProfilesGetResponse,\n ConfigurationProfilesDeleteOptionalParams,\n ConfigurationProfileUpdate,\n ConfigurationProfilesUpdateOptionalParams,\n ConfigurationProfilesUpdateResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationProfiles operations. */\nexport class ConfigurationProfilesImpl implements ConfigurationProfiles {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfiles class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of configuration profile within a given resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfile> {\n const iter = this.listByResourceGroupPagingAll(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.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfile[]> {\n let result: ConfigurationProfilesListByResourceGroupResponse;\n result = await this._listByResourceGroup(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams\n ): AsyncIterableIterator<ConfigurationProfile> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Retrieve a list of configuration profile within a subscription\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: ConfigurationProfilesListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfile> {\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?: ConfigurationProfilesListBySubscriptionOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfile[]> {\n let result: ConfigurationProfilesListBySubscriptionResponse;\n result = await this._listBySubscription(options);\n yield result.value || [];\n }\n\n private async *listBySubscriptionPagingAll(\n options?: ConfigurationProfilesListBySubscriptionOptionalParams\n ): AsyncIterableIterator<ConfigurationProfile> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters supplied to create or update configuration profile.\n * @param options The options parameters.\n */\n createOrUpdate(\n configurationProfileName: string,\n resourceGroupName: string,\n parameters: ConfigurationProfile,\n options?: ConfigurationProfilesCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfilesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, parameters, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile\n * @param configurationProfileName The configuration profile name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesGetOptionalParams\n ): Promise<ConfigurationProfilesGetResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileName Name of the configuration profile\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n configurationProfileName: string,\n options?: ConfigurationProfilesDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, configurationProfileName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Updates a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters supplied to update configuration profile.\n * @param options The options parameters.\n */\n update(\n configurationProfileName: string,\n resourceGroupName: string,\n parameters: ConfigurationProfileUpdate,\n options?: ConfigurationProfilesUpdateOptionalParams\n ): Promise<ConfigurationProfilesUpdateResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, parameters, options },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of configuration profile within a given resource group\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: ConfigurationProfilesListByResourceGroupOptionalParams\n ): Promise<ConfigurationProfilesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Retrieve a list of configuration profile within a subscription\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: ConfigurationProfilesListBySubscriptionOptionalParams\n ): Promise<ConfigurationProfilesListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\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.Automanage/configurationProfiles/{configurationProfileName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\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.Automanage/configurationProfiles/{configurationProfileName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}\",\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.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileList\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/configurationProfiles\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileList\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};\n"]}
|
|
@@ -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 ConfigurationProfilesVersions operations. */
|
|
14
13
|
export class ConfigurationProfilesVersionsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class ConfigurationProfilesVersions class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -35,39 +35,22 @@ export class ConfigurationProfilesVersionsImpl {
|
|
|
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.listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options, settings);
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
}
|
|
45
|
-
listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options, _settings) {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
yield yield __await(result.value || []);
|
|
50
|
-
});
|
|
45
|
+
async *listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options, _settings) {
|
|
46
|
+
let result;
|
|
47
|
+
result = await this._listChildResources(configurationProfileName, resourceGroupName, options);
|
|
48
|
+
yield result.value || [];
|
|
51
49
|
}
|
|
52
|
-
listChildResourcesPagingAll(configurationProfileName, resourceGroupName, options) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
for (var _d = true, _e = __asyncValues(this.listChildResourcesPagingPage(configurationProfileName, resourceGroupName, 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 *listChildResourcesPagingAll(configurationProfileName, resourceGroupName, options) {
|
|
51
|
+
for await (const page of this.listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options)) {
|
|
52
|
+
yield* page;
|
|
53
|
+
}
|
|
71
54
|
}
|
|
72
55
|
/**
|
|
73
56
|
* Creates a configuration profile version
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationProfilesVersions.js","sourceRoot":"","sources":["../../../src/operations/configurationProfilesVersions.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;AAatD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAM,OAAO,iCAAiC;IAI5C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,wBAAgC,EA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UAAU,CAAC,wBAAwB;QACnC,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,6JAA6J;IAC/J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;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,wBAAwB;QACnC,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;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 { ConfigurationProfilesVersions } 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 ConfigurationProfile,\n ConfigurationProfilesVersionsListChildResourcesOptionalParams,\n ConfigurationProfilesVersionsListChildResourcesResponse,\n ConfigurationProfilesVersionsCreateOrUpdateOptionalParams,\n ConfigurationProfilesVersionsCreateOrUpdateResponse,\n ConfigurationProfilesVersionsGetOptionalParams,\n ConfigurationProfilesVersionsGetResponse,\n ConfigurationProfilesVersionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationProfilesVersions operations. */\nexport class ConfigurationProfilesVersionsImpl\n implements ConfigurationProfilesVersions {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfilesVersions class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of configuration profile version for a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listChildResources(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfile> {\n const iter = this.listChildResourcesPagingAll(\n configurationProfileName,\n resourceGroupName,\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.listChildResourcesPagingPage(\n configurationProfileName,\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listChildResourcesPagingPage(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfile[]> {\n let result: ConfigurationProfilesVersionsListChildResourcesResponse;\n result = await this._listChildResources(\n configurationProfileName,\n resourceGroupName,\n options\n );\n yield result.value || [];\n }\n\n private async *listChildResourcesPagingAll(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams\n ): AsyncIterableIterator<ConfigurationProfile> {\n for await (const page of this.listChildResourcesPagingPage(\n configurationProfileName,\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a configuration profile version\n * @param configurationProfileName Name of the configuration profile.\n * @param versionName The configuration profile version name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters supplied to create or update configuration profile.\n * @param options The options parameters.\n */\n createOrUpdate(\n configurationProfileName: string,\n versionName: string,\n resourceGroupName: string,\n parameters: ConfigurationProfile,\n options?: ConfigurationProfilesVersionsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfilesVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n configurationProfileName,\n versionName,\n resourceGroupName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile version\n * @param configurationProfileName The configuration profile name.\n * @param versionName The configuration profile version name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n configurationProfileName: string,\n versionName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsGetOptionalParams\n ): Promise<ConfigurationProfilesVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, versionName, resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile version\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileName Name of the configuration profile\n * @param versionName The configuration profile version name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n configurationProfileName: string,\n versionName: string,\n options?: ConfigurationProfilesVersionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, configurationProfileName, versionName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve a list of configuration profile version for a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listChildResources(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams\n ): Promise<ConfigurationProfilesVersionsListChildResourcesResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, options },\n listChildResourcesOperationSpec\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.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.versionName,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\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.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.versionName,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}\",\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.versionName,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChildResourcesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"configurationProfilesVersions.js","sourceRoot":"","sources":["../../../src/operations/configurationProfilesVersions.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;AAatD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAM,OAAO,iCAAiC;IAE3B,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,kBAAkB,CACvB,wBAAgC,EAChC,iBAAyB,EACzB,OAAuE;QAEvE,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAC3C,wBAAwB,EACxB,iBAAiB,EACjB,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,CAA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BAAgB,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 { ConfigurationProfilesVersions } 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 ConfigurationProfile,\n ConfigurationProfilesVersionsListChildResourcesOptionalParams,\n ConfigurationProfilesVersionsListChildResourcesResponse,\n ConfigurationProfilesVersionsCreateOrUpdateOptionalParams,\n ConfigurationProfilesVersionsCreateOrUpdateResponse,\n ConfigurationProfilesVersionsGetOptionalParams,\n ConfigurationProfilesVersionsGetResponse,\n ConfigurationProfilesVersionsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationProfilesVersions operations. */\nexport class ConfigurationProfilesVersionsImpl\n implements ConfigurationProfilesVersions {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class ConfigurationProfilesVersions class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of configuration profile version for a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listChildResources(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams\n ): PagedAsyncIterableIterator<ConfigurationProfile> {\n const iter = this.listChildResourcesPagingAll(\n configurationProfileName,\n resourceGroupName,\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.listChildResourcesPagingPage(\n configurationProfileName,\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listChildResourcesPagingPage(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<ConfigurationProfile[]> {\n let result: ConfigurationProfilesVersionsListChildResourcesResponse;\n result = await this._listChildResources(\n configurationProfileName,\n resourceGroupName,\n options\n );\n yield result.value || [];\n }\n\n private async *listChildResourcesPagingAll(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams\n ): AsyncIterableIterator<ConfigurationProfile> {\n for await (const page of this.listChildResourcesPagingPage(\n configurationProfileName,\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a configuration profile version\n * @param configurationProfileName Name of the configuration profile.\n * @param versionName The configuration profile version name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters Parameters supplied to create or update configuration profile.\n * @param options The options parameters.\n */\n createOrUpdate(\n configurationProfileName: string,\n versionName: string,\n resourceGroupName: string,\n parameters: ConfigurationProfile,\n options?: ConfigurationProfilesVersionsCreateOrUpdateOptionalParams\n ): Promise<ConfigurationProfilesVersionsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n configurationProfileName,\n versionName,\n resourceGroupName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Get information about a configuration profile version\n * @param configurationProfileName The configuration profile name.\n * @param versionName The configuration profile version name.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n configurationProfileName: string,\n versionName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsGetOptionalParams\n ): Promise<ConfigurationProfilesVersionsGetResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, versionName, resourceGroupName, options },\n getOperationSpec\n );\n }\n\n /**\n * Delete a configuration profile version\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param configurationProfileName Name of the configuration profile\n * @param versionName The configuration profile version name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n configurationProfileName: string,\n versionName: string,\n options?: ConfigurationProfilesVersionsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, configurationProfileName, versionName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve a list of configuration profile version for a configuration profile\n * @param configurationProfileName Name of the configuration profile.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listChildResources(\n configurationProfileName: string,\n resourceGroupName: string,\n options?: ConfigurationProfilesVersionsListChildResourcesOptionalParams\n ): Promise<ConfigurationProfilesVersionsListChildResourcesResponse> {\n return this.client.sendOperationRequest(\n { configurationProfileName, resourceGroupName, options },\n listChildResourcesOperationSpec\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.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n 201: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.versionName,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\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.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfile\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.versionName,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions/{versionName}\",\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.versionName,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listChildResourcesOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automanage/configurationProfiles/{configurationProfileName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ConfigurationProfileList\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.configurationProfileName,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -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 HCIReports operations. */
|
|
14
13
|
export class HCIReportsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class HCIReports class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -36,39 +36,22 @@ export class HCIReportsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options, _settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
yield yield __await(result.value || []);
|
|
51
|
-
});
|
|
46
|
+
async *listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options, _settings) {
|
|
47
|
+
let result;
|
|
48
|
+
result = await this._listByConfigurationProfileAssignments(resourceGroupName, clusterName, configurationProfileAssignmentName, options);
|
|
49
|
+
yield result.value || [];
|
|
52
50
|
}
|
|
53
|
-
listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, clusterName, configurationProfileAssignmentName, options) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (var _d = true, _e = __asyncValues(this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
58
|
-
_c = _f.value;
|
|
59
|
-
_d = false;
|
|
60
|
-
const page = _c;
|
|
61
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
-
finally {
|
|
66
|
-
try {
|
|
67
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
68
|
-
}
|
|
69
|
-
finally { if (e_1) throw e_1.error; }
|
|
70
|
-
}
|
|
71
|
-
});
|
|
51
|
+
async *listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, clusterName, configurationProfileAssignmentName, options) {
|
|
52
|
+
for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options)) {
|
|
53
|
+
yield* page;
|
|
54
|
+
}
|
|
72
55
|
}
|
|
73
56
|
/**
|
|
74
57
|
* Get information about a report associated with a configuration profile assignment run
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hCIReports.js","sourceRoot":"","sources":["../../../src/operations/hCIReports.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;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,qCAAqC,CAC1C,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAuE;QAEvE,MAAM,IAAI,GAAG,IAAI,CAAC,8CAA8C,CAC9D,iBAAiB,EACjB,WAAW,EACX,kCAAkC,EAClC,OAAO,CACR,CAAC;QACF,OAAO;Y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;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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { HCIReports } 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 Report,\n HCIReportsListByConfigurationProfileAssignmentsOptionalParams,\n HCIReportsListByConfigurationProfileAssignmentsResponse,\n HCIReportsGetOptionalParams,\n HCIReportsGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing HCIReports operations. */\nexport class HCIReportsImpl implements HCIReports {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class HCIReports class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of reports within a given 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 public listByConfigurationProfileAssignments(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams\n ): PagedAsyncIterableIterator<Report> {\n const iter = this.listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\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.listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Report[]> {\n let result: HCIReportsListByConfigurationProfileAssignmentsResponse;\n result = await this._listByConfigurationProfileAssignments(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams\n ): AsyncIterableIterator<Report> {\n for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get information about a report associated with a configuration profile assignment run\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 reportName The report name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n reportName: string,\n options?: HCIReportsGetOptionalParams\n ): Promise<HCIReportsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n reportName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of reports within a given 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 private _listByConfigurationProfileAssignments(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams\n ): Promise<HCIReportsListByConfigurationProfileAssignmentsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n },\n listByConfigurationProfileAssignmentsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Report\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 Parameters.reportName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReportList\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};\n"]}
|
|
1
|
+
{"version":3,"file":"hCIReports.js","sourceRoot":"","sources":["../../../src/operations/hCIReports.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;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,qCAAqC,CAC1C,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAuE;QAEvE,MAAM,IAAI,GAAG,IAAI,CAAC,8CAA8C,CAC9D,iBAAiB,EACjB,WAAW,EACX,kCAAkC,EAClC,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,+CAA+C,CACzD,iBAAiB,EACjB,WAAW,EACX,kCAAkC,EAClC,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,+CAA+C,CAC5D,iBAAyB,EACzB,WAAmB,EACnB,kCAA0C,EAC1C,OAAuE,EACvE,SAAwB;QAExB,IAAI,MAA+D,CAAC;QACpE,MAAM,GAAG,MAAM,IAAI,CAAC,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Ae,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;QACtB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kDAAkD,GAA6B;IACnF,IAAI,EACF,yOAAyO;IAC3O,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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","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 { HCIReports } 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 Report,\n HCIReportsListByConfigurationProfileAssignmentsOptionalParams,\n HCIReportsListByConfigurationProfileAssignmentsResponse,\n HCIReportsGetOptionalParams,\n HCIReportsGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing HCIReports operations. */\nexport class HCIReportsImpl implements HCIReports {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class HCIReports class.\n * @param client Reference to the service client\n */\n constructor(client: AutomanageClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of reports within a given 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 public listByConfigurationProfileAssignments(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams\n ): PagedAsyncIterableIterator<Report> {\n const iter = this.listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\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.listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Report[]> {\n let result: HCIReportsListByConfigurationProfileAssignmentsResponse;\n result = await this._listByConfigurationProfileAssignments(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams\n ): AsyncIterableIterator<Report> {\n for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get information about a report associated with a configuration profile assignment run\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 reportName The report name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n reportName: string,\n options?: HCIReportsGetOptionalParams\n ): Promise<HCIReportsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n reportName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of reports within a given 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 private _listByConfigurationProfileAssignments(\n resourceGroupName: string,\n clusterName: string,\n configurationProfileAssignmentName: string,\n options?: HCIReportsListByConfigurationProfileAssignmentsOptionalParams\n ): Promise<HCIReportsListByConfigurationProfileAssignmentsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n clusterName,\n configurationProfileAssignmentName,\n options\n },\n listByConfigurationProfileAssignmentsOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports/{reportName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Report\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 Parameters.reportName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureStackHci/clusters/{clusterName}/providers/Microsoft.Automanage/configurationProfileAssignments/{configurationProfileAssignmentName}/reports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ReportList\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};\n"]}
|
|
@@ -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 HcrpReports operations. */
|
|
14
13
|
export class HcrpReportsImpl {
|
|
14
|
+
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class HcrpReports class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -36,39 +36,22 @@ export class HcrpReportsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options, settings);
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options, _settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
yield yield __await(result.value || []);
|
|
51
|
-
});
|
|
46
|
+
async *listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options, _settings) {
|
|
47
|
+
let result;
|
|
48
|
+
result = await this._listByConfigurationProfileAssignments(resourceGroupName, machineName, configurationProfileAssignmentName, options);
|
|
49
|
+
yield result.value || [];
|
|
52
50
|
}
|
|
53
|
-
listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, machineName, configurationProfileAssignmentName, options) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (var _d = true, _e = __asyncValues(this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
58
|
-
_c = _f.value;
|
|
59
|
-
_d = false;
|
|
60
|
-
const page = _c;
|
|
61
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
65
|
-
finally {
|
|
66
|
-
try {
|
|
67
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
68
|
-
}
|
|
69
|
-
finally { if (e_1) throw e_1.error; }
|
|
70
|
-
}
|
|
71
|
-
});
|
|
51
|
+
async *listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, machineName, configurationProfileAssignmentName, options) {
|
|
52
|
+
for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options)) {
|
|
53
|
+
yield* page;
|
|
54
|
+
}
|
|
72
55
|
}
|
|
73
56
|
/**
|
|
74
57
|
* Get information about a report associated with a configuration profile assignment run
|