@azure/arm-automanage 1.0.3-alpha.20250620.1 → 1.0.3-alpha.20250721.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.api.md → arm-automanage-node.api.md} +0 -0
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing ConfigurationProfiles operations. */
|
|
17
17
|
class ConfigurationProfilesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class ConfigurationProfiles class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -37,39 +38,22 @@ class ConfigurationProfilesImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
44
45
|
}
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield tslib_1.__await(result.value || []);
|
|
52
|
-
});
|
|
48
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
49
|
+
let result;
|
|
50
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
51
|
+
yield result.value || [];
|
|
53
52
|
}
|
|
54
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
59
|
-
_c = _f.value;
|
|
60
|
-
_d = false;
|
|
61
|
-
const page = _c;
|
|
62
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
-
finally {
|
|
67
|
-
try {
|
|
68
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
69
|
-
}
|
|
70
|
-
finally { if (e_1) throw e_1.error; }
|
|
71
|
-
}
|
|
72
|
-
});
|
|
53
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
54
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
55
|
+
yield* page;
|
|
56
|
+
}
|
|
73
57
|
}
|
|
74
58
|
/**
|
|
75
59
|
* Retrieve a list of configuration profile within a subscription
|
|
@@ -85,39 +69,22 @@ class ConfigurationProfilesImpl {
|
|
|
85
69
|
return this;
|
|
86
70
|
},
|
|
87
71
|
byPage: (settings) => {
|
|
88
|
-
if (settings
|
|
72
|
+
if (settings?.maxPageSize) {
|
|
89
73
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
90
74
|
}
|
|
91
75
|
return this.listBySubscriptionPagingPage(options, settings);
|
|
92
76
|
}
|
|
93
77
|
};
|
|
94
78
|
}
|
|
95
|
-
listBySubscriptionPagingPage(options, _settings) {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
yield yield tslib_1.__await(result.value || []);
|
|
100
|
-
});
|
|
79
|
+
async *listBySubscriptionPagingPage(options, _settings) {
|
|
80
|
+
let result;
|
|
81
|
+
result = await this._listBySubscription(options);
|
|
82
|
+
yield result.value || [];
|
|
101
83
|
}
|
|
102
|
-
listBySubscriptionPagingAll(options) {
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
107
|
-
_c = _f.value;
|
|
108
|
-
_d = false;
|
|
109
|
-
const page = _c;
|
|
110
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
114
|
-
finally {
|
|
115
|
-
try {
|
|
116
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
117
|
-
}
|
|
118
|
-
finally { if (e_2) throw e_2.error; }
|
|
119
|
-
}
|
|
120
|
-
});
|
|
84
|
+
async *listBySubscriptionPagingAll(options) {
|
|
85
|
+
for await (const page of this.listBySubscriptionPagingPage(options)) {
|
|
86
|
+
yield* page;
|
|
87
|
+
}
|
|
121
88
|
}
|
|
122
89
|
/**
|
|
123
90
|
* Creates a configuration profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationProfiles.js","sourceRoot":"","sources":["../../../src/operations/configurationProfiles.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,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,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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAkBtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAAmB;IAE1C;;;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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CA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ACjE,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"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing ConfigurationProfilesVersions operations. */
|
|
17
17
|
class ConfigurationProfilesVersionsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class ConfigurationProfilesVersions class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -38,39 +39,22 @@ class ConfigurationProfilesVersionsImpl {
|
|
|
38
39
|
return this;
|
|
39
40
|
},
|
|
40
41
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
42
|
+
if (settings?.maxPageSize) {
|
|
42
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
44
|
}
|
|
44
45
|
return this.listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options, settings);
|
|
45
46
|
}
|
|
46
47
|
};
|
|
47
48
|
}
|
|
48
|
-
listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options, _settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
yield yield tslib_1.__await(result.value || []);
|
|
53
|
-
});
|
|
49
|
+
async *listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options, _settings) {
|
|
50
|
+
let result;
|
|
51
|
+
result = await this._listChildResources(configurationProfileName, resourceGroupName, options);
|
|
52
|
+
yield result.value || [];
|
|
54
53
|
}
|
|
55
|
-
listChildResourcesPagingAll(configurationProfileName, resourceGroupName, options) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
-
_c = _f.value;
|
|
61
|
-
_d = false;
|
|
62
|
-
const page = _c;
|
|
63
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
-
finally {
|
|
68
|
-
try {
|
|
69
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
70
|
-
}
|
|
71
|
-
finally { if (e_1) throw e_1.error; }
|
|
72
|
-
}
|
|
73
|
-
});
|
|
54
|
+
async *listChildResourcesPagingAll(configurationProfileName, resourceGroupName, options) {
|
|
55
|
+
for await (const page of this.listChildResourcesPagingPage(configurationProfileName, resourceGroupName, options)) {
|
|
56
|
+
yield* page;
|
|
57
|
+
}
|
|
74
58
|
}
|
|
75
59
|
/**
|
|
76
60
|
* Creates a configuration profile version
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationProfilesVersions.js","sourceRoot":"","sources":["../../../src/operations/configurationProfilesVersions.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAa,iCAAiC;IAI5C;;;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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CACtC,wBAAwB,EACxB,iBAAiB,EACjB,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,4BAA4B,CACzC,wBAAgC,EAChC,iBAAyB,EACzB,OAAuE,EACvE,SAAwB;;YAExB,IAAI,MAA+D,CAAC;YACpE,MAAM,GAAG,sBAAM,IAAI,CAAC,mBAAmB,CACrC,wBAAwB,EACxB,iBAAiB,EACjB,OAAO,CACR,CAAA,CAAC;YACF,4BAAM,MAAM,CAAC,KAA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U,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,2KAA2K;IAC7K,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,WAAW;QACtB,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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,4CAA4C;AAC5C,iEAAiE;AACjE,MAAa,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,C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,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"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing HCIReports operations. */
|
|
17
17
|
class HCIReportsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class HCIReports class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -39,39 +40,22 @@ class HCIReportsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options, _settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
yield yield tslib_1.__await(result.value || []);
|
|
54
|
-
});
|
|
50
|
+
async *listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options, _settings) {
|
|
51
|
+
let result;
|
|
52
|
+
result = await this._listByConfigurationProfileAssignments(resourceGroupName, clusterName, configurationProfileAssignmentName, options);
|
|
53
|
+
yield result.value || [];
|
|
55
54
|
}
|
|
56
|
-
listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, clusterName, configurationProfileAssignmentName, options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
61
|
-
_c = _f.value;
|
|
62
|
-
_d = false;
|
|
63
|
-
const page = _c;
|
|
64
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
async *listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, clusterName, configurationProfileAssignmentName, options) {
|
|
56
|
+
for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, clusterName, configurationProfileAssignmentName, options)) {
|
|
57
|
+
yield* page;
|
|
58
|
+
}
|
|
75
59
|
}
|
|
76
60
|
/**
|
|
77
61
|
* 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,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,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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"]}
|
|
1
|
+
{"version":3,"file":"hCIReports.js","sourceRoot":"","sources":["../../../src/operations/hCIReports.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAa,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,M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,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;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"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing HcrpReports operations. */
|
|
17
17
|
class HcrpReportsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class HcrpReports class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -39,39 +40,22 @@ class HcrpReportsImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options, settings);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options, _settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
yield yield tslib_1.__await(result.value || []);
|
|
54
|
-
});
|
|
50
|
+
async *listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options, _settings) {
|
|
51
|
+
let result;
|
|
52
|
+
result = await this._listByConfigurationProfileAssignments(resourceGroupName, machineName, configurationProfileAssignmentName, options);
|
|
53
|
+
yield result.value || [];
|
|
55
54
|
}
|
|
56
|
-
listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, machineName, configurationProfileAssignmentName, options) {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
61
|
-
_c = _f.value;
|
|
62
|
-
_d = false;
|
|
63
|
-
const page = _c;
|
|
64
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
68
|
-
finally {
|
|
69
|
-
try {
|
|
70
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
71
|
-
}
|
|
72
|
-
finally { if (e_1) throw e_1.error; }
|
|
73
|
-
}
|
|
74
|
-
});
|
|
55
|
+
async *listByConfigurationProfileAssignmentsPagingAll(resourceGroupName, machineName, configurationProfileAssignmentName, options) {
|
|
56
|
+
for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(resourceGroupName, machineName, configurationProfileAssignmentName, options)) {
|
|
57
|
+
yield* page;
|
|
58
|
+
}
|
|
75
59
|
}
|
|
76
60
|
/**
|
|
77
61
|
* Get information about a report associated with a configuration profile assignment run
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hcrpReports.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AU,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 { HcrpReports } 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 HcrpReportsListByConfigurationProfileAssignmentsOptionalParams,\n HcrpReportsListByConfigurationProfileAssignmentsResponse,\n HcrpReportsGetOptionalParams,\n HcrpReportsGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing HcrpReports operations. */\nexport class HcrpReportsImpl implements HcrpReports {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class HcrpReports 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 machineName 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 machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams\n ): PagedAsyncIterableIterator<Report> {\n const iter = this.listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName,\n machineName,\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 machineName,\n configurationProfileAssignmentName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Report[]> {\n let result: HcrpReportsListByConfigurationProfileAssignmentsResponse;\n result = await this._listByConfigurationProfileAssignments(\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams\n ): AsyncIterableIterator<Report> {\n for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName,\n machineName,\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 machineName 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 machineName: string,\n configurationProfileAssignmentName: string,\n reportName: string,\n options?: HcrpReportsGetOptionalParams\n ): Promise<HcrpReportsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\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 machineName 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 machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams\n ): Promise<HcrpReportsListByConfigurationProfileAssignmentsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\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.HybridCompute/machines/{machineName}/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.machineName,\n Parameters.reportName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/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.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"hcrpReports.js","sourceRoot":"","sources":["../../../src/operations/hcrpReports.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,+CAA+C;AAC/C,MAAa,eAAe;IACT,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,OAAwE;QAExE,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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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 { HcrpReports } 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 HcrpReportsListByConfigurationProfileAssignmentsOptionalParams,\n HcrpReportsListByConfigurationProfileAssignmentsResponse,\n HcrpReportsGetOptionalParams,\n HcrpReportsGetResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing HcrpReports operations. */\nexport class HcrpReportsImpl implements HcrpReports {\n private readonly client: AutomanageClient;\n\n /**\n * Initialize a new instance of the class HcrpReports 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 machineName 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 machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams\n ): PagedAsyncIterableIterator<Report> {\n const iter = this.listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName,\n machineName,\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 machineName,\n configurationProfileAssignmentName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<Report[]> {\n let result: HcrpReportsListByConfigurationProfileAssignmentsResponse;\n result = await this._listByConfigurationProfileAssignments(\n resourceGroupName,\n machineName,\n configurationProfileAssignmentName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByConfigurationProfileAssignmentsPagingAll(\n resourceGroupName: string,\n machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams\n ): AsyncIterableIterator<Report> {\n for await (const page of this.listByConfigurationProfileAssignmentsPagingPage(\n resourceGroupName,\n machineName,\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 machineName 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 machineName: string,\n configurationProfileAssignmentName: string,\n reportName: string,\n options?: HcrpReportsGetOptionalParams\n ): Promise<HcrpReportsGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\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 machineName 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 machineName: string,\n configurationProfileAssignmentName: string,\n options?: HcrpReportsListByConfigurationProfileAssignmentsOptionalParams\n ): Promise<HcrpReportsListByConfigurationProfileAssignmentsResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n machineName,\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.HybridCompute/machines/{machineName}/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.machineName,\n Parameters.reportName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByConfigurationProfileAssignmentsOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridCompute/machines/{machineName}/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.machineName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -15,6 +15,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
15
15
|
/// <reference lib="esnext.asynciterable" />
|
|
16
16
|
/** Class containing Operations operations. */
|
|
17
17
|
class OperationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class Operations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -36,39 +37,22 @@ class OperationsImpl {
|
|
|
36
37
|
return this;
|
|
37
38
|
},
|
|
38
39
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
40
|
+
if (settings?.maxPageSize) {
|
|
40
41
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
42
|
}
|
|
42
43
|
return this.listPagingPage(options, settings);
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
46
|
}
|
|
46
|
-
listPagingPage(options, _settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
yield yield tslib_1.__await(result.value || []);
|
|
51
|
-
});
|
|
47
|
+
async *listPagingPage(options, _settings) {
|
|
48
|
+
let result;
|
|
49
|
+
result = await this._list(options);
|
|
50
|
+
yield result.value || [];
|
|
52
51
|
}
|
|
53
|
-
listPagingAll(options) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
58
|
-
_c = _f.value;
|
|
59
|
-
_d = false;
|
|
60
|
-
const page = _c;
|
|
61
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__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 tslib_1.__await(_b.call(_e));
|
|
68
|
-
}
|
|
69
|
-
finally { if (e_1) throw e_1.error; }
|
|
70
|
-
}
|
|
71
|
-
});
|
|
52
|
+
async *listPagingAll(options) {
|
|
53
|
+
for await (const page of this.listPagingPage(options)) {
|
|
54
|
+
yield* page;
|
|
55
|
+
}
|
|
72
56
|
}
|
|
73
57
|
/**
|
|
74
58
|
* Lists all of the available Automanage REST API operations.
|