@azure/arm-maintenance 1.0.0-alpha.20250718.1 → 1.0.0-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/maintenanceManagementClient.js +25 -5
- package/dist/browser/maintenanceManagementClient.js.map +1 -1
- package/dist/browser/models/mappers.js +47 -22
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/applyUpdateForResourceGroup.js +10 -27
- package/dist/browser/operations/applyUpdateForResourceGroup.js.map +1 -1
- package/dist/browser/operations/applyUpdates.js +10 -27
- package/dist/browser/operations/applyUpdates.js.map +1 -1
- package/dist/browser/operations/configurationAssignments.js +19 -53
- package/dist/browser/operations/configurationAssignments.js.map +1 -1
- package/dist/browser/operations/configurationAssignmentsForResourceGroup.js +1 -0
- package/dist/browser/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
- package/dist/browser/operations/configurationAssignmentsForSubscriptions.js +1 -0
- package/dist/browser/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
- package/dist/browser/operations/configurationAssignmentsWithinSubscription.js +10 -27
- package/dist/browser/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
- package/dist/browser/operations/maintenanceConfigurations.js +10 -27
- package/dist/browser/operations/maintenanceConfigurations.js.map +1 -1
- package/dist/browser/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
- package/dist/browser/operations/maintenanceConfigurationsForResourceGroup.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/publicMaintenanceConfigurations.js +10 -27
- package/dist/browser/operations/publicMaintenanceConfigurations.js.map +1 -1
- package/dist/browser/operations/scheduledEvent.js +1 -0
- package/dist/browser/operations/scheduledEvent.js.map +1 -1
- package/dist/browser/operations/updates.js +19 -53
- package/dist/browser/operations/updates.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/maintenanceManagementClient.js +25 -5
- package/dist/commonjs/maintenanceManagementClient.js.map +1 -1
- package/dist/commonjs/models/mappers.js +47 -22
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/applyUpdateForResourceGroup.js +10 -26
- package/dist/commonjs/operations/applyUpdateForResourceGroup.js.map +1 -1
- package/dist/commonjs/operations/applyUpdates.js +10 -26
- package/dist/commonjs/operations/applyUpdates.js.map +1 -1
- package/dist/commonjs/operations/configurationAssignments.js +19 -52
- package/dist/commonjs/operations/configurationAssignments.js.map +1 -1
- package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.js +1 -0
- package/dist/commonjs/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
- package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.js +1 -0
- package/dist/commonjs/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
- package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.js +10 -26
- package/dist/commonjs/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
- package/dist/commonjs/operations/maintenanceConfigurations.js +10 -26
- package/dist/commonjs/operations/maintenanceConfigurations.js.map +1 -1
- package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.js +10 -26
- package/dist/commonjs/operations/maintenanceConfigurationsForResourceGroup.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/publicMaintenanceConfigurations.js +10 -26
- package/dist/commonjs/operations/publicMaintenanceConfigurations.js.map +1 -1
- package/dist/commonjs/operations/scheduledEvent.js +1 -0
- package/dist/commonjs/operations/scheduledEvent.js.map +1 -1
- package/dist/commonjs/operations/updates.js +19 -52
- package/dist/commonjs/operations/updates.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/maintenanceManagementClient.js +25 -5
- package/dist/esm/maintenanceManagementClient.js.map +1 -1
- package/dist/esm/models/mappers.js +47 -22
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/applyUpdateForResourceGroup.js +10 -27
- package/dist/esm/operations/applyUpdateForResourceGroup.js.map +1 -1
- package/dist/esm/operations/applyUpdates.js +10 -27
- package/dist/esm/operations/applyUpdates.js.map +1 -1
- package/dist/esm/operations/configurationAssignments.js +19 -53
- package/dist/esm/operations/configurationAssignments.js.map +1 -1
- package/dist/esm/operations/configurationAssignmentsForResourceGroup.js +1 -0
- package/dist/esm/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
- package/dist/esm/operations/configurationAssignmentsForSubscriptions.js +1 -0
- package/dist/esm/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
- package/dist/esm/operations/configurationAssignmentsWithinSubscription.js +10 -27
- package/dist/esm/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
- package/dist/esm/operations/maintenanceConfigurations.js +10 -27
- package/dist/esm/operations/maintenanceConfigurations.js.map +1 -1
- package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
- package/dist/esm/operations/maintenanceConfigurationsForResourceGroup.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/publicMaintenanceConfigurations.js +10 -27
- package/dist/esm/operations/publicMaintenanceConfigurations.js.map +1 -1
- package/dist/esm/operations/scheduledEvent.js +1 -0
- package/dist/esm/operations/scheduledEvent.js.map +1 -1
- package/dist/esm/operations/updates.js +19 -53
- package/dist/esm/operations/updates.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/maintenanceManagementClient.js +25 -5
- package/dist/react-native/maintenanceManagementClient.js.map +1 -1
- package/dist/react-native/models/mappers.js +47 -22
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/applyUpdateForResourceGroup.js +10 -27
- package/dist/react-native/operations/applyUpdateForResourceGroup.js.map +1 -1
- package/dist/react-native/operations/applyUpdates.js +10 -27
- package/dist/react-native/operations/applyUpdates.js.map +1 -1
- package/dist/react-native/operations/configurationAssignments.js +19 -53
- package/dist/react-native/operations/configurationAssignments.js.map +1 -1
- package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js +1 -0
- package/dist/react-native/operations/configurationAssignmentsForResourceGroup.js.map +1 -1
- package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js +1 -0
- package/dist/react-native/operations/configurationAssignmentsForSubscriptions.js.map +1 -1
- package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js +10 -27
- package/dist/react-native/operations/configurationAssignmentsWithinSubscription.js.map +1 -1
- package/dist/react-native/operations/maintenanceConfigurations.js +10 -27
- package/dist/react-native/operations/maintenanceConfigurations.js.map +1 -1
- package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.js +10 -27
- package/dist/react-native/operations/maintenanceConfigurationsForResourceGroup.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/publicMaintenanceConfigurations.js +10 -27
- package/dist/react-native/operations/publicMaintenanceConfigurations.js.map +1 -1
- package/dist/react-native/operations/scheduledEvent.js +1 -0
- package/dist/react-native/operations/scheduledEvent.js.map +1 -1
- package/dist/react-native/operations/updates.js +19 -53
- package/dist/react-native/operations/updates.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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"configurationAssignmentsWithinSubscription.js","sourceRoot":"","sources":["../../../src/operations/configurationAssignmentsWithinSubscription.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,8EAA8E;AAC9E,MAAa,8CAA8C;
|
|
1
|
+
{"version":3,"file":"configurationAssignmentsWithinSubscription.js","sourceRoot":"","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,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AA/DD,wGA+DC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,0FAA0F;IAChG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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 { ConfigurationAssignmentsWithinSubscription } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n ConfigurationAssignment,\n ConfigurationAssignmentsWithinSubscriptionListOptionalParams,\n ConfigurationAssignmentsWithinSubscriptionListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ConfigurationAssignmentsWithinSubscription operations. */\nexport class ConfigurationAssignmentsWithinSubscriptionImpl\n implements ConfigurationAssignmentsWithinSubscription\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class ConfigurationAssignmentsWithinSubscription class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get configuration assignment within a subscription\n * @param options The options parameters.\n */\n public list(\n options?: ConfigurationAssignmentsWithinSubscriptionListOptionalParams,\n ): PagedAsyncIterableIterator<ConfigurationAssignment> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: ConfigurationAssignmentsWithinSubscriptionListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<ConfigurationAssignment[]> {\n let result: ConfigurationAssignmentsWithinSubscriptionListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: ConfigurationAssignmentsWithinSubscriptionListOptionalParams,\n ): AsyncIterableIterator<ConfigurationAssignment> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get configuration assignment within a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: ConfigurationAssignmentsWithinSubscriptionListOptionalParams,\n ): Promise<ConfigurationAssignmentsWithinSubscriptionListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/configurationAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListConfigurationAssignmentsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\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 MaintenanceConfigurations operations. */
|
|
17
17
|
class MaintenanceConfigurationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class MaintenanceConfigurations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -36,39 +37,22 @@ class MaintenanceConfigurationsImpl {
|
|
|
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
|
* Get Configuration record
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maintenanceConfigurations.js","sourceRoot":"","sources":["../../../src/operations/maintenanceConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAa,6BAA6B;IAKxC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAqD,EACrD,SAAwB;;YAExB,IAAI,MAA6C,CAAC;YAClD,MAAM,G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F,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,2FAA2F;IACjG,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mCAAmC;SACxD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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 { MaintenanceConfigurations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n MaintenanceConfiguration,\n MaintenanceConfigurationsListOptionalParams,\n MaintenanceConfigurationsListResponse,\n MaintenanceConfigurationsGetOptionalParams,\n MaintenanceConfigurationsGetResponse,\n MaintenanceConfigurationsCreateOrUpdateOptionalParams,\n MaintenanceConfigurationsCreateOrUpdateResponse,\n MaintenanceConfigurationsDeleteOptionalParams,\n MaintenanceConfigurationsDeleteResponse,\n MaintenanceConfigurationsUpdateOptionalParams,\n MaintenanceConfigurationsUpdateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MaintenanceConfigurations operations. */\nexport class MaintenanceConfigurationsImpl\n implements MaintenanceConfigurations\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class MaintenanceConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Configuration records within a subscription\n * @param options The options parameters.\n */\n public list(\n options?: MaintenanceConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<MaintenanceConfiguration> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: MaintenanceConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<MaintenanceConfiguration[]> {\n let result: MaintenanceConfigurationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: MaintenanceConfigurationsListOptionalParams,\n ): AsyncIterableIterator<MaintenanceConfiguration> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get Configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: MaintenanceConfigurationsGetOptionalParams,\n ): Promise<MaintenanceConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param configuration The configuration\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n configuration: MaintenanceConfiguration,\n options?: MaintenanceConfigurationsCreateOrUpdateOptionalParams,\n ): Promise<MaintenanceConfigurationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, configuration, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete Configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: MaintenanceConfigurationsDeleteOptionalParams,\n ): Promise<MaintenanceConfigurationsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Patch configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param configuration The configuration\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n configuration: MaintenanceConfiguration,\n options?: MaintenanceConfigurationsUpdateOptionalParams,\n ): Promise<MaintenanceConfigurationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, configuration, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Get Configuration records within a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: MaintenanceConfigurationsListOptionalParams,\n ): Promise<MaintenanceConfigurationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n 201: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n requestBody: Parameters.configuration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n 204: {},\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n requestBody: Parameters.configuration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListMaintenanceConfigurationsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"maintenanceConfigurations.js","sourceRoot":"","sources":["../../../src/operations/maintenanceConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAgBtD,4CAA4C;AAC5C,6DAA6D;AAC7D,MAAa,6BAA6B;IAGvB,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqD;QAErD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAqD,EACrD,SAAwB;QAExB,IAAI,MAA6C,CAAC;QAClD,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QACnC,MAAM,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IAC3B,CAAC;IAEO,KAAK,CAAC,CAAC,aAAa,CAC1B,OAAqD;QAErD,IAAI,KAAK,EAA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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 { MaintenanceConfigurations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n MaintenanceConfiguration,\n MaintenanceConfigurationsListOptionalParams,\n MaintenanceConfigurationsListResponse,\n MaintenanceConfigurationsGetOptionalParams,\n MaintenanceConfigurationsGetResponse,\n MaintenanceConfigurationsCreateOrUpdateOptionalParams,\n MaintenanceConfigurationsCreateOrUpdateResponse,\n MaintenanceConfigurationsDeleteOptionalParams,\n MaintenanceConfigurationsDeleteResponse,\n MaintenanceConfigurationsUpdateOptionalParams,\n MaintenanceConfigurationsUpdateResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MaintenanceConfigurations operations. */\nexport class MaintenanceConfigurationsImpl\n implements MaintenanceConfigurations\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class MaintenanceConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Configuration records within a subscription\n * @param options The options parameters.\n */\n public list(\n options?: MaintenanceConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<MaintenanceConfiguration> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: MaintenanceConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<MaintenanceConfiguration[]> {\n let result: MaintenanceConfigurationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: MaintenanceConfigurationsListOptionalParams,\n ): AsyncIterableIterator<MaintenanceConfiguration> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get Configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n resourceName: string,\n options?: MaintenanceConfigurationsGetOptionalParams,\n ): Promise<MaintenanceConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create or Update configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param configuration The configuration\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n resourceName: string,\n configuration: MaintenanceConfiguration,\n options?: MaintenanceConfigurationsCreateOrUpdateOptionalParams,\n ): Promise<MaintenanceConfigurationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, configuration, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Delete Configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n resourceName: string,\n options?: MaintenanceConfigurationsDeleteOptionalParams,\n ): Promise<MaintenanceConfigurationsDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Patch configuration record\n * @param resourceGroupName Resource Group Name\n * @param resourceName Maintenance Configuration Name\n * @param configuration The configuration\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n resourceName: string,\n configuration: MaintenanceConfiguration,\n options?: MaintenanceConfigurationsUpdateOptionalParams,\n ): Promise<MaintenanceConfigurationsUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, resourceName, configuration, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Get Configuration records within a subscription\n * @param options The options parameters.\n */\n private _list(\n options?: MaintenanceConfigurationsListOptionalParams,\n ): Promise<MaintenanceConfigurationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n 201: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n requestBody: Parameters.configuration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n 204: {},\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations/{resourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n requestBody: Parameters.configuration,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n Parameters.resourceGroupName1,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/maintenanceConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListMaintenanceConfigurationsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\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 MaintenanceConfigurationsForResourceGroup operations. */
|
|
17
17
|
class MaintenanceConfigurationsForResourceGroupImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class MaintenanceConfigurationsForResourceGroup class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -37,39 +38,22 @@ class MaintenanceConfigurationsForResourceGroupImpl {
|
|
|
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.listPagingPage(resourceGroupName, options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(resourceGroupName, options, _settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
yield yield tslib_1.__await(result.value || []);
|
|
52
|
-
});
|
|
48
|
+
async *listPagingPage(resourceGroupName, options, _settings) {
|
|
49
|
+
let result;
|
|
50
|
+
result = await this._list(resourceGroupName, options);
|
|
51
|
+
yield result.value || [];
|
|
53
52
|
}
|
|
54
|
-
listPagingAll(resourceGroupName, options) {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
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 *listPagingAll(resourceGroupName, options) {
|
|
54
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
55
|
+
yield* page;
|
|
56
|
+
}
|
|
73
57
|
}
|
|
74
58
|
/**
|
|
75
59
|
* Get Configuration records within a subscription and resource group
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"maintenanceConfigurationsForResourceGroup.js","sourceRoot":"","sources":["../../../src/operations/maintenanceConfigurationsForResourceGroup.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,6EAA6E;AAC7E,MAAa,6CAA6C;
|
|
1
|
+
{"version":3,"file":"maintenanceConfigurationsForResourceGroup.js","sourceRoot":"","sources":["../../../src/operations/maintenanceConfigurationsForResourceGroup.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAQtD,4CAA4C;AAC5C,6EAA6E;AAC7E,MAAa,6CAA6C;IAGvC,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,IAAI,CACT,iBAAyB,EACzB,OAAqE;QAErE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAC;QAC5D,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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BAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { MaintenanceConfigurationsForResourceGroup } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n MaintenanceConfiguration,\n MaintenanceConfigurationsForResourceGroupListOptionalParams,\n MaintenanceConfigurationsForResourceGroupListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing MaintenanceConfigurationsForResourceGroup operations. */\nexport class MaintenanceConfigurationsForResourceGroupImpl\n implements MaintenanceConfigurationsForResourceGroup\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class MaintenanceConfigurationsForResourceGroup class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Configuration records within a subscription and resource group\n * @param resourceGroupName Resource Group Name\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n options?: MaintenanceConfigurationsForResourceGroupListOptionalParams,\n ): PagedAsyncIterableIterator<MaintenanceConfiguration> {\n const iter = this.listPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n options?: MaintenanceConfigurationsForResourceGroupListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<MaintenanceConfiguration[]> {\n let result: MaintenanceConfigurationsForResourceGroupListResponse;\n result = await this._list(resourceGroupName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n options?: MaintenanceConfigurationsForResourceGroupListOptionalParams,\n ): AsyncIterableIterator<MaintenanceConfiguration> {\n for await (const page of this.listPagingPage(resourceGroupName, options)) {\n yield* page;\n }\n }\n\n /**\n * Get Configuration records within a subscription and resource group\n * @param resourceGroupName Resource Group Name\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n options?: MaintenanceConfigurationsForResourceGroupListOptionalParams,\n ): Promise<MaintenanceConfigurationsForResourceGroupListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Maintenance/maintenanceConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListMaintenanceConfigurationsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\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
|
* List the available operations supported by the Microsoft.Maintenance resource provider
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":";AAA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c,CAAC,OAAO,CAAC,EAAE,CAAC;YACtD,KAAK,CAAC,CAAC,IAAI,CAAC;QACd,CAAC;IACH,CAAC;IAED;;;OAGG;IACK,KAAK,CACX,OAAsC;QAEtC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,OAAO,EAAE,EAAE,iBAAiB,CAAC,CAAC;IAC1E,CAAC;CACF;AA7DD,wCA6DC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,6CAA6C;IACnD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n Operation,\n OperationsListOptionalParams,\n OperationsListResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * List the available operations supported by the Microsoft.Maintenance resource provider\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams,\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams,\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List the available operations supported by the Microsoft.Maintenance resource provider\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams,\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Maintenance/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationsListResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\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 PublicMaintenanceConfigurations operations. */
|
|
17
17
|
class PublicMaintenanceConfigurationsImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class PublicMaintenanceConfigurations class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -36,39 +37,22 @@ class PublicMaintenanceConfigurationsImpl {
|
|
|
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
|
* Get Public Maintenance Configuration records
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"publicMaintenanceConfigurations.js","sourceRoot":"","sources":["../../../src/operations/publicMaintenanceConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAa,mCAAmC;
|
|
1
|
+
{"version":3,"file":"publicMaintenanceConfigurations.js","sourceRoot":"","sources":["../../../src/operations/publicMaintenanceConfigurations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAIH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAa,mCAAmC;IAG7B,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAA2D,EAC3D,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,GAA6B;IACjD,IAAI,EAAE,gHAAgH;IACtH,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,YAAY;KACxB;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 { PublicMaintenanceConfigurations } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n MaintenanceConfiguration,\n PublicMaintenanceConfigurationsListOptionalParams,\n PublicMaintenanceConfigurationsListResponse,\n PublicMaintenanceConfigurationsGetOptionalParams,\n PublicMaintenanceConfigurationsGetResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing PublicMaintenanceConfigurations operations. */\nexport class PublicMaintenanceConfigurationsImpl\n implements PublicMaintenanceConfigurations\n{\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class PublicMaintenanceConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Get Public Maintenance Configuration records\n * @param options The options parameters.\n */\n public list(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): PagedAsyncIterableIterator<MaintenanceConfiguration> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<MaintenanceConfiguration[]> {\n let result: PublicMaintenanceConfigurationsListResponse;\n result = await this._list(options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): AsyncIterableIterator<MaintenanceConfiguration> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get Public Maintenance Configuration records\n * @param options The options parameters.\n */\n private _list(\n options?: PublicMaintenanceConfigurationsListOptionalParams,\n ): Promise<PublicMaintenanceConfigurationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Get Public Maintenance Configuration record\n * @param resourceName Maintenance Configuration Name\n * @param options The options parameters.\n */\n get(\n resourceName: string,\n options?: PublicMaintenanceConfigurationsGetOptionalParams,\n ): Promise<PublicMaintenanceConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceName, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListMaintenanceConfigurationsResult,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.Maintenance/publicMaintenanceConfigurations/{resourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.MaintenanceConfiguration,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing ScheduledEvent operations. */
|
|
16
16
|
class ScheduledEventImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class ScheduledEvent class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scheduledEvent.js","sourceRoot":"","sources":["../../../src/operations/scheduledEvent.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,kDAAkD;AAClD,MAAa,kBAAkB;
|
|
1
|
+
{"version":3,"file":"scheduledEvent.js","sourceRoot":"","sources":["../../../src/operations/scheduledEvent.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,WAAW,CACT,iBAAyB,EACzB,YAAoB,EACpB,YAAoB,EACpB,gBAAwB,EACxB,OAAiD;QAEjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,iBAAiB;YACjB,YAAY;YACZ,YAAY;YACZ,gBAAgB;YAChB,OAAO;SACR,EACD,wBAAwB,CACzB,CAAC;IACJ,CAAC;CACF;AAtCD,gDAsCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,wBAAwB,GAA6B;IACzD,IAAI,EAAE,6MAA6M;IACnN,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;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,YAAY;QACvB,UAAU,CAAC,YAAY;QACvB,UAAU,CAAC,gBAAgB;KAC5B;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 { ScheduledEvent } 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 { MaintenanceManagementClient } from \"../maintenanceManagementClient.js\";\nimport {\n ScheduledEventAcknowledgeOptionalParams,\n ScheduledEventAcknowledgeResponse,\n} from \"../models/index.js\";\n\n/** Class containing ScheduledEvent operations. */\nexport class ScheduledEventImpl implements ScheduledEvent {\n private readonly client: MaintenanceManagementClient;\n\n /**\n * Initialize a new instance of the class ScheduledEvent class.\n * @param client Reference to the service client\n */\n constructor(client: MaintenanceManagementClient) {\n this.client = client;\n }\n\n /**\n * Post Scheduled Event Acknowledgement\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceType Resource type\n * @param resourceName Resource Name\n * @param scheduledEventId Scheduled Event Id. This is a GUID-formatted string (e.g.\n * 00000000-0000-0000-0000-000000000000)\n * @param options The options parameters.\n */\n acknowledge(\n resourceGroupName: string,\n resourceType: string,\n resourceName: string,\n scheduledEventId: string,\n options?: ScheduledEventAcknowledgeOptionalParams,\n ): Promise<ScheduledEventAcknowledgeResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n resourceType,\n resourceName,\n scheduledEventId,\n options,\n },\n acknowledgeOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst acknowledgeOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/{resourceType}/{resourceName}/providers/Microsoft.Maintenance/scheduledevents/{scheduledEventId}/acknowledge\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ScheduledEventApproveResponse,\n },\n default: {\n bodyMapper: Mappers.MaintenanceError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.resourceType,\n Parameters.resourceName,\n Parameters.scheduledEventId,\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 Updates operations. */
|
|
17
17
|
class UpdatesImpl {
|
|
18
|
+
client;
|
|
18
19
|
/**
|
|
19
20
|
* Initialize a new instance of the class Updates class.
|
|
20
21
|
* @param client Reference to the service client
|
|
@@ -42,39 +43,22 @@ class UpdatesImpl {
|
|
|
42
43
|
return this;
|
|
43
44
|
},
|
|
44
45
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
46
|
+
if (settings?.maxPageSize) {
|
|
46
47
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
48
|
}
|
|
48
49
|
return this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, settings);
|
|
49
50
|
},
|
|
50
51
|
};
|
|
51
52
|
}
|
|
52
|
-
listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
yield yield tslib_1.__await(result.value || []);
|
|
57
|
-
});
|
|
53
|
+
async *listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options, _settings) {
|
|
54
|
+
let result;
|
|
55
|
+
result = await this._listParent(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options);
|
|
56
|
+
yield result.value || [];
|
|
58
57
|
}
|
|
59
|
-
listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
64
|
-
_c = _f.value;
|
|
65
|
-
_d = false;
|
|
66
|
-
const page = _c;
|
|
67
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
71
|
-
finally {
|
|
72
|
-
try {
|
|
73
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
74
|
-
}
|
|
75
|
-
finally { if (e_1) throw e_1.error; }
|
|
76
|
-
}
|
|
77
|
-
});
|
|
58
|
+
async *listParentPagingAll(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options) {
|
|
59
|
+
for await (const page of this.listParentPagingPage(resourceGroupName, providerName, resourceParentType, resourceParentName, resourceType, resourceName, options)) {
|
|
60
|
+
yield* page;
|
|
61
|
+
}
|
|
78
62
|
}
|
|
79
63
|
/**
|
|
80
64
|
* Get updates to resources.
|
|
@@ -94,39 +78,22 @@ class UpdatesImpl {
|
|
|
94
78
|
return this;
|
|
95
79
|
},
|
|
96
80
|
byPage: (settings) => {
|
|
97
|
-
if (settings
|
|
81
|
+
if (settings?.maxPageSize) {
|
|
98
82
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
99
83
|
}
|
|
100
84
|
return this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, settings);
|
|
101
85
|
},
|
|
102
86
|
};
|
|
103
87
|
}
|
|
104
|
-
listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
yield yield tslib_1.__await(result.value || []);
|
|
109
|
-
});
|
|
88
|
+
async *listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options, _settings) {
|
|
89
|
+
let result;
|
|
90
|
+
result = await this._list(resourceGroupName, providerName, resourceType, resourceName, options);
|
|
91
|
+
yield result.value || [];
|
|
110
92
|
}
|
|
111
|
-
listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options) {
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
116
|
-
_c = _f.value;
|
|
117
|
-
_d = false;
|
|
118
|
-
const page = _c;
|
|
119
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
123
|
-
finally {
|
|
124
|
-
try {
|
|
125
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
126
|
-
}
|
|
127
|
-
finally { if (e_2) throw e_2.error; }
|
|
128
|
-
}
|
|
129
|
-
});
|
|
93
|
+
async *listPagingAll(resourceGroupName, providerName, resourceType, resourceName, options) {
|
|
94
|
+
for await (const page of this.listPagingPage(resourceGroupName, providerName, resourceType, resourceName, options)) {
|
|
95
|
+
yield* page;
|
|
96
|
+
}
|
|
130
97
|
}
|
|
131
98
|
/**
|
|
132
99
|
* Get updates to resources.
|